오피스 365 API와 새로운 이벤트를 만들 수 없습니다 내가의 예에 따라 이벤트를 게시하려고 : http://msdn.microsoft.com/en-us/library/office/dn792114(v=office.15).aspx내가 사무실 365 API의 달력 REST를 사용하고
내가 얻을 응답은
입니다{error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} }
https://outlook.office365.com/ews/odata/Me/Events에 Content-Type: application/json
으로 Avanced Rest Client로 게시 할 때 office365 서비스 계정을 사용하고 있습니다. "@odata.type": "#Microsoft.Exchange.Services.OData.Model.Event"
이 게시물은 성공 "Attendees"
과 함께 제거 된 경우
json으로 I 포스트
는{
"@odata.type": "#Microsoft.Exchange.Services.OData.Model.Event",
"Subject": "Discuss the Calendar REST API",
"Body": {
"ContentType": "HTML",
"Content": "I think it will meet our requirements!"
},
"Start": "2014-07-02T18:00:00Z",
"End": "2014-07-02T19:00:00Z",
"Location": {
"DisplayName": "Conference Room 1"
},
"ShowAs": "Busy",
"Attendees": [
{
"Name": "Alex Darrow",
"Address": "[email protected]",
"Type": "Required"
},
{
"Name": "Anne Wallace",
"Address": "[email protected]",
"Type": "Optional"
},
{
"Name": "Conference Room 1",
"Address": "[email protected]",
"Type": "Resource"
}
]
}
위의 링크의 예에서 복사됩니다.
누구든지 도와 주시면 많은 도움을받을 수 있습니다.
덕분에, 그것을 해결! – Malte
안녕하세요. 이것은 나를 위해 작동하지 않습니다. 여전히 효과가 있습니까? 나는 아직도이 오류가 있습니다. http://stackoverflow.com/questions/28623878/errorinvalidrequest-while-using-post-request-in-office365 –