Get Single Browse Category
client.Browse.Categories.Get(ctx, categoryID, query) (*BrowseCategoryGetResponse, error)
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 main
import (
"context"
"fmt"
"github.com/cjavdev/spotted-go"
"github.com/cjavdev/spotted-go/option"
)
func main() {
client := spotted.NewClient(
option.WithAccessToken("My Access Token"),
)
category, err := client.Browse.Categories.Get(
context.TODO(),
"dinner",
spotted.BrowseCategoryGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", category.ID)
}
{
"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
}