Gamejolt API usage?

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
GradiusLover2000
Posts: 1
Joined: Sep 13, 2017 23:42

Gamejolt API usage?

Post by GradiusLover2000 »

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.
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Gamejolt API usage?

Post by St_W »

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.
Post Reply