我需要在日历上创建一个事件,因此我为此使用 Microsoft Graph API。由于我不想每次在请求中添加 TimeZone,因此我尝试将其添加到请求 header 中,但是我收到了某些错误,例如
An error occurred when parsing the HTTP header '
Prefer
'. The header value 'outlook.timezone=Pacific Standard Time
' is incorrect at position '25
' because 'S
' is not a recognized separator. The supported separators are ',
', ';
', and '=
'.
我将使用 Retrofit 来调用此 API,我的集成是基于 Spring 的应用程序。
最佳答案
关于microsoft-graph-api - 如何在请求 header 中指定 Outlook API 的首选时区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48148850/