Prerequisites
- An active Live Link 365 Account
- cURL installed on your computer.
Process
To send your first message, take the following steps:
- Log into your Live Link 365 account.
- Create an App key, noting the Key and Secret.
- Use cURL to call the /api/oauth/token endpoint and create a token. For example:
curl -X POST \ https://livelink.sapdigitalinterconnect.com/api/oauth/token \
-H 'Content-Type: application/x-www-form-urlencoded'\
-H 'scope: livelink:api' \ -d 'grant_type=client_credentials'\
-u APP_KEY:SECRET
- Use cURL to call the /api/v2/sms endpoint to send an SMS: For example:
curl -X POST \ https://livelink.sapmobileservices.com/api/v2/sms \
-H "Authorization: Bearer yourToken" \
-H "Content-Type: application/json" \
-d "{\"destination\": [\"YOUR-MOBILE-NUMBER\"], \"message\": \"Hello From Live Link!\"}"
That’s it! You just sent your first SMS with cURL using the Live Link 365’s SMS API!
Further References
For further information about how to get up and running quickly with Live link 365, refer to:
Shahzad Ismail
Head of Knowledge Management and Community Engagement, Sinch