Skip to content

teamtito/tito-api-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tito API Lookup

What?

Sometimes you want to be able to let folks do something with data in Tito without giving them full access to Tito. A simple app like this lets you pull from the Tito API, process the data, and output it to someone.

Get started

Assuming you have Ruby and bundler installed on your system:

bundle install

Run in development

cp .env-sample .env

In .env:

  • Set your Tito event
  • Set your secret key in .env
  • Set a random shared secret

bundle exec puma -p 7170

Visit http://localhost:7170/lookup?q=XYZ&shared_secret=abc to look up against your event.

Deploy to Heroku

Usage

GET /lookup?q=< reference >&shared_secret=< your secret >

If a ticket with that reference matches, you'll get:

{ "valid": true, "name": "Joe Bloggs" }

If it doesn't match, you'll get:

{ "valid": false }

Development

If you want to make changes, you can use rerun to load changes automatically:

bundle exec rerun puma

About

A simple Sinatra app to look up the Tito API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published