goldenairways Posted November 29, 2009 Report Share Posted November 29, 2009 I have 2 questions about the phpVMS API and about using it with VB applications. First of all is it possible to use the API to view things like previous pireps, schedules, etc but also submit PIREPs via it (plus adding comments) and view/alter the pilot profile. Also is there ways to also use admin functions and control everything which you can via the admin panel. The reason is I am considering making an application client for my virtual airline so the pilot changes everything in the app, instead of online. Its mainly going to be made for experience as I am planning on making another application, but this will be a little practise and I am mainly doing this because there is a way I know how this can be used. Instead of making web browsers which have no actual use in the end. Thanks. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 The API is for use through PHP, so you'll have to have a gateway or something if you're gonna use it through a 3rd party app. Quote Link to comment Share on other sites More sharing options...
goldenairways Posted November 29, 2009 Author Report Share Posted November 29, 2009 Ok, thanks. Technicly would it work by submitting and fetching data from the MySQL database, then obviously that'd also be displayed on the main page I am wondering. Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 Ok, thanks. Technicly would it work by submitting and fetching data from the MySQL database, then obviously that'd also be displayed on the main page I am wondering. Thanks Never connect straight to the database, most of the time you won't be able to. You'd have to write a php script, which your program will ahve to send commands to. Then in that script, you can access the API. In fact, the easier would be to write a module, and have you script call it: index.php/module/getpilots Then your getpilots() function in the module will return a list of pilots from the internal API Quote Link to comment Share on other sites More sharing options...
goldenairways Posted November 29, 2009 Author Report Share Posted November 29, 2009 Then would the user be able to login for example, and remain logged into the client software using their phpVMS details until either logging off manually or terminating the application? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 29, 2009 Administrators Report Share Posted November 29, 2009 If you design it that way, sure, you can have the credentials sent to your module and return whether they are a valid user/password or not Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.