推送通知 Drupal 模块 - 删除设备(Web 服务) [英] Push notifications Drupal module - Remove device (Web services)

查看:29
本文介绍了推送通知 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 服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆