Closed Sebbo94BY closed 6 years ago
Let me check on this and get back to you.
The TeamSpeak update server only returns the last server version with protocol compatibility. To query the latest versions the easy way use these URLs:
https://www.teamspeak.com/versions/client.json https://www.teamspeak.com/versions/server.json
In addition, the TeamSpeak3_Adapter_Update class is deprecated. New clients fetch their update information from https://versions.teamspeak.com/ts3-client-2 which is a binary file containing data serialized with Protocol Buffers.
@svenpaulsen can you maybe add a function to your framework to get the versions from these JSON files? This would be great.
I don't think there's a need to do that. Basically, it's as simple as this:
$versions = json_decode(file_get_contents('https://www.teamspeak.com/versions/server.json'));
echo $versions->linux->x86_64->version;
Mhmm, ok. Then I'll just use json_decode(). Thx.
I want to get the latest published server version as string like
3.0.13.8
.To archive this, I thought, this code is the correct one:
But, it returns
3.0.10.1
. Which version is this? Why doesn't it return3.0.13.8
?