Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 1.73 KB

README.md

File metadata and controls

72 lines (57 loc) · 1.73 KB

ShoutOUT Developer Hub

Usage instructions for ShoutOUT SDKs, API and Sample Implementations

Introduction

This document provides required details to connect with ShoutOUT REST API from third party applications using standard SDKs and HTTP clients.

SDKs

REST API

Create or Update Contact(s)

Sample curl command

curl -X POST 
--header 'Content-Type: application/json' 
--header 'Accept: application/json' 
--header 'Authorization: Apikey <API_KEY>' 
-d '[{
        user_id: '94777123456',
        mobile_number: '94777123456',
        email: '[email protected]',
        name: 'Duke',
        tags: ['lead']
    }]' 'https://getshoutout.com/api/v8/contacts'

Create Activity

Sample curl command

curl -X POST 
--header 'Content-Type: application/json' 
--header 'Accept: application/json' 
--header 'Authorization: Apikey <API_KEY>' 
-d '{
        userId: '94777123456',
        activityName: 'Sample Activity',
        activityData: {
            param1: 'val1',
            param2: 'val2',
            param3: 'val3'
        }
    }' 'https://getshoutout.com/v8/activities'

Send Message

Sample curl command

curl -X POST 
--header 'Content-Type: application/json' 
--header 'Accept: application/json' 
--header 'Authorization: Apikey <API_KEY>' 
-d '{
        source: 'ShoutDEMO',
        destinations: ['94777123456'],
        content: {
            sms: 'Sent via SMS Gateway'
        },
        transports: ['sms']
    }' 'https://getshoutout.com/v7/messages'