Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Sendgrid Webhooks

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Sendgrid Webhooks

Hello,

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Sendgrid Webhooks

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Sendgrid Webhooks

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Sendgrid Webhooks

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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Sendgrid Webhooks

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.

Return to “Issues”