Method : POST | GET
Endpoint: {{ url('/') }}/send-template
Request Body : (JSON If POST)
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | API Key |
| sender | string | Yes | Number of your device |
| number | string | Yes | recipient number ex 72888xxxx|62888xxxx |
| url | string | No | url of your image |
| footer | string | No | footer of your message |
| message | string | Yes | Text of your message |
| template | array | Yes | array of button template Min 1 |
Note : the template format must like : call|Call me|6282298859671 or url|Visit Google|google.com , the first is only call or url!
Example JSON Request
{
"sender" : "6281284838163",
"api_key" : "ndUJR38JkvyCfLZ",
"number" : "082298859671",
"url" : null,
"footer" : "optional",
"message" : "Halo,ini pesan TEMPLATE button",
"template" : ["call|template 1|082298859671","url|tempate 2|google.com"]
}
Example URL request
{{ url('/') }}/send-template?sender=6282298859671&api_key=ndUJR38JkvyCfLZ&number=082298859671&url=&footer=optional&message=Halo,ini pesan TEMPLATE button&template=call|template 1|082298859671,url|tempate 2|google.com