This a sample Python application that demonstrates a very simple usage of the Bullhorn REST API from a Web application.
The biggest initial hurdle for developers is typically getting OAuth authentication working properly, so much of this sample is dedicated to that.
You will need an OAuth partner key and secret to run the sample app successfully.
This sample uses a small Python Web framework, web.py to spin up a Web application in order to demonstrate the full OAuth redirect, authenticate, redirect flow.
There are four source files:
- api.py - Utility functions for logging in to the REST API and making calls to it
- oauth.py - Utility functions for making OAuth authentication calls
- web_utils.py - A few general Web utility functions
- api_example.py - The main sample app code. Spins up and configures the Web app, and implements request handlers for OAuth and sample API calls.