copy weight data from fitbit to google
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user