Example api client for ticketbud.com
Ruby JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
.gitignore
Gemfile
Gemfile.lock
README.md
index.html.slim
tb_client.rb
tb_omniauth.rb
ticketbud.yml.example

README.md

Ticketbud API Client Example

This is a quick example client to get you started using the Ticketbud API. It is by no means exhaustive, and by no means the only way to do it.

Getting Started

The ticketbud api uses Oauth2. So you will need to create your ticketbud application, authorize your callback, and maintain your own access_token.

  1. Create your account on ticketbud
  2. Follow the instructions in the API docs
  3. git clone git@github.com:Ticketbud/ticketbud-client.git
  4. cp ticketbud.yml.example ticketbud.yml
  5. Edit ticketbud.yml to your needs.
  6. bundle install
  7. bundle exec shotgun tb_client.rb

You will now have a local client server running on port 9393.

Go to http://localhost:9393

Screenshot

You will be directed to ticketbud to Authorize the Client:

Screenshot

Accept the Authorization and you will be redirected to your callback url:

Screenshot

You can view your events:

Screenshot

Now you have an idea of the ticketbud API interaction. In a real world application you wouldn't expose your access_token, and you would most likely be performing this flow in an automated way.

Happy Hacking!

Ticketbud OmniAuth Example

Also include in this repo is an example omniauth integration.

To run it:

bundle install

Then

shotgun tb_omniauth

Go to: http://localhost:9393