Jump to content

Ryan Bentley

VATSIM Developer
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    1

Ryan Bentley last won the day on May 15

Ryan Bentley had the most liked content!

Community Reputation

20 Excellent

Recent Profile Visitors

166 profile views
  1. This task is not possible until we are fully off the old system, as it requires rearchitecting some backend stuff. We are slowly moving towards this goal, I can see this feature being possible within 2-3 months. Will keep you updated on this thread.
  2. Viewing all of the ATC Sessions of a member Issue a GET request to one of these URLS: https://api.vatsim.net/api/ratings/<cid>/atcsessions/ You can search for different callsign or position types too like this: https://api.vatsim.net/api/ratings/<cid>/atcsessions/TWR/ https://api.vatsim.net/api/ratings/<cid>/atcsessions/EGKK/ Examples: https://api.vatsim.net/api/ratings/1375048/atcsessions/LSGG/ Use ?page_size=N to manage the length of each page returned. IE: https://api.vatsim.net/api/ratings/1375048/atcsessions/LSGG/?page_size=10?page_size=10 This is a public endpoint that does not require an authentication token Returned Response: JSON object containing the following fields: id, rating, pilotrating, name_first, name_last, age, countystate, country, susp_date, reg_date, region, division, subdivision Example: curl -H 'Accept: application/json; indent=4' "https://api.vatsim.net/api/ratings/1115151/atcsessions/" Example Response: { "count": 24, "next": "https://api.vatsim.net/api/ratings/1115151/atcsessions/?page=2&page_size=10", "previous": null, "results": [ { "connection_id": 24311588, "start": "2010-06-27T20:50:23", "end": "2010-06-28T00:13:37", "server": "USA-N", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "203.233333", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 60, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 24246771, "start": "2010-06-21T01:52:25", "end": "2010-06-21T02:24:05", "server": "USA-N", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "31.666667", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 18, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23859859, "start": "2010-05-14T14:22:20", "end": "2010-05-14T14:33:30", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "11.166667", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 2, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23846258, "start": "2010-05-13T00:03:24", "end": "2010-05-13T00:47:08", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "43.733333", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 4, "flightsamended": 8, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 4, "cruisealtsmodified": 2, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23846215, "start": "2010-05-12T23:58:58", "end": "2010-05-13T00:03:22", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "4.4", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 4, "flightsamended": 2, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 1, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23846158, "start": "2010-05-12T23:50:40", "end": "2010-05-12T23:58:55", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "8.25", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 1, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23846036, "start": "2010-05-12T23:34:29", "end": "2010-05-12T23:50:37", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "16.133333", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 4, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 1, "scratchpadmods": 0 }, { "connection_id": 23837439, "start": "2010-05-11T23:58:03", "end": "2010-05-12T00:49:13", "server": "USA-E", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "51.166667", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 3, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 1, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23767272, "start": "2010-05-04T23:35:06", "end": "2010-05-05T01:37:16", "server": "USA-W2", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "122.166667", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 4, "flightsamended": 3, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 6, "cruisealtsmodified": 1, "tempaltsmodified": 0, "scratchpadmods": 0 }, { "connection_id": 23766943, "start": "2010-05-04T22:49:12", "end": "2010-05-04T23:21:13", "server": "USA-W2", "vatsim_id": "1115151", "type": 2, "rating": 3, "callsign": "CYWG_GND", "times_held_callsign": 1, "minutes_on_callsign": "32.016667", "total_minutes_on_callsign": 740.25, "aircrafttracked": 0, "aircraftseen": 3, "flightsamended": 0, "handoffsinitiated": 0, "handoffsreceived": 0, "handoffsrefused": 0, "squawksassigned": 0, "cruisealtsmodified": 0, "tempaltsmodified": 0, "scratchpadmods": 0 } ] } This endpoint will only return JSON.
  3. VATSIM API Update 24/06/2020 Added /atcsessions/ endpoint to member ratings. This returns paginated results detailing the users time controlling all the position types on the network. You can add some filters to this, for example https://api.vatsim.net/api/ratings/1375048/atcsessions/?page_size=100 will show the last 100 ATC sessions, or you could add a search to it like this: https://api.vatsim.net/api/ratings/1375048/atcsessions/EGKK/?page_size=100 or https://api.vatsim.net/api/ratings/1375048/atcsessions/TWR/?page_size=100ETC. Switched to using PATCH instead of PUT for updating a members details. PUT will later be used for full instead of partial replacements. Check out the Swagger browser to see everything!
  4. Due to the way the old system (PHP) handles math and FPs differently, there is nothing much we can do.
  5. If there is a date present in this field, that is the date the user is due to be unsuspended.
  6. Hi, You can also try using the API https://api.vatsim.net/api/ratings/1469468/flight_plans/
  7. So you want to have a flag for active/not-active instead of rating 0? Things like this are not possible at the moment due to not being able to alter the database schema until we've fully migrated from the old stuff.
  8. Subdivisions can now access a memberlist, you have to have authorization from the subdivision director to have a token for this. You can ask them to send me an e-mail (in my signature) for this.
  9. Ryan Bentley

    IPboard SSO

    Hi, You can use these settings: https://forums.vatsim.net/vatsim-connect-error for VATSIM Auth Requirements URL full_name vatsim_details email for VATSIM Auth Scope
  10. VATSIM API Update 21/05/2020 Added /flight_plans/ endpoint to member ratings. This returns paginated results detailing the users flight plans. Check out the Swagger browser to see everything!
  11. VATSIM API Update 15/05/2020 Added /connections/ endpoint to member ratings. This returns paginated results detailing the users connections to the network. Added regions, divisions, subdivision APIs to allow better listing of members and future features Check out the Swagger browser to see everything!
  12. We're working on this, will have it back up and running within a few weeks.
  13. VATSIM API Update 25/04/2020 rating_times now correctly reports the users controlling and pilot hours.
×
×
  • Create New...