Push notifications Drupal module - Remove device (Web services)(推送通知 Drupal 模块 - 删除设备(Web 服务))
问题描述
我已经开始使用这个模块并且我已经成功注册了设备(按照他的作者发布的说明此处).
I´ve started to work with this module and i´ve 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 what´s happening here.
我一直在网上冲浪,但我没有找到与此相关的任何内容...
I´ve been surfing the net but i didn´t find anything related to this...
如果您需要任何其他信息,请告诉我.
If you need any additional info let me know.
提前致谢
我正在使用 java rest 客户端(RESTClient 3.2.1),它有效用于注册设备,以测试这些 Web 服务.要删除设备,我正在设置指向此 URL 的 DELETE 请求
I´m using a java rest client (RESTClient 3.2.1), which worked for register devices, to test these web services. To remove the device I´m 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 I´ve saved before.
我仍然收到提到的错误...
I´m still getting the error mentioned...
推荐答案
我终于能够发现我失败的地方.
Finally i´ve 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 服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:推送通知 Drupal 模块 - 删除设备(Web 服务)


- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01