I want to POST method request for Office365 using REST API. For example, Feed/Post, Post/Reply, and Post/Like.
Request Header:
Accept : application/json; odata=verbose
Content-Type: application/json; odata=verbose
Method: POST
ContentLength: content.Length
CookieContainer: cookieContainer
Request content about Feed/Post
"restCreationData":
{
"__metadata":{
"type":"SP.Social.SocialRestPostCreationData"
},
"ID":null,
"creationData":{
"__metadata":{
"type":"SP.Social.SocialPostCreationData"
},
"ContentText":"This post was published using REST.",
"UpdateStatusText":false
}
}
But I get 403 status error.
Can anyone tell me How to post method request for Office365.