mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-05 19:42:03 +02:00
Retrieve client token (not working)
This commit is contained in:
parent
0630586cd6
commit
1528292583
4 changed files with 74 additions and 9 deletions
|
@ -1,5 +1,3 @@
|
|||
// Extracted from: Spotify 1.1.33.569 (Windows)
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.clienttoken.data.v0;
|
||||
|
@ -17,6 +15,7 @@ message PlatformSpecificData {
|
|||
oneof data {
|
||||
NativeAndroidData android = 1;
|
||||
NativeIOSData ios = 2;
|
||||
NativeWindowsData windows = 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,6 +35,16 @@ message NativeIOSData {
|
|||
string simulator_model_identifier = 5;
|
||||
}
|
||||
|
||||
message NativeWindowsData {
|
||||
int32 os_version = 1;
|
||||
int32 os_build = 3;
|
||||
int32 unknown_value_4 = 4;
|
||||
int32 unknown_value_6 = 6;
|
||||
int32 unknown_value_7 = 7;
|
||||
int32 unknown_value_8 = 8;
|
||||
bool unknown_value_10 = 10;
|
||||
}
|
||||
|
||||
message Screen {
|
||||
int32 width = 1;
|
||||
int32 height = 2;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// Extracted from: Spotify 1.1.33.569 (Windows)
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.clienttoken.http.v0;
|
||||
|
@ -24,7 +22,7 @@ message ClientDataRequest {
|
|||
string client_id = 2;
|
||||
|
||||
oneof data {
|
||||
data.v0.ConnectivitySdkData connectivity_sdk_data = 3;
|
||||
spotify.clienttoken.data.v0.ConnectivitySdkData connectivity_sdk_data = 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,10 +40,15 @@ message ClientTokenResponse {
|
|||
}
|
||||
}
|
||||
|
||||
message TokenDomain {
|
||||
string domain = 1;
|
||||
}
|
||||
|
||||
message GrantedTokenResponse {
|
||||
string token = 1;
|
||||
int32 expires_after_seconds = 2;
|
||||
int32 refresh_after_seconds = 3;
|
||||
repeated TokenDomain domains = 4;
|
||||
}
|
||||
|
||||
message ChallengesResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue