Category : google-api

I have a small script copied from Google, it is supposed to upload a file to my appDataFolder at google drive, When run for the first time it asks for the authentications and I grant permission for it import os.path from googleapiclient.http import MediaFileUpload from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import ..

Read more

I want to get list of users google api but face an issue My steps are: Created Service account with domain wide delegation and listed scopes (same as in the script) Downloaded json file with private key On execution of the next script import google.auth import google.auth.transport.requests from google.oauth2 import service_account import requests credentials = ..

Read more

We are working on a development in Python that automates the creation of users in gmail. We managed to create the users, but we want them to receive a sign up email in their personal email (sign-in instructions) and not have to send them a verification code. Now Google offers this possibility, but we don’t ..

Read more

I’m using the Google People API in Python to query my Google Contacts list. I can get this feature to work, but one specific operation does not work. results = service.people().connections().list( resourceName=’people/me’, pageSize=1, personFields=’names,phoneNumbers’).execute() connections = results.get(‘connections’, []) for person in connections: data = person.get(‘names’, []) This works — it gives me a list of ..

Read more

i was trying to make a project using google api. in that project i give a string and the python script is supposed to change/modify that a cell in google sheet and change the value of the cell that string. But the problem is that there is a error- request = sheet.service.spreadsheets().values().update(spreadsheetId=SAMPLE_SPREADSHEET_ID, AttributeError: ‘Resource’ object ..

Read more