This is where we build and share our App Connections for popular and useful apps like Stripe, Shopify, and many more.
-
Fork this repository
-
Create a branch for your work
Create a folder in the catalog that matches the name of the connection that is being created. Copy over the sample definition file into the folder and begin creating the Class file.
├── catalog/
│ ├── stripe/
│ ├── config.json
| └── stripe.ts
Once you've tested and finished your Source Connection, create a pull request on the main
branch of this repository from your forked repository's branch. Once approved and merged, your Connection will be live on Event, for the entire community!
The class has the below methods and your implementation must not change the TypeScript interface. The class will be used to communicate and manage the service (i.e. github)
webhook.
- Receives all the keys mentioned in the
authSecrets
object, in the definition. - Should create an instance of the integration with the auth keys
- Caveats
- If
webhookData
returns an object, then the subscribe and unsubscribe actions will be passedwebhookId (webhook id)
- If
webhookData
returns an array of objects, then the subscribe and unsubscribe actions will be passedwebhookIds (array of webhook ids)
- If
- If the verification fails, an error must be thrown.
- You are given only the new events to subscribe to
- You are given only the events to unsubscribe to
- Retrieves all the webhooks created by Event
- Retrieves all the currently subscribed events (to cross reference / sync)
- Deletes a webhook, given its webhook id
- Should authenticate as many of the auth keys as possible
- Must throw an error if unable to establish a connection
- If any keys cannot be tested, this must be added in the markdown notes in the definition (
frontend.options.docs
)
You can view a sample Source Connection definition in the sample folder.