API - Oficial
Envio de Template SEM variável
1 min
php \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/sendofficial', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', curlopt postfields =>'{ "number" "5511912341234", "name" "vars 001", // nome da template "language" "pt br" }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seutoken' ), )); $response = curl exec($curl); curl close($curl); echo $response;