Creating Subscriptions
Below are list of APIs that need to be called to set up your application for creating subscriptions.
Make sure you followed previous instructions, created a user and logged in to the services that you want to use.
You can get information about input variables in built-in-services page.
Steps
- Get service token
- You can use both userId and sourceId.
- Get triggers for the service
- You need to know
name
of the trigger for the service that you what to use.- Get triggers
- Choose the trigger that you want to use
- You can use
service_name
instead ofservice_id
.
- Get triggers
- You need to know
- Create a subscription
- You should use
url
that you can receive event notifications. variables
is the object for notification creating input.
- You should use
- Get notification
- After a subscription is created, you can get trigger notification in your
url
when event occurs.
- After a subscription is created, you can get trigger notification in your
Helpful?