Post

2 followers Follow
0
Avatar

Listen for item create pushes

The page https://developers.podio.com/examples/push says I can subscribe to newly created items but I can't find the endpoint to use.

Note: I know about the hooks feature but I'm trying to learn new stuff on Podio. Also, I want this to work on a server that is now open to ping from the outside.

Best regards,

Carl-Fredrik

Carl-Fredrik Herö

Please sign in to leave a comment.

4 comments

0
Avatar

The push service is driven by a server that implements the CometD / Bayeux protocol, so it's separate from the rest of the REST API. It's easiest if you find a CometD / Bayeux client library for your particular language, which handles subscriptions, etc. You can find an example for node here: https://gist.github.com/haugstrup/7420255 (your name is actually mentioned in that snippet?)

Andreas Garnæs 0 votes
0
Avatar

Hi Andreas, what I'm looking for is the "push"-property from the API-response.

Example: 

The Get Item response has a push property with the channel to subscribe to.

Now, I need an endpoint that I can get the push channel for "subscribe to future new items in X app". I looked at the "get app" endpoint, the "filter items" but no luck.

 

Thanks!

Carl-Fredrik Herö 0 votes
0
Avatar

Unfortunately you cannot subscribe to item creations for an app, you would have to use web hooks to detect those events.

Andreas Garnæs 0 votes
0
Avatar

Ok, too bad. Then I think it would be best to remove the information from the developer site. Thank you Andreas for the clarification (especially for such a quick response with regards to the time of the year).

Best regards,

Carl-Fredrik

Carl-Fredrik Herö 0 votes