diff --git a/scripts/google_pickle_string/get_google_pickle_string.py b/scripts/google_pickle_string/get_google_pickle_string.py deleted file mode 100644 index 52ccbc54..00000000 --- a/scripts/google_pickle_string/get_google_pickle_string.py +++ /dev/null @@ -1,19 +0,0 @@ -import base64 -import pickle -from google_auth_oauthlib.flow import InstalledAppFlow - -SCOPES = [ - "https://www.googleapis.com/auth/drive", - "https://www.googleapis.com/auth/docs", - "https://www.googleapis.com/auth/spreadsheets", -] -def main(): - flow = InstalledAppFlow.from_client_secrets_file('credentials.json', SCOPES) - creds = flow.run_local_server(port=8081) - if not creds or not creds.valid: - print("There is issue with credentials. Please check.") - exit(0) - print("\n\nCopy pickle string which is present in single quotes and save. Paste it during installation GWorkspace Function App:\n\n{}".format(base64.b64encode(pickle.dumps(creds)))) - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/scripts/google_pickle_string/requirements.txt b/scripts/google_pickle_string/requirements.txt deleted file mode 100644 index d91c2fef..00000000 --- a/scripts/google_pickle_string/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -google-api-python-client==2.153.0 -google-auth-httplib2==0.2.0 -google-auth-oauthlib==1.2.1 \ No newline at end of file