Skip to content

adobeio/io-event-sample-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adobe I/O Events - Webhook Provider

This package provides you with a simple webhook provider that allows you to create multiple webhooks urls dynamically and observe activities on webhook based on path in real time.

Install

Local/Server deployment

$ npm install
$ npm start

You should be able to see your webhook at http://localhost:3000/ now. Please see the next step to expose it.

Host

You would need to expose it before you use it for any I/O integrations. Two easy ways to do it: you can either host it on Heroku or expose your localhost with ngrok.

Hosting on heroku

$ cd webhooks-provider
$ heroku login
$ heroku create
$ git push heroku master
$ heroku open

Now you can open it at the designated address that Heroku assigned you.

OR expose your localhost with ngrok

$ ngrok http 3000

In your command line, you will see a string that looks like this --> https://randomnumbers.ngrok.io. Go to that address and you can see your localhost exposed to the web.

Usage

Subscribe to webhook events via URL

  • Establish connection using the following steps:

listen to webhooks

  • Add the webhook you created (yourwebhookaddress/webhook/webhookname, e.g. If you used ngrok and typed in "hello" for a new webhook, your address would be https://randomnumbers.ngrok.io/webhook/hello) to your I/O Events Integration on I/O Console.

  • You should be able to see a GET on your webhook immediately, which is the challenge sent by Event Gateway

  • Trigger an event from your Adobe service that you subscribed to and see your event updates posted here

listen to webhooks

Contributors

About

Sample webhook for handling Adobe I/O Events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published