[API] Official API Documentation!

#1

With the help of @philippe, I started an official Github Page for API Documentation : https://github.com/flyingdevelopmentstudio/infiniteflight-api

For now it contains a list of all available commands, and will be completed over time with further documentation about socket connection, ForeFlight Link data, new commands, new examples, etc.

I think it should also be used for API feature requests, like “could you add a command for this” or “this doesn’t work properly” : it would make it easier to track requests, bugs, and help people building their app.

Also, don’t hesitate to open an issue on the repo if you need documentation for a specific point of the API

It’s time to start building new cool apps for IF !

16 Likes
Infinite Flight Live API - ATC?
Apple TV
#2

This is awesome and much needed. Great work :)

Also I never knew you could grab an Uber from the API

1 Like
#3

Wow, great contribution! Thank you so much for this! :)

1 Like
#4

Nice, will check this out! Planning to fiddle around with the api a little.


Oops, forgot I already used/contributed to this :D

#5

Haha ! to be honest I don’t know what this command does, I just had it in an old mail where @Laura listed them to me … maybe she has an explanation

3 Likes
#6

Looks good. Thanks.

#7

Yeah you added a link to the IFC sample app as a “link to the API” which doesn’t really make sense. I’m not sure I’d call that contributing.

5 Likes
#8

Updating readme doesn’t count I guess…

#10

I’ve just removed the space between "Documentation"and “!” ;-))

@Carson doesn’t like it ;-))

#11

meh, I’m not really comfortable with people editing my own posts
Plus, France has more Litterature Nobel prizes than any other country, so I think I should feel free to use french syntax for punctuation :)

#12

Dush, the only file in the repo is the readme.

Fail

#13

The project is only a readme. :)

I added a few definitions for the examples such as calling header, etc. https://github.com/flyingdevelopmentstudio/infiniteflight-api/commit/fd4647f366db52fbd46ec37fd578ff243094de65

#14

Hiya
I might be missing something but connecting UDP on port 15000 on iOS not bring back any data.

I turned on the connect setting in the game, hit ok, then fly. Then ran my app with this code:

IPEndPoint ReceivedGrp = new IPEndPoint(IPAddress.Any, 15000);
UdpClient listener = new UdpClient(15000);

		while (!received)
		{
			//ThreadedMe("Waiting for broadcast");
			byte[] bytes = listener.Receive(ref ReceivedGrp);
			if (bytes.Length > 0)
			{
				received = true;

}
}

but nothign ever comes back. Sorry if its a stupid question, but what am i missing?

#15

Hey,
There are no stupid questions
I don’t know about your socket implementation but
Did you enable Infinite Flight Connect from the Settings ?

#16

Yes its enabled.
Do you have any sample code for this connection part?

#17

In C#:

Objective-C:

1 Like
#18

I missed this somehow: Great work. Really helps in understanding the API.

1 Like
#19

Hey, mate. Can you advise me if the ATC log can be read via the API? I see it can be used to send traffic but can it receive?

#20

I don’t think it’s possible
At least it wasn’t when I was working on this

#21

The docs don’t contain anything for it but it might have been neglected to be updated. Who knows :)