【发布时间】:2022-01-30 03:47:45
【问题描述】:
我在向 gmail api 发送 json 请求时遇到问题。 我可以访问独家新闻https://www.googleapis.com/auth/gmail.send,它允许我访问发送方法。
在谷歌文档中,他们声明其余部分需要在下面提供此数据。 https://developers.google.com/gmail/api/reference/rest/v1/users.messages
但我不会填满它们,在它们里面放什么? 有没有人通过仅发送 json 的方式使用 api?
我在堆栈上进行了研究,但没有找到有这种困难的人。并且在 google 文档中没有示例。
{
"id": string,
"threadId": string,
"labelIds": [
string
],
"snippet": string,
"historyId": string,
"internalDate": string,
"payload": {
object (MessagePart)
},
"sizeEstimate": integer,
"raw": string
}
【问题讨论】: