Skip to content

octabode/api-example-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Example

Example app using Climate's API.

Setup

Install python 3.6+.

# if you use Mac OS X and brew, this can be done with:
brew install python3

Make a virtual environment, activate it, and install dependencies.

python3 -m venv api-example
source api-example/bin/activate
pip install -r requirements.txt

When you're done testing the example, deactivate the virtual environment with:

deactivate

Running the example

  1. Follow steps in Setup

  2. Set the following environment variables to the values provided by Climate:

    export CLIMATE_API_ID="partner-fooco"
    export CLIMATE_API_SECRET="azbq56fpadhnt8oukoeani2a4w"
    export CLIMATE_API_KEY="partner-fooco-216b9875-0158-4142-1ab2-7c3bdbd6a2157"
    
  3. Start the server:

    python3 main.py
  4. Open a browser to localhost:8080/home

License

Copyright © 2017 The Climate Corporation

About

Climate API Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%