Viber templates API (beta)
Auth
Basic Auth
Example:
$userHashKey = 'User Hash Key provided by your account manager';
$ch = curl_init('https://web.it-decision.com/v2/api/create-template-api');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, "$userHashKey");
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($requestParams)); //
$requestParams - raquest array with correct data
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
$result = curl_exec($ch);
curl_close($ch);Create transactional Viber template
Parameters
Response:
Values:
Receiving statuses at the specified callback_url:
Get Viber template data
Parameters
Values
Errors
Name
Too Many Requests
Name
Empty parameter or parameter validation error
param:
Name
Internal server error
Name
Message Template error
Name
Authorization error
Last updated