Gmail历史记录API列表方法不会发送与邮件关联的完整数据

时间:2017-07-11 05:14:20

标签: gmail-api

调用历史记录模块的list方法时,根据文档的预期响应是: https://developers.google.com/gmail/api/v1/reference/users/history/list

{
  "history": [
    {
      "id": unsigned long,
      "messages": [
        users.messages Resource
      ],
      "messagesAdded": [
        {
          "message": users.messages Resource
        }
      ],
      "messagesDeleted": [
        {
          "message": users.messages Resource
        }
      ],
      "labelsAdded": [
        {
          "message": users.messages Resource,
          "labelIds": [
            string
          ]
        }
      ],
      "labelsRemoved": [
        {
          "message": users.messages Resource,
          "labelIds": [
            string
          ]
        }
      ]
    }
  ],
  "nextPageToken": string,
  "historyId": unsigned long
}

“users.messages资源”应包含:

{
  "id": string,
  "threadId": string,
  "labelIds": [
    string
  ],
  "snippet": string,
  "historyId": unsigned long,
  "internalDate": long,
  "payload": {
    "partId": string,
    "mimeType": string,
    "filename": string,
    "headers": [
      {
        "name": string,
        "value": string
      }
    ],
    "body": users.messages.attachments Resource,
    "parts": [
      (MessagePart)
    ]
  },
  "sizeEstimate": integer,
  "raw": bytes
}

然而,在我得到的答案中,粘贴在下面,消息资源没有完整的数据(修剪响应以突出显示与预期输出不匹配的部分)

 "messagesAdded": [
    {
     "message": {
      "id": "15ccf31acc315dc5",
      "threadId": "15ccf31acc315dc5",
      "labelIds": [
       "UNREAD",
       "CATEGORY_UPDATES",
       "INBOX"
      ]
     }
    }
   ]

检索数据时是否需要传递任何参数?

注意:以下是问题跟踪器的链接: https://issuetracker.google.com/63548371历史记录API列表方法不会发送与消息相关的完整数据

0 个答案:

没有答案