Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.05 KB

File metadata and controls

34 lines (29 loc) · 1.05 KB

aWhere API Python Sample Application

Getting started

  1. Install Python and dependencies
  • Python: https://www.python.org/downloads/
  • Requests: The requests library is used for making HTTP requests in Python
  • Futures: The 'futures' library is used for backwards compatibility between Python 2 and 3
$ pip install requests future
  1. Clone this repo
$ git clone https://github.com/aWhereAPI/API-Code-Samples.git
  1. Navigate to API-Code-Samples/python. Open the awhere_demo.py file.
    • Enter your app's secret and key accordingly
    # Enter your Api Key and Secret below:
    api_key = '' 
    api_secret = '' 
    and save the file.
  2. From your command line, type python awhere_demo.py

Troubleshooting

Q: The following error appears when I attempt to run the demo:

Error: Missing API Key.
Please place your API key in the main script and try again.

A: Enter your key and secret inside of the appropriate variables located in the awhere_demo.py file. Make sure you are not including any whitespace.