https://github.com/moceanapi/sure-triggers
https://github.com/moceanapi/sure-triggers
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moceanapi/sure-triggers
- Owner: MoceanAPI
- Created: 2024-08-08T01:37:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T06:39:57.000Z (over 1 year ago)
- Last Synced: 2025-02-08T17:09:44.065Z (11 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SureTriggers and Mocean Integration Documentation
## Contents
- [Connect SureTriggers and Mocean](#connect-suretriggers-and-mocean)
- [Creating workflow](#creating-workflow)
- [Adding a trigger](#adding-a-trigger)
- [Adding an action](#adding-an-action)
- [Send SMS](#send-sms)
- [Send Code over SMS](#send-code-over-sms)
- [Fetch Balance](#fetch-balance)
### Connect SureTriggers and Mocean
1. Login to your SureTriggers account.
2. Go to the `Apps` section visible on the left side.
3. Click on `Create New Connection`
4. Search for Mocean and select it.
5. Give a name to the connection and paste the API key and secret.

6. Click on `Connect Mocean`.

You can view your connection by clicking on the Mocean app visible under `Apps` as shown in the above image.
### Creating workflow
1. Login to SureTriggers, go to the `Workflows` section and click `Create Workflow` and select `Create from scratch`.
2. Give a name to the workflow and click create.
### Adding a trigger
Note: We have used Google Form as trigger, but user can choose their own trigger depending on use case
1. Click on `Add Trigger`, search for `Google Forms` and select it.
2. Under `Select Event` select `New Form Responses`.
3. Under `Select Connection` select `Create New Connection`.
4. Choose the Google account from which the form can be accessed.
5. Click on `Continue`.
6. Create a google form and copy paste the form edit link.
Note: The URL which is visible while creating the form is the edit link.
7. Under Test Connection & Data click on `Fetch Data`.

8. Click `Save`
### Adding an action
1. Click on plus button and search for Mocean.
SureTriggers integration with Mocean allows you to:
- Send SMS
- Send Code over SMS
- Fetch balance
#### Send SMS
- Under `Event` select `Send SMS`.
- Click on `Continue`.
- Enter sender name, receiver number and text message.
- Click on `Continue`.
- Click on `Test Action`, a SMS will be sent to be the receiver phone.

- Click `Save`
- Click on `Publish`, to change status to `Active`.

#### Send Code over SMS
- Under `Event` select `Send Code over SMS`.
- Click on `Continue`.
- Enter brand name, receiver number, sender name, code length and pin validity.
- Click on `Continue`.
- Click on `Test Action`, a code will be sent to be the receiver phone.

- Click `Save`
- Click on `Publish`, to change status to `Active`.

#### Fetch Balance
- Under `Event` select `Fetch Balance`.
- Click on `Continue`.
- Click on `Test Action`, it will return your account balance.

- Click `Save`
- Click on `Publish`, to change status to `Active`.
