Get detailed profile information about the current user (including the current user's username).
Returns
Get Current User's Profile
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"),
)
me, err := client.Me.Get(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", me.ID)
}
{
"id": "id",
"country": "country",
"display_name": "display_name",
"email": "email",
"explicit_content": {
"filter_enabled": true,
"filter_locked": true,
"published": true
},
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"product": "product",
"published": true,
"type": "type",
"uri": "uri"
}Returns Examples
{
"id": "id",
"country": "country",
"display_name": "display_name",
"email": "email",
"explicit_content": {
"filter_enabled": true,
"filter_locked": true,
"published": true
},
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"product": "product",
"published": true,
"type": "type",
"uri": "uri"
}