I am developing a website and would like to know if it is possible to get information (Experience, Grade, Flight Time, Online Flights and Landings) of the players using IF API
Thank you for your attention, Brazil team.
I am developing a website and would like to know if it is possible to get information (Experience, Grade, Flight Time, Online Flights and Landings) of the players using IF API
Thank you for your attention, Brazil team.
Something like this?
No. This API that Ms. Laura is making available is for a connect live project in GUI. What I want and for website (json, requests, html or xml
Then try thisâŚ
If this doesnât get you what you need, then you either need to be more specific or go directly with Laura or someone on the development side like I have done for a project Iâm working on.
Itâs kind of tough to understand what it is you need exactlyâŚ[quote=âDalmo_Cabral, post:3, topic:126330â]
What I want and for website (json, requests, html or xml
[/quote]
I can only assume that you are wanting to make API calls to get the information and populate it on a webpage. Seems like Ive seen that idea somewhere else? Anyway, best of luck!
Youâll want to use the UserDetails API (POST request with an array of user IDs in the body). From the main post:
UserDetails.aspx
Use this call to get information about a user
Parameters: apikey
Post Request: a json object containing an array of strings named UserIDs.
@Cameron But would I need a key to get that information?
How do I get this key?
import requests
key = ââ
reponse = requests.get(" http://infinite-flight-public-api.cloudapp.net/v1/UserDetails.aspx?apikey=" key)
print(reponse.text)
Weâll send one over via PM as soon as possible :)
FYI, youâll need to POST for this particular API; if youâre using requests
on Python, youâd do it something like this:
requests.post(url, data=["userID1", "userID2"])
Thank you, waiting for your PM
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.