pub struct PartnerLoginResponse {
pub partner_id: String,
pub partner_auth_token: String,
pub sync_time: String,
pub station_skip_unit: String,
pub station_skip_limit: u32,
pub urls: Option<HashMap<String, String>>,
pub optional: HashMap<String, Value>,
}Expand description
syncTime is used to calculate the server time, see synctime. partnerId and authToken are required to proceed with user authentication.
| Name | Type | Description | | syncTime | string | Hex-encoded, encrypted server time. Decrypt with password from Partner passwords and skip first four bytes of garbage. | | partnerAuthToken | string | | | partnerId | string | |
{
"stat": "ok",
"result": {
"syncTime": "6923e263a8c3ac690646146b50065f43",
"deviceProperties": {
"videoAdRefreshInterval": 900,
"videoAdUniqueInterval": 0,
"adRefreshInterval": 5,
"videoAdStartInterval": 180
},
"partnerAuthToken": "VAzrFQTtsy3BQ3K+3iqFi0WF5HA63B1nFA",
"partnerId": "42",
"stationSkipUnit": "hour",
"urls": {
"autoComplete": "http://autocomplete.pandora.com/search"
},
"stationSkipLimit": 6
}
}| Code | Description | | 1002 | INVALID_PARTNER_LOGIN. Invalid partner credentials. |
Fields§
§partner_id: StringThe partner id that should be used for this session
partner_auth_token: StringThe partner auth token that should be used for this session
sync_time: StringThe server sync time that should be used for this session Note that this field is encrypted, and must be decrypted before use
station_skip_unit: StringUnknown field
station_skip_limit: u32Unknown field
urls: Option<HashMap<String, String>>Unknown field
optional: HashMap<String, Value>Optional response fields
Trait Implementations§
Source§impl Clone for PartnerLoginResponse
impl Clone for PartnerLoginResponse
Source§fn clone(&self) -> PartnerLoginResponse
fn clone(&self) -> PartnerLoginResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more