Class: Spotted::Models::RecommendationGetParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/spotted/models/recommendation_get_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(limit: nil, market: nil, max_acousticness: nil, max_danceability: nil, max_duration_ms: nil, max_energy: nil, max_instrumentalness: nil, max_key: nil, max_liveness: nil, max_loudness: nil, max_mode: nil, max_popularity: nil, max_speechiness: nil, max_tempo: nil, max_time_signature: nil, max_valence: nil, min_acousticness: nil, min_danceability: nil, min_duration_ms: nil, min_energy: nil, min_instrumentalness: nil, min_key: nil, min_liveness: nil, min_loudness: nil, min_mode: nil, min_popularity: nil, min_speechiness: nil, min_tempo: nil, min_time_signature: nil, min_valence: nil, seed_artists: nil, seed_genres: nil, seed_tracks: nil, target_acousticness: nil, target_danceability: nil, target_duration_ms: nil, target_energy: nil, target_instrumentalness: nil, target_key: nil, target_liveness: nil, target_loudness: nil, target_mode: nil, target_popularity: nil, target_speechiness: nil, target_tempo: nil, target_time_signature: nil, target_valence: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Spotted::Models::RecommendationGetParams for more details.

Parameters:

  • limit (Integer) (defaults to: nil)

    The target size of the list of recommended tracks. For seeds with unusually smal

  • market (String) (defaults to: nil)

    An [ISO 3166-1 alpha-2 country code](en.wikipedia.org/wiki/ISO_3166-1_al

  • max_acousticness (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_danceability (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_duration_ms (Integer) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_energy (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_instrumentalness (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_key (Integer) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_liveness (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_loudness (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_mode (Integer) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_popularity (Integer) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_speechiness (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_tempo (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_time_signature (Integer) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • max_valence (Float) (defaults to: nil)

    For each tunable track attribute, a hard ceiling on the selected track attribute

  • min_acousticness (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_danceability (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_duration_ms (Integer) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_energy (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_instrumentalness (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_key (Integer) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_liveness (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_loudness (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_mode (Integer) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_popularity (Integer) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_speechiness (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_tempo (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_time_signature (Integer) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • min_valence (Float) (defaults to: nil)

    For each tunable track attribute, a hard floor on the selected track attribute’s

  • seed_artists (String) (defaults to: nil)

    A comma separated list of [Spotify IDs](/documentation/web-api/concepts/spotify-

  • seed_genres (String) (defaults to: nil)

    A comma separated list of any genres in the set of [available genre seeds](/docu

  • seed_tracks (String) (defaults to: nil)

    A comma separated list of [Spotify IDs](/documentation/web-api/concepts/spotify-

  • target_acousticness (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_danceability (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_duration_ms (Integer) (defaults to: nil)

    Target duration of the track (ms)

  • target_energy (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_instrumentalness (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_key (Integer) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_liveness (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_loudness (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_mode (Integer) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_popularity (Integer) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_speechiness (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_tempo (Float) (defaults to: nil)

    Target tempo (BPM)

  • target_time_signature (Integer) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • target_valence (Float) (defaults to: nil)

    For each of the tunable track attributes (below) a target value may be provided.

  • request_options (Spotted::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/spotted/models/recommendation_get_params.rb', line 448

Instance Attribute Details

#limitInteger?

The target size of the list of recommended tracks. For seeds with unusually small pools or when highly restrictive filtering is applied, it may be impossible to generate the requested number of recommended tracks. Debugging information for such cases is available in the response. Default: 20. Minimum: 1. Maximum: 100.

Returns:

  • (Integer, nil)


18
# File 'lib/spotted/models/recommendation_get_params.rb', line 18

optional :limit, Integer

#marketString?

An [ISO 3166-1 alpha-2 country code](en.wikipedia.org/wiki/ISO_3166-1_alpha-2). If a country code is specified, only content that is available in that market will be returned.<br/> If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter.<br/> _Note: If neither market or user country are provided, the content is considered unavailable for the client._<br/> Users can view the country that is associated with their account in the [account settings](www.spotify.com/account/overview/).

Returns:

  • (String, nil)


32
# File 'lib/spotted/models/recommendation_get_params.rb', line 32

optional :market, String

#max_acousticnessFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


41
# File 'lib/spotted/models/recommendation_get_params.rb', line 41

optional :max_acousticness, Float

#max_danceabilityFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


50
# File 'lib/spotted/models/recommendation_get_params.rb', line 50

optional :max_danceability, Float

#max_duration_msInteger?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Integer, nil)


59
# File 'lib/spotted/models/recommendation_get_params.rb', line 59

optional :max_duration_ms, Integer

#max_energyFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


68
# File 'lib/spotted/models/recommendation_get_params.rb', line 68

optional :max_energy, Float

#max_instrumentalnessFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


77
# File 'lib/spotted/models/recommendation_get_params.rb', line 77

optional :max_instrumentalness, Float

#max_keyInteger?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Integer, nil)


86
# File 'lib/spotted/models/recommendation_get_params.rb', line 86

optional :max_key, Integer

#max_livenessFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


95
# File 'lib/spotted/models/recommendation_get_params.rb', line 95

optional :max_liveness, Float

#max_loudnessFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


104
# File 'lib/spotted/models/recommendation_get_params.rb', line 104

optional :max_loudness, Float

#max_modeInteger?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Integer, nil)


113
# File 'lib/spotted/models/recommendation_get_params.rb', line 113

optional :max_mode, Integer

#max_popularityInteger?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Integer, nil)


122
# File 'lib/spotted/models/recommendation_get_params.rb', line 122

optional :max_popularity, Integer

#max_speechinessFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


131
# File 'lib/spotted/models/recommendation_get_params.rb', line 131

optional :max_speechiness, Float

#max_tempoFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


140
# File 'lib/spotted/models/recommendation_get_params.rb', line 140

optional :max_tempo, Float

#max_time_signatureInteger?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Integer, nil)


149
# File 'lib/spotted/models/recommendation_get_params.rb', line 149

optional :max_time_signature, Integer

#max_valenceFloat?

For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘max_instrumentalness=0.35` would filter out most tracks that are likely to be instrumental.

Returns:

  • (Float, nil)


158
# File 'lib/spotted/models/recommendation_get_params.rb', line 158

optional :max_valence, Float

#min_acousticnessFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


167
# File 'lib/spotted/models/recommendation_get_params.rb', line 167

optional :min_acousticness, Float

#min_danceabilityFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


176
# File 'lib/spotted/models/recommendation_get_params.rb', line 176

optional :min_danceability, Float

#min_duration_msInteger?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Integer, nil)


185
# File 'lib/spotted/models/recommendation_get_params.rb', line 185

optional :min_duration_ms, Integer

#min_energyFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


194
# File 'lib/spotted/models/recommendation_get_params.rb', line 194

optional :min_energy, Float

#min_instrumentalnessFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


203
# File 'lib/spotted/models/recommendation_get_params.rb', line 203

optional :min_instrumentalness, Float

#min_keyInteger?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Integer, nil)


212
# File 'lib/spotted/models/recommendation_get_params.rb', line 212

optional :min_key, Integer

#min_livenessFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


221
# File 'lib/spotted/models/recommendation_get_params.rb', line 221

optional :min_liveness, Float

#min_loudnessFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


230
# File 'lib/spotted/models/recommendation_get_params.rb', line 230

optional :min_loudness, Float

#min_modeInteger?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Integer, nil)


239
# File 'lib/spotted/models/recommendation_get_params.rb', line 239

optional :min_mode, Integer

#min_popularityInteger?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Integer, nil)


248
# File 'lib/spotted/models/recommendation_get_params.rb', line 248

optional :min_popularity, Integer

#min_speechinessFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


257
# File 'lib/spotted/models/recommendation_get_params.rb', line 257

optional :min_speechiness, Float

#min_tempoFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


266
# File 'lib/spotted/models/recommendation_get_params.rb', line 266

optional :min_tempo, Float

#min_time_signatureInteger?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Integer, nil)


275
# File 'lib/spotted/models/recommendation_get_params.rb', line 275

optional :min_time_signature, Integer

#min_valenceFloat?

For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided. See tunable track attributes below for the list of available options. For example, ‘min_tempo=140` would restrict results to only those tracks with a tempo of greater than 140 beats per minute.

Returns:

  • (Float, nil)


284
# File 'lib/spotted/models/recommendation_get_params.rb', line 284

optional :min_valence, Float

#seed_artistsString?

A comma separated list of [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids) for seed artists. Up to 5 seed values may be provided in any combination of ‘seed_artists`, `seed_tracks` and `seed_genres`.<br/> _Note: only required if `seed_genres` and `seed_tracks` are not set_.

Returns:

  • (String, nil)


294
# File 'lib/spotted/models/recommendation_get_params.rb', line 294

optional :seed_artists, String

#seed_genresString?

A comma separated list of any genres in the set of [available genre seeds](/documentation/web-api/reference/get-recommendation-genres). Up to 5 seed values may be provided in any combination of ‘seed_artists`, `seed_tracks` and `seed_genres`.<br/> _Note: only required if `seed_artists` and `seed_tracks` are not set_.

Returns:

  • (String, nil)


304
# File 'lib/spotted/models/recommendation_get_params.rb', line 304

optional :seed_genres, String

#seed_tracksString?

A comma separated list of [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids) for a seed track. Up to 5 seed values may be provided in any combination of ‘seed_artists`, `seed_tracks` and `seed_genres`.<br/> _Note: only required if `seed_artists` and `seed_genres` are not set_.

Returns:

  • (String, nil)


314
# File 'lib/spotted/models/recommendation_get_params.rb', line 314

optional :seed_tracks, String

#target_acousticnessFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


324
# File 'lib/spotted/models/recommendation_get_params.rb', line 324

optional :target_acousticness, Float

#target_danceabilityFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


334
# File 'lib/spotted/models/recommendation_get_params.rb', line 334

optional :target_danceability, Float

#target_duration_msInteger?

Target duration of the track (ms)

Returns:

  • (Integer, nil)


340
# File 'lib/spotted/models/recommendation_get_params.rb', line 340

optional :target_duration_ms, Integer

#target_energyFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


350
# File 'lib/spotted/models/recommendation_get_params.rb', line 350

optional :target_energy, Float

#target_instrumentalnessFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


360
# File 'lib/spotted/models/recommendation_get_params.rb', line 360

optional :target_instrumentalness, Float

#target_keyInteger?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Integer, nil)


370
# File 'lib/spotted/models/recommendation_get_params.rb', line 370

optional :target_key, Integer

#target_livenessFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


380
# File 'lib/spotted/models/recommendation_get_params.rb', line 380

optional :target_liveness, Float

#target_loudnessFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


390
# File 'lib/spotted/models/recommendation_get_params.rb', line 390

optional :target_loudness, Float

#target_modeInteger?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Integer, nil)


400
# File 'lib/spotted/models/recommendation_get_params.rb', line 400

optional :target_mode, Integer

#target_popularityInteger?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Integer, nil)


410
# File 'lib/spotted/models/recommendation_get_params.rb', line 410

optional :target_popularity, Integer

#target_speechinessFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


420
# File 'lib/spotted/models/recommendation_get_params.rb', line 420

optional :target_speechiness, Float

#target_tempoFloat?

Target tempo (BPM)

Returns:

  • (Float, nil)


426
# File 'lib/spotted/models/recommendation_get_params.rb', line 426

optional :target_tempo, Float

#target_time_signatureInteger?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Integer, nil)


436
# File 'lib/spotted/models/recommendation_get_params.rb', line 436

optional :target_time_signature, Integer

#target_valenceFloat?

For each of the tunable track attributes (below) a target value may be provided. Tracks with the attribute values nearest to the target values will be preferred. For example, you might request ‘target_energy=0.6` and `target_danceability=0.8`. All target values will be weighed equally in ranking results.

Returns:

  • (Float, nil)


446
# File 'lib/spotted/models/recommendation_get_params.rb', line 446

optional :target_valence, Float