SDK
Convoy provides SDK for in-app integration. These SDKs carry out the same operations as the API and Convoy dashboard. The methods in each SDK mirror the API.
This page introduces you to the SDKs as well as demonstrate the steps involved in sending an event to your Convoy instance.
Install Client
Install convoy.js with
Configure
Next, require the convoy module and setup with your auth credentials.
The SDK also supports authenticating via Basic Auth by defining your username and password.
In the event you’re using a self hosted convoy instance, you can define the url as part of what is passed into convoy’s constructor.
Create an Endpoint
Create a subscription
With the subscription in place, you’re set to send an event.
Sending an Event
Install Client
Install convoy.js with
Configure
Next, require the convoy module and setup with your auth credentials.
The SDK also supports authenticating via Basic Auth by defining your username and password.
In the event you’re using a self hosted convoy instance, you can define the url as part of what is passed into convoy’s constructor.
Create an Endpoint
Create a subscription
With the subscription in place, you’re set to send an event.
Sending an Event
Install Client
Add this line to your application’s Gemfile:
And then execute:
Or install it yourself as:
Configure
To configure your client, provide your api_key
and project_id
, see below:
Create an Endpoint
An endpoint represents a target URL to receive webhook events. You should create one endpoint per user/business or whatever scope works well for you.
Create an Subscription
After creating an endpoint, we need to subscribe the endpoint to events.
Send an Event
To send an event, you’ll need to pass the uid
from the endpoint we created earlier.
Install Client
Install convoy-go with
Configure
The SDK also supports authenticating via Basic Auth by providing your username and password
In the event you’re using a self hosted convoy instance, you can define the url as part of what is passed into the convoy.Options
struct
Create an endpoint
Create a Subscription
With the subscription in place, you’re set to send an event.
Send an Event
To send an event, you’ll need the uid
from the application we created earlier.
Contribute to this doc in Github
Don’t miss anything.
Subscribe to the Convoy Newsletter find tutorials and tools that will help you grow as a developer and scale your project or business, and see interesting topics.