mage1982 15 Posted ... Does Air have, or would it be possible to implement, a sort of HTTP API for its customers? For example, I would like to be able to find out my external IP from within a script. Other kinds of data, like the statistics and other information that is visible on the "Overview" tab in the Client Area, could also be nice to have. Some actions would be useful too, like disconnecting or opening external ports. I have solved my actual problem of finding out my IP by asking an external server, but it seems like this sort of thing would be better handled by Air. Quote Share this post Link to post
Staff 9972 Posted ... Hello! Yes, it is possible, and the Ubertechie is completing its implementation. We are all confident it will be ready in the next 24 hours. (see here for further references about some obscure Air operators, if you dare) Please do not hesitate to send us your feedback, it will be much appreciated. Kind regards Quote Share this post Link to post
Staff 9972 Posted ... Hello, it is now available: https://airvpn.org/faq/api/ Ports control is currently unimplemented, all the other features are working. Do not hesitate to post your feedback. Kind regards Quote Share this post Link to post
mage1982 15 Posted ... Cool! Would love to play with this, I'll be keeping an eye on the forum for announcements. Edit: Damnit, just a few minutes too late. :-) Quote Share this post Link to post
mage1982 15 Posted ... Ok, this is really cool. Thanks guys! I see some things that could be improved; right now, using the test call to userinfo, it reports that "premium" is false, and that doesn't seem right. Maybe the "only if connected" portion of the user info could be separated out, I'm thinking something like this: { "user" : { "login" : "mage1982", ... }, "connection" : { "connected" : true , "vpn_ip" : "10.x.x.x", ... } } Seems natural to separate the two.. Edit: stop reformatting my post, stupid forum Quote Share this post Link to post
Staff 9972 Posted ... Changelog:- "Premium" field in "userinfo" service fixed.- Nested group "user" & "connection" in "userinfo" service.- Output format "text" now supports nested information.- Updated FAQ. Kind regards Quote Share this post Link to post
mage1982 15 Posted ... Wow. I didn't expect you to be that quick (or even to agree with the suggestions). I should ask for a pony next. :-) Seriously though, I was already recommending Air to my friends, this is much more than I could have ever expected. Quote Share this post Link to post
Omniferum 9 Posted ... In my attempts to use the API to disconnect I get: MySql Error:<iremovedthisbitmyself> Quote Share this post Link to post