Closed abdelrahmanbadr closed 5 years ago
$client = new ClickSendClient("userName","apiKey"); $fileUrl = "https://s3-ap-southeast-2.amazonaws.com/clicksend-api-downloads/_public/_examples/document.pdf" $faxObject = $client->getFax(); $messages = []; $messages['to'] ="+61261111111"; $messages['source'] ="php"; $faxObject->sendFax($fileUrl,$messages);
when i use this function gives me message is reuired
I finally solved it
$messages = [ [ "source" => "php", "to" => "+61261111111", ], ]; $faxObject->sendFax($fileUrl,['messages' => $messages]);
when i use this function gives me message is reuired