[−][src]Module aspotify::endpoints
Endpoint functions to the Spotify API.
Common Parameters
Parameter | Use |
---|---|
token | An access token needed to make the request, generated by either a CCFlow or an AuthCodeFlow. |
id(s) | The Spotify ID(s) of the required resource. |
country | Limits the request to one particular country, so that resources not available in the country will not appear in the results. |
market | Limits the request to one particular country, and applies Track Relinking. |
locale | The language of the response. It consists of an ISO-639 language code and an ISO-3166 country code (for, example, En and GBR is British English). |
limit | When the function returns a Page, CursorPage or TwoWayCursorPage, this determines the maximum length of the page. |
offset | When the function returns a Page, this determines what index in the larger list the page starts at. |
cursor , before and after | When the function returns a CursorPage or TwoWayCursorPage, this determines to give the next (cursor or after ) or previous (before ) page. |
Re-exports
pub use albums::*; |
pub use artists::*; |
pub use browse::*; |
pub use follow::*; |
pub use library::*; |
pub use personalization::*; |
pub use player::*; |
pub use playlists::*; |
pub use search::*; |
pub use tracks::*; |
pub use users_profile::*; |
Modules
albums | Endpoint functions relating to albums. |
artists | Endpoint functions relating to artists. |
browse | Endpoint functions related to categories, featured playlists, recommendations, and new releases. |
follow | Endpoint functions relating to following and unfollowing artists, users and playlists. |
library | Endpoints relating to saving albums and tracks. |
personalization | Endpoint functions relating to a user's top artists and tracks. |
player | Endpoint functions related to controlling what is playing on the current user's Spotify account. (Beta) |
playlists | Endpoint functions relating to playlists. |
search | The search function. |
tracks | Endpoint functions related to tracks and audio analysis. |
users_profile | Endpoint functions related to users' profiles. |
Enums
Market | A market in which to limit the request to. |
TimeRange | A time range from which to calculate the response. |