我将颚骨与我的应用程序集成在一起,一切正常。我根据颚骨开发门户( https://jawbone.com/up/developer/pubsub )中提到的文档实现了发布订阅通知的身份验证我遵循颚骨开发门户中给出的发布订阅json有效负载结构但是现在我变得不同了pub sub json 有效负载结构。所以我的 pub sub 不工作。pub sub json有效负载结构有什么变化吗?
开发门户上提到的有效载荷结构是这样的:
{
"notification_timestamp": "1372787949",
"events": [
{
"user_xid": "RGaCBFg9CsB83FsEcMY44A",
"event_xid": "EJpCkyAtwoO0XTdkYyuTNw",
"type": "move",
"action": "creation" ,
"timestamp": "1372787849",
"secret_hash":"e570b3071a0964f9e2e69d13nd9ba19535392aaa"
},
{
"user_xid": "RGaCBFg9CsB83FsEcMY44A",
"event_xid": "blaHyAtwoO0XTdkYyuTNw",
"type": "sleep",
"action": "updation" ,
"timestamp": "1372787859",
"secret_hash":"e570b3071a0964f9e2e69d13nd9ba19535392aaa"
}]
}
我在服务器中获得的实际有效负载如下:
{
"secret_hash": "34ba79b1512cb1bxxxxxxx",
"events":[
{
"user_xid": "6HGK86qWtLJIoXXXX",
"event_xid": "akA6KuLaNsJv8XXXXX ",
"type": "move",
"action": "updation",
"timestamp": "1473145183"
}],
"notification_timestamp": "1473145183"
}