copy weight data from fitbit to google

This commit is contained in:
John Tantalo
2014-12-15 08:10:06 -08:00
parent 6155242532
commit 781b625aa5
5 changed files with 180 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import sys
from oauth2client.file import Storage
from oauth2client.client import OAuth2WebServerFlow
from oauth2client.tools import run_flow, argparser
def main():
client_id = sys.argv[1]
client_secret = sys.argv[2]
scope = sys.argv[3]
flow = OAuth2WebServerFlow(client_id, client_secret, scope)
storage = Storage('google.json')
flags = argparser.parse_args([])
run_flow(flow, storage, flags)
if __name__ == '__main__':
main()