spotify

Version, currently master branch1 version
  • master branchlatestOct 20, 2016

github.com/marceloboeira/spotify.cr

:headphones: A Crystal wrapper for the Spotify Web API

36 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  spotify:
    github: marceloboeira/spotify.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Marcelo Boeira <me@marceloboeira.com>

Dependencies

Development Dependencies

  • spec2~> 0.9.0github: waterlink/spec2.crdev
  • webmock~> 0.8.0github: manastech/webmock.crdev

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
```