Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marceloboeira/spotify.cr

:headphones: A Crystal wrapper for the Spotify Web API
https://github.com/marceloboeira/spotify.cr

api crystal spotify wrapper

Last synced: about 2 months ago
JSON representation

:headphones: A Crystal wrapper for the Spotify Web API

Awesome Lists containing this project

README

        

# spotify.cr [![Build Status](https://travis-ci.org/marceloboeira/spotify.cr.svg?branch=master)](https://travis-ci.org/marceloboeira/spotify.cr)
> A Crystal wrapper for the Spotify API

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
spotify:
github: marceloboeira/spotify.cr
```

## Usage

### Track

```crystal
require "spotify"

puts Spotify::Track.find("23MrkN7g6Q5U7GLIxNHN1B").name
# => Foxey Lady
```

### Album

```crystal
require "spotify"

puts Spotify::Album.find("7rSZXXHHvIhF4yUFdaOCy9").name
# => Are You Experienced
```

### Artist

```crystal
require "spotify"

puts Spotify::Artist.find("776Uo845nYHJpNaStv1Ds4").name
# => Jimi Hendrix
```