Quantcast
Channel: User Jay Lee - Stack Overflow
Browsing all 37 articles
Browse latest View live
↧

Answer by Jay Lee for How does "auth code and access/refresh token" exchange...

As explained in step 5 of the flow, it's an HTTPS call to Google.To exchange an authorization code for an access token, call the https://www.googleapis.com/oauth2/v4/token endpoint

View Article


Answer by Jay Lee for Getting "Domain cannot use apis" when using Google...

You need to enable the administrative APIs in the G Suite Control Panel.

View Article


Answer by Jay Lee for Another 401 when impersonating super-admin using...

How long have you waited after step 6? Getting access after it's entered into the admin console can sometimes take a few hours.

View Article

Answer by Jay Lee for Creates a custom "from" send-as alias with GAS and APIs

Below is a working example cleaned up from your source. A few issues with your original code:The code seems to be trying to both make the raw UrlFetchApp.fetch HTTP call and use the Gmail library. The...

View Article

Answer by Jay Lee for Unable to make a POST request to OAuth endpoint

The error indicates your client ID is wrong. Please make sure it's the client ID from the Google API console (console.developers.google.com) and it matches the Client Secret. The refresh token should...

View Article


Answer by Jay Lee for How to pass the fields parameter into a google drive...

API v2:results = drive_service.files().list(fields='items(id,mimeType,title)', **body).execute()you can easily figure out what the fields value should look like using API...

View Article

Answer by Jay Lee for Gmail API to access, read/modify the delegated emails...

Gmail API does not work with delegated mailboxes. Only the user's own mailbox is accessible. To access all user mail in the G Suite domain, try using service account and domain-wide delegation.

View Article

Answer by Jay Lee for Emails/drafts sent via Gmail REST API can't be opened...

I can't reproduce this. Note that in the reproduction steps #2 is unnecessary. Instead, the result of drafts.create() in #1 should be analyzed, the id of the new draft message is present there.Also...

View Article


Answer by Jay Lee for Error sending mail with Google API - "'raw' RFC822...

list(message) is not necessary and is giving the API a body of:[{"raw": "b64 content..."}]just do:...messages().send(body=message, userId='me'...

View Article


Answer by Jay Lee for Reading large size emails using .NET api for Gmail

MessageGetRequestObj.Service.HttpClient.Timeout = new TimeSpan(0, 5, 0);this is likely your issue. Looks like you're setting your HTTP client to timeout after 5 (seconds?) inactivity. You should either...

View Article

Answer by Jay Lee for Google Admin SDK authentication with service account

The service account does not have permission to call Directory APi for your G Suite instance. What it does have access to do is act as a user in your domain within the context of the Directory API...

View Article

Answer by Jay Lee for Gmail API Limit

You are not using Gmail API. Gmail API is intended to interface with a Google user's Gmail mailbox (sent/received emails). OAUth scope email does not grant you any access to Gmail API. What it does...

View Article

Answer by Jay Lee for OAuth2.0 support for IMAP - GMAIL API for Email Aliases

OAuth grants and the resultant tokens are scoped to Google users and their services. There's no way to limit which aliases / sendAs addresses of the user the grant can utilize.

View Article


Answer by Jay Lee for Google Admin SDK with service account without...

Service accounts are not in the G Suite domain (even if they are owned by a user / project in it) and thus cannot be granted admin access to the G Suite domain. All they can do is impersonate users in...

View Article

Answer by Jay Lee for How can I get read-only access to the Google Apps...

Any non-admin user can access the GAL programmatically, see:https://github.com/google/gfw-deployments/blob/master/apps/shell/gal/gal_feed.shI don't believe this api call is documented or supported...

View Article


Answer by Jay Lee for Google discovery service sending incorrect response for...

The fact that cache invalidation fixes the issue (meaning Python is directly grabbing a copy of the file, not using your cache) likely indicates the corruption is happening in your cached document....

View Article

Answer by Jay Lee for Determine Whether User is Group Member

The API call to check group membership does require at least a delegated admin with rights to read groups via the API. If you utilize the new Google Admin SDK membership API call, you can also limit...

View Article

Browsing all 37 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>