show result url content by php

0

I have this link: link

and what I wanted is to get the information through php and create my own gta v servers generator,

How could you get that information through php?

I hope you have explained me well

something like this:

But I do not get everything I want

Thanks in advance!

    
asked by jose89 14.05.2018 в 23:26
source

1 answer

2
$json = file_get_contents('https://servers-live.fivem.net/api/servers/single/5.189.142.172:30120');
$obj = json_decode($json);

echo $obj->access_token;

Try this code, if I do not leave you a stack overflow page but in English. link

    
answered by 14.05.2018 в 23:49