Get Single Browse Category
CategoryRetrieveResponse browse().categories().retrieve(CategoryRetrieveParamsparams = CategoryRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
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;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
CategoryRetrieveResponse category = 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
}