Page 1 of 1

Sendgrid Webhooks

Posted: Tue Apr 21, 2015 5:52 am
by Aeneas McBurney

Is it possible to use the sendgrid webhooks to retrieve event data from sendgrid account in Appery app?

https://sendgrid.com/docs/API_Referen...

If so how?


Sendgrid Webhooks

Posted: Wed Apr 22, 2015 2:31 pm
by Serhii Kulibaba

Hello,

You can do it via REST service and server code:
https://devcenter.appery.io/documenta...
https://devcenter.appery.io/documenta...


Sendgrid Webhooks

Posted: Wed Apr 22, 2015 6:11 pm
by Aeneas McBurney

I am familiar with these components of Appery but it still gives me no clue how to implement. Basically I want to know when a link on an email has been clicked.


Sendgrid Webhooks

Posted: Thu Apr 23, 2015 8:44 pm
by Serhii Kulibaba

Sorry, but we don't have such a tutorial, you can search solution online.


Sendgrid Webhooks

Posted: Fri Apr 24, 2015 7:07 pm
by Aeneas McBurney

Sendgrid require a URL to write the events too. As my app is hosted by Appery is there anything I can use without having my own separate server space?


Sendgrid Webhooks

Posted: Tue Apr 28, 2015 4:23 am
by Yurii Orishchuk

Hi Aeneas,

here is common things you should now:

  1. Appery.io's Server code has public URL to invoke this server code.
    Details: http://prntscr.com/6z0z8z/direct

  2. You need to configure webhook by passing server code public URL to invoke your server code.

  3. In the server code you can access DB and change it(to let client part about event triggered event on the send grid part).

  4. Client part of your App can query DB to know if DB changed.
    4.1. If DB changed - make some logic that you need.

    Also here is more info about server code: https://devcenter.appery.io/documenta...

    Regards.