↧
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 ArticleComment 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 ArticleComment 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 ArticleComment by Jay Lee on Accessing Google Reseller API using Service Accounts
why is 3-legged not an option?
View ArticleComment by Jay Lee on Gmail Api to get Thread gives 404 even though the...
where are you getting gmailThreadId from?
View ArticleComment by Jay Lee on Python - Gmail API - Instance of 'Resource' has no...
what does "print(dir(service))" and "print(type(service))" show?
View ArticleComment 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 ArticleComment by Jay Lee on Getting dailyLimitExceededUnreg message during...
Possible duplicate of stackoverflow.com/a/44248616/1503886
View ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleAnswer by Jay Lee for Query string for messages list returns inconsistent...
Yes, message body is searched.Try: "from:example.com OR to:example.com"No, Gmail UI and API search is not case-sensitive.Be aware that service.users().threads().list() would be more consistent with...
View ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....