pushd icon indicating copy to clipboard operation
pushd copied to clipboard

How to get events from PushServiceHTTP

Open luisbg opened this issue 11 years ago • 2 comments

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 avatar Dec 10 '14 17:12 luisbg

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 avatar Dec 10 '14 17:12 luisbg

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!

luisbg avatar Dec 15 '14 18:12 luisbg