This gem provides access to add, edit and delete listings appearing on StubHub.
Add this line to your application's Gemfile:
gem 'stub_hub_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install stub_hub_api
client = StubHubApi::Login.new(consumer_key: 'consumer_key',
consumer_secret: 'consumer_secret',
username: 'username',
password: 'password')
client.account
client.user_id
client = StubHubApi::AccountManagement.new("token")
client.get_listing('user_id', options)
client.get_listings('user_id')
client = StubHubApi::AccountManagementSale.new("token")
client.get_sales(user_id, options)
client = StubHubApi::Listing.new("token")
client.create(options)
client.create_with_barcode(options)
client.delete(listing_id)
client.update(listing_id, options)
client.show(listing_id, options)
client = StubHubApi::Search.new("token")
client.listing(options)
client.section(options)
client.event(options)
client = StubHubApi::Alert.new("token")
client.delete(user_id, alert_id)
client.update(user_id, options)
client.show(user_id, alert_id, options)
- Fork it ( https://github.com/hashdog/stub_hub_api/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request