我需要订阅 Outlook 日历通知以获取对我服务器上 Outlook 的更改。我已经阅读了文档,并且我的代码大部分工作正常,但我被监听器困住了。
对于通知我
- 一、创建订阅
- 成功后,它会返回一个包含其他信息的订阅 ID
- 之后,当我在日历中进行任何更改时,它会在我的通知 URL 上执行 ping 操作。但它并没有告诉我哪些数据被更改了,它只给了我以下信息:
{
"USER": "devapi",
"HOME": "/home/devapi",
"FCGI_ROLE": "RESPONDER",
"QUERY_STRING": "",
"REQUEST_METHOD": "POST",
"CONTENT_TYPE": "application/json; charset=utf-8",
"CONTENT_LENGTH": "1156",
"SCRIPT_NAME": "/notification.php",
"REQUEST_URI": "/notification.php",
"DOCUMENT_URI": "/notification.php",
"DOCUMENT_ROOT": "/home/ubuntu/www/devapi/api/web",
"SERVER_PROTOCOL": "HTTP/1.1",
"REQUEST_SCHEME": "https",
"HTTPS": "on",
"GATEWAY_INTERFACE": "CGI/1.1",
"SERVER_SOFTWARE": "nginx/1.9.9",
"REMOTE_ADDR": "000.000.00.000",
"REMOTE_PORT": "62530",
"SERVER_ADDR": "000.00.0.000",
"SERVER_PORT": "443",
"SERVER_NAME": "devapi.test.com",
"REDIRECT_STATUS": "200",
"SCRIPT_FILENAME": "/home/ubuntu/www/devapi/api/web/notification.php",
"HTTP_CONTENT_TYPE": "application/json; charset=utf-8",
"HTTP_ACCEPT": "text/xml",
"HTTP_CLIENTSTATE": "OutlookPush-56dfcd91df29c",
"HTTP_HOST": "devapi.test.com",
"HTTP_ODATA_VERSION": "4.0",
"HTTP_CONTENT_LENGTH": "1156",
"HTTP_CONNECTION": "Close",
"PHP_SELF": "/notification.php",
"REQUEST_TIME_FLOAT": 1457516659.3082,
"REQUEST_TIME": 1457516659
}