我想发送一封包含Gmail API的电子邮件并为其应用标签,如下所示:
curl 'https://www.googleapis.com/gmail/v1/users/me/messages/send'
-X POST \
-H 'Authorization: Bearer [YOUR_BEARER_TOKEN]'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
--data-binary '{"raw":"RAW_DATA","labelIds":["my_label"]}'
但标签不适用。 我有以下答案:
{
"id": "MESSAGE_ID",
"threadId": "THREAD_ID",
"labelIds": ["SENT"]
}
我不明白为什么?