Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marceloboeira/spotify.cr
- Owner: marceloboeira
- License: mit
- Archived: true
- Created: 2016-03-11T20:05:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T20:21:14.000Z (almost 8 years ago)
- Last Synced: 2024-06-22T02:49:28.607Z (3 months ago)
- Topics: api, crystal, spotify, wrapper
- Language: Crystal
- Homepage:
- Size: 56.6 KB
- Stars: 35
- Watchers: 8
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - spotify.cr - A library to access the Spotify API (Third-party APIs)
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
```