rs / pushd

Blazing fast multi-protocol mobile and web push notification service
MIT License
1.16k stars 224 forks source link

How to get events from PushServiceHTTP #91

Open luisbg opened 9 years ago

luisbg commented 9 years ago

I have registered a device using proto=http, I subscribe it to sport, I create two events for sport, but then can't figure out how to get these events from the device.

http://localhost/subscriber/OPFeyRwNvjg shows me the subscriber exists http://localhost/subscriber/OPFeyRwNvjg/subscriptions shows me it is registered to 'sport' http://localhost/event/sport shows me there are two events

What is the URL for the subscriber to check new events? How do you use the PushServiceHTTP?

luisbg commented 9 years ago

I thought it would be: curl -X GET http://localhost/subscriber/OPFeyRwNvjg/subscriptions/sport/

But all I get in return is: "{ "ignore_message": false }"

luisbg commented 9 years ago

Figured it out. I had to create a simple HTTP server that listens to JSON Post requests and give that as the token of my device.

Thanks!