通知的内容在文档中有示例: http://docs.qiniu.com/api/v6/persistent-ops.html#status-description 由于Content-Type为application/json,因此在接受通知时需要获取请求的body。 以php为例,$_POST是无法获取的,需要 <?php $NotifyData = file_get_contents("php://input"); ... ?> 可以参考:http://taoshi.blog.51cto.com/1724747/1165499 其他语言/框架也是类似的。
通知的内容在文档中有示例:
http://docs.qiniu.com/api/v6/persistent-ops.html#status-description
由于Content-Type为application/json,因此在接受通知时需要获取请求的body。
以php为例,
$_POST
是无法获取的,需要可以参考:http://taoshi.blog.51cto.com/1724747/1165499
其他语言/框架也是类似的。