使用 Outlook/Office 365 REST 设置自定义 header
Set a custom header with Outlook/Office 365 REST
我知道 是可行的,但有没有办法让我们也可以设置自定义 headers?我似乎找不到任何文档。
尝试设置 SingleValueExtendedProperties on the message object. You can try using the property id for PS_INTERNET_HEADERS - {00020386-0000-0000-C000-000000000046}。
创建带有自定义 header 的新消息可能如下所示:
POST https://outlook.office.com/api/beta/me/messages
Content-Type: application/json
{
...,
"SingleValueExtendedProperties": [
{
"PropertyId":"String {00020386-0000-0000-C000-000000000046} Name x-my-custom-header",
"Value":"Some Value"
}
]
}
我知道
尝试设置 SingleValueExtendedProperties on the message object. You can try using the property id for PS_INTERNET_HEADERS - {00020386-0000-0000-C000-000000000046}。
创建带有自定义 header 的新消息可能如下所示:
POST https://outlook.office.com/api/beta/me/messages
Content-Type: application/json
{
...,
"SingleValueExtendedProperties": [
{
"PropertyId":"String {00020386-0000-0000-C000-000000000046} Name x-my-custom-header",
"Value":"Some Value"
}
]
}