설명:
다음 번호로 테스트 팩스를 보내세요:
URI:
https://api.multitel.net/v3/offnet/fax
파라미터:
Required: number - your phone number Optional: notify_url - if provided, we will post back any status changes to this URL. (example: https://customer-crm.xyz/notify-handler )
메서드:
POST
샘플 출력:
{
"status":
{
"code":"200",
"msg":"Success"
},
"response":""
}샘플 코드:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.multitel.net/v3/offnet/fax',
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":"15203861195",
"notify_url":"https://customer-crm.xyz/notify-handler"
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Basic d2ViZGV2b3BzOmNvbm51b243Nw==',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>