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.
The ticketbud api uses Oauth2. So you will need to create your ticketbud application, authorize your callback, and maintain your own access_token.
- Create your account on ticketbud
- Follow the instructions in the API docs
- git clone git@github.com:Ticketbud/ticketbud-client.git
- cp ticketbud.yml.example ticketbud.yml
- Edit ticketbud.yml to your needs.
- bundle install
- bundle exec shotgun tb_client.rb
You will now have a local client server running on port 9393.
Go to http://localhost:9393
You will be directed to ticketbud to Authorize the Client:
Accept the Authorization and you will be redirected to your callback url:
You can view your events:
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!
Also include in this repo is an example omniauth integration.
To run it:
bundle install
Then
shotgun tb_omniauth
Go to: http://localhost:9393