2018-05-16, 17:44
SOLUTION: See post #10
Hi,
I'm struggling to get the location of a specific user atm. I realise that I can get the location of users, but that is for everyone in that server. Example:
returns something like this:
But is there a way to lookup one person, like you can with profile lookup, and get the location? If not, is there a way to use the global JSON file to get a specific user?
I am coding in C#. Hope this made sense
Any help would be greatly appreciated
Hi,
I'm struggling to get the location of a specific user atm. I realise that I can get the location of users, but that is for everyone in that server. Example:
Quote:GET https://api.tc-gaming.co.uk/citydriving/...server=all
returns something like this:
Quote:[
{
"id": 11969,
"countryCode": "GB",
"username": "Garypants",
"nickname": "^1[TC]^7\u203aCarl\u2039",
"money": 259473,
"distance": 156889746,
"trip": 34846,
"bonus": 22,
"lastCar": "XRT",
"lastPosition": "^3Medical Centre^8",
"server": "^7One"
},
...
]
But is there a way to lookup one person, like you can with profile lookup, and get the location? If not, is there a way to use the global JSON file to get a specific user?
I am coding in C#. Hope this made sense
Any help would be greatly appreciated