Skip to content

Ticketbud/ticketbud-client

Repository files navigation

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 [email protected]: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

About

Example api client for ticketbud.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published