如何使用api从php发布新事件到Office 365日历

I was able to get the events from O365 calendar using https://outlook.office365.com/ews/odata/Me/Calendar/Events api. I would like to post an event I am creating in my calendar to office 365 calendar. How can I do that?

I tried to post, to the same url passing the parameters. But it is not getting inserted.

Any help appreciated.

Regards

Hi I was able to fix this.

I send in headers conent-type:application/json;odata.metadata=full and accept:application/json it worked.

Thanks