The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Net::Async::Spotify::API::Generated::Personalization at lib/Net/Async/Spotify/API/Generated/Personalization.pm (on the system that originally ran this). If you do edit this file, and don't want your changes to be removed, make sure you change the first line.

NAME

Net::Async::Spotify::API::Generated::Personalization - Package representing Spotify Personalization API

DESCRIPTION

Autogenerated module. Based on https://developer.spotify.com/documentation/web-api/reference/#reference-index Check crawl-api-doc.pl for more information.

METHODS

get_users_top_artists_and_tracks

get_users_top_artists_and_tracks - Get a User's Top Artists and Tracks

Get the current user’s top artists or tracks based on calculated affinity.

with Request details being:

Authorization

Type: string | Required: required A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The access token must have been issued on behalf of the current user.Getting details of a user’s top artists and tracks requires authorization of the user-top-read scope. See Using Scopes.

path_parameter

type

Type: string | Required: required The type of entity to return. Valid values: artists or tracks

query_parameter

limit

Type: integer | Required: optional The number of entities to return. Default: 20. Minimum: 1. Maximum: 50. For example: limit=2

offset

Type: integer | Required: optional The index of the first entity to return. Default: 0 (i.e., the first track). Use with limit to get the next set of entities.

time_range

Type: string | Required: optional Over what time frame the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), medium_term (approximately last 6 months), short_term (approximately last 4 weeks). Default: medium_term

and Response Objects being:

- paging object

On success, the HTTP status code in the response header is 200 OK and the response body contains a paging object of Artists or Tracks. On error, the header status code is an error code and the response body contains an error object.Try in our Web Console

INHERITED METHODS

Net::Async::Spotify::API::Base

call_api, decode_response, new, parse_response, spotify