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

Comment by Jay Lee on Gmail API using multiple labelIds

This is the correct answer. Gmail assumes AND between query parameters so it will return messages that are in the Inbox and are unread. See support.google.com/mail/answer/7190.

View Article


Comment by Jay Lee on Daily Limit for Unauthenticated Use Exceeded Google Api...

These are all details you need to put in your question since we don't know if you're doing oauth, what scopes you are using and if you are sending a key. May be good to go back and add now for...

View Article


Comment by Jay Lee on Google Classroom using Service Account with...

Glad it solved it, your not the first by far to have this issue.

View Article

Comment by Jay Lee on How do I get a list of and perform actions on "Chrome...

Not that I'm aware

View Article

Comment by Jay Lee on Accessing Google Reseller API using Service Accounts

why is 3-legged not an option?

View Article


Comment by Jay Lee on Gmail Api to get Thread gives 404 even though the...

where are you getting gmailThreadId from?

View Article

Comment by Jay Lee on Python - Gmail API - Instance of 'Resource' has no...

what does "print(dir(service))" and "print(type(service))" show?

View Article

Comment by Jay Lee on Gmail API only returing 1Mb of data

forgot about the b64 decode. It's URL safe base64 so some characters are subbed out.

View Article


Comment by Jay Lee on Getting dailyLimitExceededUnreg message during...

Possible duplicate of stackoverflow.com/a/44248616/1503886

View Article


Comment by Jay Lee on Google Calendar Insert Event API - Reminders do NOT...

Correct, organizer can't set attendees reminders. This makes sense if you think about it, why would I want you to tell me when to be reminded of a meeting I have? If you need to edit an attendee's...

View Article

Comment by Jay Lee on Google Directory API Access using Java

Nico, get and store a refresh token the first time. Then you can get an access token whenever your app runs. developers.google.com/identity/protocols/oauth2/…

View Article

Comment by Jay Lee on Cannot create new GSuite accounts w/ Alias as of 2021-11

Right, creating user and alias should work with one API call even though I recommend using two. If you want to pursue one API call further then post the exact details of your API call (URI, POST body,...

View Article

Comment by Jay Lee on Does "Domain Restricted Sharing" in GCP prevent service...

Please update this answer as it is wrong.. Setting domain restrictions absolutely does apply to service accounts..See reference above for details.

View Article


Answer by Jay Lee for thumbnailPhoto from Active Directory to Google Apps

GAM can set a profile photo:https://github.com/jay0lee/GAM/wiki/ExamplesEmailSettings#user-profile-photosyou'd need to write a script that extracted the AD photo for a user to a file and then uploaded...

View Article

Answer by Jay Lee for Google Gmail API request with service credential...

Service account domain wide delegation is for G Suite accounts only and requires the G Suite admin to authorize the service account client id to have access to the necessary scopes. If you are working...

View Article


Answer by Jay Lee for Query Google Admin User directory for multiple parameters

The query does not support AND or OR operators, only one search term is allowed.I'd suggest querying on the more specific (probably name) field and then filtering locally on the additional fields. So...

View Article

Answer by Jay Lee for Google Drive SDK: To copy files from a user to another...

Use domain-wide delegation to impersonate each user https://developers.google.com/drive/delegation.Authenticate as source user and share file with target user...

View Article


Answer by Jay Lee for Use bash curl with oauth to return google apps user...

This isn't easily achieved as OAuth 2.0 and JSON aren't easily handled by Bash. Having said that, here's a basic version that'll give you the data you're looking for. The greps could use some cleanup...

View Article

Answer by Jay Lee for Service account doesn't have access to own channel...

Service accounts are not members of managed G Suite domains (company accounts) and do not automatically have rights to any data that the service account creator user account has. See the note on...

View Article

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 latest articles
Browse All 37 View Live


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