This file contains hidden or 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
#!/usr/bin/env python | |
import requests | |
import json | |
import webbrowser | |
import urllib | |
# Goole app setup with "Other" category of credentials, set client id and secret here | |
# Example methods are in order: | |
# get_code() spawn a browser and ask for the user to login |