我正在使用Withings API。
一切正常。然后我尝试使用通知 API并能够成功订阅通知,并且还可以获取、列出和撤销通知。
使用相同的源代码,1 天后,通知 API(操作:订阅、获取、撤销)总是以状态代码 293 回复我:回调 URL 不存在或不正确。
但是 (action: list ) 总是给我status : 0和其他信息,其中还包括我的通知回调 url 作为用户订阅结果列表。
我已经检查了通知回调 url 是否存在三个操作(操作:订阅、获取、撤销)并将其添加到此处,以便你们也可以看到。
还要注意我的通知回调 url 没有超过 255 个字符。
编码网址:
https://wbsapi.withings.net/notify?action=revoke&userid=7354839&callbackurl=http%3A%2F%2Fwww.myrealIpdomain.com%2FRPWearableIntegrationAPI%2Fapi%2FWithingsAPI%2FNotificationCallBack&oauth_consumer_key=c899ec52892c37097893c561f43c3104c72f33c82509d1881471bb3d&oauth_nonce=3d0j1rt6&oauth_signature=Fnm1or9%2BhtIaee7bJ5ylGS3kwjM%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1431431635&oauth_token=4e871c205fd1b3717db34d088e632ed6c9ce01854f6dcdc05c79e325640&oauth_version=1.0
解码网址:
https://wbsapi.withings.net/notify?action=subscribe&userid=7354839&callbackurl=http://www.myrealIpdomain.com/RPWearableIntegrationAPI/api/WithingsAPI/NotificationCallBack&comment=NotificationDescriptionM2SYS&appli=1&oauth_consumer_key=c899ec52892c37097893c561f43c3104c72f33c82509d1881471bb3d&oauth_nonce=6rx29eh0&oauth_signature=DNntmrO/+zYUgRIuR4yzPKezpY8=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1431435259&oauth_token=4e871c205fd1b3717db34d088e632ed6c9ce01854f6dcdc05c79e325640&oauth_version=1.0
我无法弄清楚我在这里错过了什么?如果有人能找到任何帮助或信息,我们将不胜感激。
此外,我无法获得有关 Withings 集成开发者论坛的任何网址。如果有人知道也可以帮助我。