Jump to content

Gmail list is unable to fetch


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...