I am trying to work with the ResellersPanel API and I have managed to get this far with my code:
$result = file_get_contents("https://api.duoservers.com/?auth_username=store-name&auth_password=PasswordHere§ion=datacenters&command=get_datacenters");
var_dump($result);
Now for whatever reason, they thought it would be a good idea to return everything as a string rather than json or an array.
I need to know how to convert every result into json or an array. The result of the above code is:
string(1468) " 0 0 56000 steadfast shared semidedicated dedicated vps vps_solusvm london shared semidedicated vps vps_solusvm australia sis_group shared semidedicated vps_solusvm telepoint shared semidedicated vps_solusvm ficolo shared semidedicated vps_solusvm 0.027 s 0.019 s 4605066977 "
How would I convert a string to json? Thank you.
In the documentation it does state that they return an array. So why is it returning a string? I've tried contacting them and they told me to contact a web developer for help.
STILL NO SOLUTION.