[ Launch Inlet ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from withings import * | |
import matplotlib.pyplot as plt #for plotting weights | |
from datetime import datetime | |
from pandas import * | |
#----------------------------------- | |
#get your consumer key and secret after registering | |
#as a developer here: https://oauth.withings.com/en/partner/add | |
consumer_key='your_consumer_key_here_1111111111111111111111111111111111111111' | |
consumer_secret='your_consumer_secret_here_1111111111111111111111111111111111111111111' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib#for computing hash | |
from rauth.service import OAuth1Service #see https://github.com/litl/rauth for more info | |
import shelve #for persistent caching of tokens, hashes,etc. | |
#get your consumer key and secret after registering as a developer here: https://oauth.withings.com/en/partner/add | |
#FIXME add method to set default units and make it an optional argument to the constructor | |
class Withings: | |
def __init__(self,email_address,consumer_key,consumer_secret,cache_name='tokens.dat'): | |
if email_address == None: |
[ Launch Inlet ]
[ Launch Inlet ]
[ Launch Inlet ]
[ Launch Inlet ]
[ Launch Inlet ]
[ Launch Inlet ]
[ Launch Inlet ]
OlderNewer