pub struct GetPlaylist {
pub station_token: String,
pub optional: HashMap<String, Value>,
}Expand description
This method must be sent over a TLS-encrypted connection.
| Name | Type | Description | | stationToken | string | station token from Retrieve station list | | additionalAudioUrl | string | Comma separated list of additional audio formats to return. (optional) | | stationIsStarting | boolean | (optional) | | includeTrackLength | boolean | (optional) | | includeAudioToken | boolean | (optional) | | xplatformAdCapable | boolean | (optional) | | includeAudioReceiptUrl | boolean | (optional) | | includeBackstageAdUrl | boolean | (optional) | | includeSharingAdUrl | boolean | (optional) | | includeSocialAdUrl | boolean | (optional) | | includeCompetitiveSepIndicator | boolean | (optional) | | includeCompletePlaylist | boolean | (optional) | | includeTrackOptions | boolean | (optional) | | audioAdPodCapable | boolean | (optional) |
Valid values for additionalAudioUrl are:
- HTTP_40_AAC_MONO
- HTTP_64_AAC
- HTTP_32_AACPLUS
- HTTP_64_AACPLUS
- HTTP_24_AACPLUS_ADTS
- HTTP_32_AACPLUS_ADTS
- HTTP_64_AACPLUS_ADTS
- HTTP_128_MP3
- HTTP_32_WMA
Usually a playlist contains four tracks.
{
"userAuthToken": "XXX",
"additionalAudioUrl": "HTTP_32_AACPLUS_ADTS,HTTP_64_AACPLUS_ADTS",
"syncTime": 1335841463,
"stationToken": "121193154444133035"
}Fields§
§station_token: StringThe unique id (token) for the station to request a playlist from
optional: HashMap<String, Value>Optional parameters on the call
Implementations§
Source§impl GetPlaylist
impl GetPlaylist
Sourcepub fn and_boolean_option(self, option: &str, value: bool) -> Self
pub fn and_boolean_option(self, option: &str, value: bool) -> Self
Convenience function for setting boolean flags in the request. (Chaining call)
Sourcepub fn additional_audio_url(self, value: &str) -> Self
pub fn additional_audio_url(self, value: &str) -> Self
Additional (non-default) audio formats that should be included in the response. Repeat call to include additional formats. (Chaining call)
Sourcepub fn station_is_starting(self, value: bool) -> Self
pub fn station_is_starting(self, value: bool) -> Self
Whether request should also mark the station as starting. (Chaining call)
Sourcepub fn include_track_length(self, value: bool) -> Self
pub fn include_track_length(self, value: bool) -> Self
Whether playlist entries should include the track length in the response. (Chaining call)
Sourcepub fn include_audio_token(self, value: bool) -> Self
pub fn include_audio_token(self, value: bool) -> Self
Whether playlist entries should include the audio token in the response. (Chaining call)
Sourcepub fn xplatform_ad_capable(self, value: bool) -> Self
pub fn xplatform_ad_capable(self, value: bool) -> Self
Whether the client is cross-platform ad capable. (Chaining call)
Sourcepub fn include_audio_receipt_url(self, value: bool) -> Self
pub fn include_audio_receipt_url(self, value: bool) -> Self
Whether to include audio receipt url in the response. (Chaining call)
Sourcepub fn include_backstage_ad_url(self, value: bool) -> Self
pub fn include_backstage_ad_url(self, value: bool) -> Self
Whether to include backstage ad url in the response. (Chaining call)
Sourcepub fn include_sharing_ad_url(self, value: bool) -> Self
pub fn include_sharing_ad_url(self, value: bool) -> Self
Whether to include sharing ad url in the response. (Chaining call)
Whether to include social ad url in the response. (Chaining call)
Sourcepub fn include_competitive_sep_indicator(self, value: bool) -> Self
pub fn include_competitive_sep_indicator(self, value: bool) -> Self
Whether to include competitive sep indicator in the response. (Chaining call)
Sourcepub fn include_complete_playlist(self, value: bool) -> Self
pub fn include_complete_playlist(self, value: bool) -> Self
Whether to include complete playlist in the response. (Chaining call)
Sourcepub fn include_track_options(self, value: bool) -> Self
pub fn include_track_options(self, value: bool) -> Self
Whether to include track options in the response. (Chaining call)
Sourcepub fn audio_ad_pod_capable(self, value: bool) -> Self
pub fn audio_ad_pod_capable(self, value: bool) -> Self
Indicate to Pandora whether the client is audio ad pod capable. (Chaining call)
Trait Implementations§
Source§impl Clone for GetPlaylist
impl Clone for GetPlaylist
Source§fn clone(&self) -> GetPlaylist
fn clone(&self) -> GetPlaylist
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more