Podio Push Service

164 Views Asked by At

I need to create a data Sync Application using .Net that pulls data from Podio and put into SQL Server using Podio API. is it possible for the podio to push the data instead of application pulling the data ? I mean does podio triggers any push service that can tell what Item is created or Updated in particular App..

2

There are 2 best solutions below

1
On

Podio can notify you about changes happening with items/apps via webhooks.

Please read more on how it works https://developers.podio.com/doc/hooks and https://developers.podio.com/examples/webhooks

0
On

Podio API offers a push service on several endpoints. The way to subscribe to those endpoints vary depending on the tools (SDK) you use.

E.g. in Javascript you would use the SDK like this

  podio.request('GET', `/user/status`).then((data) => {

    // this is the important bit
    podio.push(data.push).subscribe(this.onNotificationReceived)
      .then(() => {
        console.log(`All is well, we've been subscribed!`
      }));

  })

I can see that the .net SDK has a Subscription Service as well, but .net it's not really my domain of expertise and I can't tell you exactly how to use it.

Seems pretty straightforward looking at the signature though

  public async Task<int> Subscribe(string refType, int refId)

note: subscribing to /user/status will notify you of pretty much every movement that the current user is doing