Making network requests for fedi servers
- Dominant language
- GDScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Hey there :wave:
I would like to fetch the list of befriended servers over the network.
I've seen an [introduction for HTTP requests](https://docs.godotengine.org/en/stable/tutorials/networking/http_request_class.html) in the docs so I'm positive that it should be possible.
Since many API endpoints in Fediverse services requires some level of auth it would require to store a token (say, a text file).
Can Godot do that? I'm new to the process.
For example, we could [query Mastodon for peers](https://docs.joinmastodon.org/methods/instance/#peers) to populate the list.
Either live or (preferred?) at the start of a game. There should be a list of instances as fallback in case the network cannot be reached.
I've seen that you can read from disk. I would assume, writing should also be possible.
I haven't understood yet whether Godot is blocking on network requests (or any Input/Ouput) or not. You have at least signals. Perhaps it is mixed? I'm learning :heart_eyes_cat:
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked Godot HTTPRequest introduction and Mastodon’s instance peers endpoint. Define how authentication tokens are stored, when requests run, how failures use a fallback instance list, and whether requests block. No repository files or tests are named, so the implementation entry point and completion checks still need to be established.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100