Push notifications Drupal module - Remove device (Web services)

谁都会走 提交于 2019-12-06 23:39:59

问题


I´ve started to work with this module and i´ve managed to register devices (following the instructions of his author posted here).

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.

Thanks in advance

EDIT:

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

Where "1234" is the ID of a test device that I´ve saved before.

I´m still getting the error mentioned...


回答1:


Finally i´ve been able to discover where i was failing.

I was using this url

http://www.myweb.com/ws-apps/push_notifications/1234

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.



来源:https://stackoverflow.com/questions/21932833/push-notifications-drupal-module-remove-device-web-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!