I have been browsing around for support of this topic's title, but it seems it isn't built into the language...
How can I write a .bas file that uses the online API? Info about it can be found here...http://gamejolt.com/api/doc/game
If you guys can write a code snippet for it, that would be great.
All I need is the Users, Scores, and Trophies components.
Gamejolt API usage?
-
- Posts: 1
- Joined: Sep 13, 2017 23:42
Re: Gamejolt API usage?
FreeBasic does not have networking support built into the language. You need to implement that yourself or use appropriate libraries doing that. Based on those you can perform the HTTP GET requests as described in the API documentation you've linked. For example libcurl should implement everything you need. For libraries like SimpleNetworkConnection (SNC) you'd additionally need a minimal HTTP implementation.