Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Ruby wrapper for the Gumroad API.

tree: 7199fa1a1c

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 gumroad.gemspec
README.markdown

Gumroad

Gumroad is a Ruby wrapper for the Gumroad API.

This gem is a work in progress. Contributions are welcome.

Authentication

client = Gumroad.new(username, password)

If you feel the need to, you can revoke the session.

client.destroy

Links

links = client.links.all
link = client.links.find(id)

You now have a Gumroad::Link object. You can call methods such as link.name and link.url.

You can then modify the link's attributes and call save to update it.

link.price = '100'
link.save

It's pretty easy to create a link.

client.links.create(name: '@maxstoller', url: 'http://twitter.com/maxstoller', description: 'A link to @maxstoller.', price: '100')

Thanks

  • GroupMe's quimby gem. I took their object approach when writing this gem.
Something went wrong with that request. Please try again.