Go library for the Spotify Web API

Overview

go-spotify

GoDoc baby-gopher

Simple Go library for the Spotify Web API

Installation

go get github.com/rapito/go-spotify/spotify

How-to-use

  • Get Requests
    import "fmt"
    import "github.com/rapito/go-spotify/spotify"
    ...
    
    spot := spotify.New(clientID,clientSecret)
    result, _ := spot.Get("albums/%s", nil, "0sNOF9WDwhWunNAHPD3Baj")
    
    fmt.Println(string(result))
  • Check out the examples folder for simple usage.
  • Read some of the tests at spotify_test.go for more examples.

Contribution

  • You may fork this library and modify it as you please.
  • You can make a pull request and I will be happy to check it out and merge it.
  • If you find a bug, create an issue and I will do my best to fix it (someday).

Constraints

Right now this API version can only make successful GET requests since it just authenticates the application and not an specific user. This means you can use limited endpoints of spotify WEB API, as documented on their web page:

The access token allows you to make requests to the Spotify Web 
API endpoints that do not require user authorization such as the Get a 
track endpoint...

To see which endpoints you have access to, check out spotify web-api documentation.

Buy me a Drink

Donate

Links

While I was on my go-trip to create this api, I found some awesome libs/links which made my life easier. Check them out, hopefully they'll do the same for you:

Other APIs

You might also like...
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS _____ ____ ______ _____ _ _ _____ _____ _____ _____ / ____|/ __ \ | ____|_ _| \ | | __ \ /\ | __ \_

The NVD API is an unofficial Go wrapper around the NVD API.

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

A Wrapper Client for Google Spreadsheet API (Sheets API)

Senmai A Wrapper Client for Google Spreadsheet API (Sheets API) PREPARATION Service Account and Key File Create a service account on Google Cloud Plat

💾 Wolke API is the API behind Wolke image storage and processing aswell as user management

💾 Wolke API Wolke API is the API behind Wolke image storage and processing aswell as user management Deploying To deploy Wolke Bot you'll need podman

Upcoming mobiles api (UpMob API)

upcoming_mobiles_api (UpMob API) UpMob API scraps 91mobiles.com to get devices i

Arweave-api - Arweave API implementation in golang

Arweave API Go implementation of the Arweave API Todo A list of endpoints that a

Owner
Robert Peralta
螺旋コーダ
Robert Peralta
Spotify Search Microservice

SpotifySearch Service This is the SpotifySearch service Generated with micro new spotify-search Usage Generate the proto code make proto Run the ser

null 0 Nov 21, 2021
Fetch the Spotify friend activity via Go

spotify-buddylist Fetch the Spotify friend activity via Go Overview The official Spotify API doesn't provide a way to fetch the friend activity feed t

Batuhan Saka 2 Jan 2, 2022
go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

null 17 Nov 30, 2022
Whatsmeow is a Go library for the WhatsApp web multidevice API.

whatsmeow whatsmeow is a Go library for the WhatsApp web multidevice API. This was initially forked from go-whatsapp (MIT license), but large parts of

Tulir Asokan 704 Dec 5, 2022
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Siva Prakash 3 Feb 6, 2022
Go library for accessing the MyAnimeList API: http://myanimelist.net/modules.php?go=api

go-myanimelist go-myanimelist is a Go client library for accessing the MyAnimeList API. Project Status The MyAnimeList API has been stable for years a

Stratos Neiros 33 Sep 28, 2022
WhatsApp Web API

go-whatsapp Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers. Big thanks to all contributors of

Lucas Engelke 1.8k Dec 3, 2022
Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers

go-whatsapp Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers. Big thanks to all contributors of

Relldev メイ 3 Mar 19, 2022
Backgammon Web API. Sophisticed neural net based multi-ply evalution engine for Backgammon moves

Backgammon Web API. Sophisticed neural net based multi-ply evalution engine for Backgammon moves.

Rami 2 Sep 6, 2022
Awspowertoggle - Web UI and API for quickly starting and stopping AWS environments

aws-power-toggle web UI and API for quickly starting and stopping AWS environmen

null 1 Feb 23, 2022