SimulatorSam [UK] Posted November 15, 2014 Share Posted November 15, 2014 I saw it on the download page, I downloaded it, but what is it? I'm probably being stupid and it's something obvious XD Anyway... Link to comment Share on other sites More sharing options...
0 Ediin Posted November 15, 2014 Share Posted November 15, 2014 Probably developer things Need help? Ask me anything regarding Euro Truck Simulator 2 and Euro Truck Simulator 2 Multiplayer! I Speak: I Understand: Want me to answer? Quote my post or use @Ediin! Link to comment Share on other sites More sharing options...
0 Bomlife Posted November 15, 2014 Share Posted November 15, 2014 PHP SDK can by used by web developers to fetch informations from ETS2MP Web API - we will extend it functionality with version getting and users soon. Cheers. http://forum.ets2mp.com/index.php?/topic/119-php-sdk-in-download-page/ Link to comment Share on other sites More sharing options...
0 Guest Posted November 15, 2014 Share Posted November 15, 2014 It's a demo for helping web developers get an idea how they can utilize the API(http://api.ets2mp.com) in php. Link to comment Share on other sites More sharing options...
0 StuartD Posted November 15, 2014 Share Posted November 15, 2014 It allows developers to create things like this: http://status.ets2mp.com/ STVTC Founder & Management / TruckNet Developer Link to comment Share on other sites More sharing options...
0 SimulatorSam [UK] Posted November 15, 2014 Author Share Posted November 15, 2014 Ok, thanks! I was just wondering... Link to comment Share on other sites More sharing options...
0 Rhaegal Posted November 22, 2014 Share Posted November 22, 2014 It allows developers to create things like this: http://status.ets2mp.com/ Can you explain how to do something like that Link to comment Share on other sites More sharing options...
0 StuartD Posted November 22, 2014 Share Posted November 22, 2014 It's quite simple if you know what you're doing.. This might not be the best way of doing it but it works for me :') include('extra/TruckMPApi.php'); // Calls the MP API for use. $api = new TruckMPApi(); // Creates the API class.$servers = $api->GetServers(); // Gets the server information array. $eu_1_name = $servers[0]->shortname; // Gets the name of server 1. $eu_1_status = $servers[0]->online; // Gets the status of server 1. $eu_1_players = $servers[0]->players; // Gets the player count of server 1. if($eu_1_status){ // If the server is online echo $eu_1_name ." - Online - ". $eu_1_players; // Show the short name and the player count.} else { // Otherwise. echo "Server 1 Offline"; // say that it is offline.} This is the basic part of it however the MP people have just styled the page to make it look more appealing. EG this is mine from the ST page. STVTC Founder & Management / TruckNet Developer Link to comment Share on other sites More sharing options...
0 Rhaegal Posted November 23, 2014 Share Posted November 23, 2014 Cool! Thank you Stuart! Can i use This for my Homepage? Link to comment Share on other sites More sharing options...
0 StuartD Posted November 23, 2014 Share Posted November 23, 2014 Sure, I'm not gonna stop you 1 STVTC Founder & Management / TruckNet Developer Link to comment Share on other sites More sharing options...
0 Rhaegal Posted November 23, 2014 Share Posted November 23, 2014 Sure, I'm not gonna stop you Great! Thank you very much! @StuartD Link to comment Share on other sites More sharing options...
Question
SimulatorSam [UK]
I saw it on the download page, I downloaded it, but what is it? I'm probably being stupid and it's something obvious XD
Anyway...
Link to comment
Share on other sites
10 answers to this question
Recommended Posts