tinynumbers / bandcamp-rb

Ruby Gem which wraps the Bandcamp API (up to v3).

Home Page:http://bandcamptech.wordpress.com/2010/05/15/bandcamp-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bandcamp API.

Very simple API around the information listed on this blog post from Bandcamp:
http://bandcamptech.wordpress.com/2011/03/03/bandcamp-api-2/

# Getting started

Bandcamp::Base.api_key = 'SECRET_API_KEY' # email Bandcamp support <support@bandcamp.com> for an API key

# Get band info
@band = Bandcamp::Band.load('3463798201')

@band.name #=> "Amanda Palmer"

# Get album
@album = Bandcamp::Album.load("2587417518")

@album.title #=> "Who Killed Amanda Palmer"

Check out the tests for all the information you need .. all the API methods are covered.

About

Ruby Gem which wraps the Bandcamp API (up to v3).

http://bandcamptech.wordpress.com/2010/05/15/bandcamp-api/


Languages

Language:Ruby 100.0%