0 votes

Hi,
I'm pretty new to this kind of stuff. I tried looking for something related in the Q&A but I couldn't find anything useful, so I'll ask it here: how can I update a file (say, a JSON) which is stored in an online server?

asked Aug 10 in Engine by DodoIta (375 points)

1 Answer

+2 votes

To interact with an online resource in general, it's usually best to set up a REST API that can be contacted using HTTPRequest. Developing the API itself is out of the scope of this question, but pretty much any Web framework can be used for this. Microframeworks such as Flask tend to be popular for this use case.

In your case, your API will need to have one endpoint that will modify the JSON file when it's called. Remember that you will probably need to set up some sort of authentication mechanism too.

answered Aug 10 by Calinou (2,428 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.