pub struct UserLoginResponse {Show 14 fields
pub user_id: String,
pub user_auth_token: String,
pub station_creation_ad_url: String,
pub has_audio_ads: bool,
pub splash_screen_ad_url: String,
pub video_ad_url: String,
pub username: String,
pub can_listen: bool,
pub listening_timeout_minutes: String,
pub max_stations_allowed: u32,
pub listening_timeout_alert_msg_uri: String,
pub user_profile_url: String,
pub minimum_ad_refresh_interval: u32,
pub optional: HashMap<String, Value>,
}Expand description
The returned userAuthToken is used to authenticate access to other API methods.
| Name | Type | Description | | isCapped | boolean | | | userAuthToken | string | |
{
"stat": "ok",
"result": {
"stationCreationAdUrl": "http://ad.doubleclick.net/adx/pand.android/prod.createstation;ag=112;gnd=1;zip=23950;genre=0;model=;app=;OS=;dma=560;clean=0;logon=__LOGON__;tile=1;msa=115;st=VA;co=51117;et=0;mc=0;aa=0;hisp=0;hhi=0;u=l*2jedvn446s7ce!ag*112!gnd*1!zip*23950!dma*560!clean*0!logon*__LOGON__!msa*115!st*VA!co*51117!et*0!mc*0!aa*0!hisp*0!hhi*0!genre*0;sz=320x50;ord=__CACHEBUST__",
"hasAudioAds": true,
"splashScreenAdUrl": "http://ad.doubleclick.net/pfadx/pand.android/prod.welcome;ag=112;gnd=1;zip=23950;model=;app=;OS=;dma=560;clean=0;hours=1;msa=115;st=VA;co=51117;et=0;mc=0;aa=0;hisp=0;hhi=0;u=l*op4jfgdxmddjk!ag*112!gnd*1!zip*23950!dma*560!clean*0!msa*115!st*VA!co*51117!et*0!mc*0!aa*0!hisp*0!hhi*0!hours*1;sz=320x50;ord=__CACHEBUST__",
"videoAdUrl": "http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;ag=112;gnd=1;zip=23950;dma=560;clean=0;hours=1;app=;index=__INDEX__;msa=115;st=VA;co=51117;et=0;mc=0;aa=0;hisp=0;hhi=0;u=l*2jedvn446s7ce!ag*112!gnd*1!zip*23950!dma*560!clean*0!index*__INDEX__!msa*115!st*VA!co*51117!et*0!mc*0!aa*0!hisp*0!hhi*0!hours*1;sz=442x188;ord=__CACHEBUST__",
"username": "user@example.com",
"canListen": true,
"nowPlayingAdUrl": "http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;ag=112;gnd=1;zip=23950;genre=0;station={4};model=;app=;OS=;dma=560;clean=0;hours=1;artist=;interaction=__INTERACTION__;index=__INDEX__;newUser=__AFTERREG__;logon=__LOGON__;msa=115;st=VA;co=51117;et=0;mc=0;aa=0;hisp=0;hhi=0;u=l*op4jfgdxmddjk!ag*112!gnd*1!zip*23950!station*{4}!dma*560!clean*0!index*__INDEX__!newUser*__AFTERREG__!logon*__LOGON__!msa*115!st*VA!co*51117!et*0!mc*0!aa*0!hisp*0!hhi*0!genre*0!interaction*__INTERACTION__!hours*1;sz=320x50;ord=__CACHEBUST__",
"userId": "272772589",
"listeningTimeoutMinutes": "180",
"maxStationsAllowed": 100,
"listeningTimeoutAlertMsgUri": "/mobile/still_listening.vm",
"userProfileUrl": "https://www.pandora.com/login?auth_token=XXX&target=%2Fpeople%2FXXX",
"minimumAdRefreshInterval": 5,
"userAuthToken": "XXX"
}
}| Code | Description | | 1002 | Wrong user credentials. |
Fields§
§user_id: StringThe user id that should be used for this session
user_auth_token: StringThe user auth token that should be used for this session
station_creation_ad_url: StringUnknown field.
has_audio_ads: boolUnknown field.
splash_screen_ad_url: StringUnknown field.
video_ad_url: StringUnknown field.
username: StringUnknown field.
can_listen: boolUnknown field.
listening_timeout_minutes: StringUnknown field.
max_stations_allowed: u32Unknown field.
listening_timeout_alert_msg_uri: StringUnknown field.
user_profile_url: StringUnknown field.
minimum_ad_refresh_interval: u32Unknown field.
optional: HashMap<String, Value>Additional optional fields that may appear in the response.
Trait Implementations§
Source§impl Clone for UserLoginResponse
impl Clone for UserLoginResponse
Source§fn clone(&self) -> UserLoginResponse
fn clone(&self) -> UserLoginResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserLoginResponse
impl Debug for UserLoginResponse
Source§impl<'de> Deserialize<'de> for UserLoginResponse
impl<'de> Deserialize<'de> for UserLoginResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ToUserTokens for UserLoginResponse
impl ToUserTokens for UserLoginResponse
Auto Trait Implementations§
impl Freeze for UserLoginResponse
impl RefUnwindSafe for UserLoginResponse
impl Send for UserLoginResponse
impl Sync for UserLoginResponse
impl Unpin for UserLoginResponse
impl UnwindSafe for UserLoginResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more