Ziyad123 Posted August 17, 2020 Share Posted August 17, 2020 I have gone thru Gmail API.au3 in forum. Hence, i have setup GMAIL API. Thru oauth.au3 -I fetched authorization code and access token. Using these info and function "gmailUsersLabelsList($sEmailAdress,$sAccessToken )" I am getting, my Gmail label list. But when I use "gmailUsersMessagesList" function to get message list - its throwing error. Error message: +++ Line: 621, Func: gmailUsersMessagesList() -> Error durning send request to Google. $oHttp.Status = 401 $oHttp.ResponseText = { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Login Required.", "domain": "global", "reason": "required", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } I am wondering that I am able to fetch label names and but not able fetch mail list. Kindly help me Script_Fetch_MailList.au3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now