Project

songlink

0.0
No commit activity in last 3 years
No release in over 3 years
songlink API client library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1.4
~> 0.13.1
~> 13.0.1
~> 3.9.0
~> 0.84.0
~> 3.8.3

Runtime

~> 1.0.1
~> 4.1.0
 Project Readme

Songlink

Songlink API client library.

Installation

Add this line to your application's Gemfile:

gem 'songlink'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install songlink

Usage

require 'songlink'

songlink = Songlink.new
res = songlink.request({ url: 'spotify:track:0BKR0dFPDmhREewiiqGArC', userCountry: 'JP' })

Setting API key

API key is optional.

Please refer to the official API documentation on how to get API key.

songlink = Songlink.new('your_api_key')

If environment variable SONGLINK_API_KEY is set in .bash_profile etc, no argument is necessary.

export SONGLINK_API_KEY=your_api_key

License

The gem is available as open source under the terms of the MIT License.