Get Single Browse Category
browse().categories().retrieve(CategoryRetrieveParamsparams = CategoryRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : CategoryRetrieveResponse
GET/browse/categories/{category_id}
Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
Parameters
Returns
Get Single Browse Category
package dev.cjav.spotted.example
import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.browse.categories.CategoryRetrieveParams
import dev.cjav.spotted.models.browse.categories.CategoryRetrieveResponse
fun main() {
val client: SpottedClient = SpottedOkHttpClient.fromEnv()
val category: CategoryRetrieveResponse = client.browse().categories().retrieve("dinner")
}{
"id": "equal",
"href": "href",
"icons": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"name": "EQUAL",
"published": true
}Returns Examples
{
"id": "equal",
"href": "href",
"icons": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"name": "EQUAL",
"published": true
}