我已经开始使用这个模块并且我已经成功注册了设备(按照他的作者发布的说明此处).
Ive started to work with this module and ive managed to register devices (following the instructions of his author posted here).
现在我正在尝试注销设备,但是当我发送 http 删除请求(发送带有存储在 DB 中的值的令牌参数)时,我获得的消息是HTTP/1.1 301 永久移动",我不知道这里发生了什么.
Now i'm trying to unregister devices but when i send the http delete request (sending the token parameter with the value stored in DB) the message that i obtain is "HTTP/1.1 301 Moved Permanently" and i have no idea whats happening here.
我一直在网上冲浪,但我没有找到与此相关的任何内容...
Ive been surfing the net but i didnt find anything related to this...
如果您需要任何其他信息,请告诉我.
If you need any additional info let me know.
提前致谢
我正在使用 java rest 客户端(RESTClient 3.2.1),它有效用于注册设备,以测试这些 Web 服务.要删除设备,我正在设置指向此 URL 的 DELETE 请求
Im using a java rest client (RESTClient 3.2.1), which worked for register devices, to test these web services. To remove the device Im setting a DELETE request pointing to this URL
http://www.myweb.com/ws-apps/push_notifications/1234
其中1234"是我之前保存的测试设备的 ID.
Where "1234" is the ID of a test device that Ive saved before.
我仍然收到提到的错误...
Im still getting the error mentioned...
我终于能够发现我失败的地方.
Finally ive been able to discover where i was failing.
我正在使用这个网址
http://www.myweb.com/ws-apps/push_notifications/1234
但我也忘记在 URL 中指定语言......调用以下 URL 我能够让它工作.
But i forgot to specify the language too in the URL... Calling the following URL I was able to get this working.
http://www.myweb.com/en/ws-apps/push_notifications/1234
我希望这对未来的其他人有用.
I hope this could be useful for someone else in future.
这篇关于推送通知 Drupal 模块 - 删除设备(Web 服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!