Bromsnorro Posted February 21 Posted February 21 Hello, I have a question about the TruckersMP API. I couldn't post in the right section, so I put it here. We use an API endpoint to get all our attending convoy's: https://api.truckersmp.com/v2/vtc/61164/events/attending/ But is it possible, if this API Endpoint can be sorted on StartDate instead of the EventID of the Event. The API endpoint is not the same as https://truckersmp.com/vtc/61164/events/attending Thanks,
0 MauriceLPs Posted February 21 Posted February 21 Save the data on your end somehow and then sort it on StartDate instead of the EventId Like, get the data, save it in a config or Database (SQL as ex.) and from there you get it - sorted by startDate Hope I were able to help. Your average pleb from Austria. Favorite Truck: MAN TGX 2022, 4*2 Chassis, 500hp Engine and a 12 Speed Gearbox (Automatic). Favorite Trailer: Dryvan from SCS My VTC (on Trucky
0 [Lutu]Luban Posted February 22 Posted February 22 Look at the API return parameters, you can parse the JSON, through the "start_at" to get the date and then sort
0 JJay Posted February 26 Posted February 26 Hello, Your topic has been inactive for 3 days since the last reply. Because of inactivity, I will have to move this topic to Inactive Topics. If you still have any questions about this, feel free to DM me or our support team members, we will open this again. Kind Regards, JJay TruckersMP Support & Language Forum Moderator // Locked and Moved to Inactive Nie ma magicznych skrótów do rozwiązania Twoich problemów. | Ban appeal | Complaints / Feedback | TruckersMP Rules | Join the Team |
0 JCBBuilds Posted March 4 Posted March 4 Hey, Since this topic has been inactive for over 1 week, I will now move this to Unsolved Topics. If you need help again in the future you will have to create a new topic. Kind Regards, JCBBuilds, TruckersMP Support //Moved to Unsolved Topics JCBBuilds Owner of Night's Truckstyling Discord discord.gg/6h5pS5RbE5
Question
Bromsnorro
Hello,
I have a question about the TruckersMP API. I couldn't post in the right section, so I put it here.
We use an API endpoint to get all our attending convoy's: https://api.truckersmp.com/v2/vtc/61164/events/attending/
But is it possible, if this API Endpoint can be sorted on StartDate instead of the EventID of the Event.
The API endpoint is not the same as https://truckersmp.com/vtc/61164/events/attending
Thanks,
4 answers to this question
Recommended Posts