/// Authenticate the partner (application) with Pandora.  This is separate
/// from, and a pre-requisite to, user authentication.  It is not generally
/// necessary to call this function directly, though, as each method will
/// authenticate as much as necessary to complete the request.
Authenticate the partner (application) with Pandora.  This is separate
from, and a pre-requisite to, user authentication.  It is not generally
necessary to call this function directly, though, as each method will
authenticate as much as necessary to complete the request.
Authenticate the partner ( application ) with Pandora . This is separate from and a pre - requisite to user authentication . It is not generally necessary to call this function directly though as each method will authenticate as much as necessary to complete the request .
pub fn partner_login(&mut self) -> Result<()> {
        let session_tokens = self.inner.session_tokens();
        let session_sync_time = session_tokens.get_sync_time();
        if session_tokens
            .partner_id
            .as_ref()
            .and(session_tokens.partner_token.as_ref())
            .and(session_sync_time.as_ref())
            .is_some()
        {
            return Ok(());
        }
        trace!("Partner login");
        PartnerLogin::new(
            "android",
            "AC7IBG09A3DTSYM4R41UJWL07VLN8JI7",
            "android-generic",
            Some("5".to_string()),
        )
        .merge_response(&mut self.inner)?;
        trace!("Partner login successful");
        Ok(())
    }
pub fn partner_login ( & mut self ) -> Result < ( ) > { let session_tokens = self . inner . session_tokens ( ) ; let session_sync_time = session_tokens . get_sync_time ( ) ; if session_tokens . partner_id . as_ref ( ) . and ( session_tokens . partner_token . as_ref ( ) ) . and ( session_sync_time . as_ref ( ) ) . is_some ( ) { return Ok ( ( ) ) ; } trace ! ( " " ) ; PartnerLogin :: new ( " " , " " , " " , Some ( " " . to_string ( ) ) , ) . merge_response ( & mut self . inner ) ? ; trace ! ( " " ) ; Ok ( ( ) ) }
Authenticate the partner (application) with Pandora.
Authenticate the partner ( application ) with Pandora .
&mut self