IRequest.Builderpublic static final class GetListOfCategoriesRequest.Builder extends AbstractDataRequest.Builder<GetListOfCategoriesRequest.Builder>
GetListOfCategoriesRequest.| Constructor | Description |
|---|---|
Builder(String accessToken) |
Create a new
GetListOfCategoriesRequest.Builder instance. |
| Modifier and Type | Method | Description |
|---|---|---|
GetListOfCategoriesRequest |
build() |
The request build method.
|
GetListOfCategoriesRequest.Builder |
country(com.neovisionaries.i18n.CountryCode country) |
The country code setter.
|
GetListOfCategoriesRequest.Builder |
limit(Integer limit) |
The limit setter.
|
GetListOfCategoriesRequest.Builder |
locale(String locale) |
The language code setter.
|
GetListOfCategoriesRequest.Builder |
offset(Integer offset) |
The offset setter.
|
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemepublic Builder(String accessToken)
GetListOfCategoriesRequest.Builder instance.accessToken - Required. A valid access token from the Spotify Accounts service.public GetListOfCategoriesRequest.Builder country(com.neovisionaries.i18n.CountryCode country)
country - Optional. A country: an ISO 3166-1 alpha-2 country code. Provide this parameter if you want to
narrow the list of returned categories to those relevant to a particular country. If omitted, the
returned items will be globally relevant.GetListOfCategoriesRequest.Builderpublic GetListOfCategoriesRequest.Builder locale(String locale)
locale - Optional. The desired language, consisting of an ISO 639 language code and an ISO 3166-1 alpha-2
country code, joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)". Provide this
parameter if you want the category metadata returned in a particular language. Note that, if locale
is not supplied, or if the specified language is not available, all strings will be returned in the
Spotify default language (American English). The locale parameter, combined with the country
parameter, may give odd results if not carefully matched. For example
country=SE&locale=de_DE will return a list of categories relevant to Sweden but as German
language strings.GetListOfCategoriesRequest.Builderpublic GetListOfCategoriesRequest.Builder limit(Integer limit)
limit - Optional. The maximum number of categories to return. Default: 20. Minimum: 1. Maximum: 50.GetListOfCategoriesRequest.Builder.public GetListOfCategoriesRequest.Builder offset(Integer offset)
offset - Optional. The index of the first item to return. Default: 0 (the first object). Use with
limit(Integer) to get the next set of categories.GetListOfCategoriesRequest.Builder.public GetListOfCategoriesRequest build()
GetListOfCategoriesRequest.Copyright © 2019. All rights reserved.