You can use Text.lk – SMS Gateway Sri Lanka’s Campaign API to retrieve information of existing Campaigns.
You only need to supply the unique campaign id that was returned upon creation or receiving.
API Endpoint #
https://app.text.lk/api/v3/campaign/{uid}
HTTPParameters #
Parameter | Required | Type | Description |
---|---|---|---|
uid | Yes | string | A unique random uid is created on the Text.lk – SMS Gateway Sri Lanka platform and is returned upon object creation. |
Example Request #
curl -X GET https://app.text.lk/api/v3/campaign/{uid}/view \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
HTTPExample Response #
Returns a contact object if the request is successful.
{
"status": "success",
"data": "campaign data with all details",
}
HTTPIf the request fails, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
HTTP