What is the proper syntax to send a PDF via the PHP SDK? I tried the demo code and was able to successfully send a fax. Now I am trying to send a PDF that exists in the root directory of the app and getting RenderingFailed messages. Here is my code:
$request = $rcsdk->createMultipartBuilder()
->setBody(array(
'to' => array( array('phoneNumber' => $phone), ), 'faxResolution' => 'High', )) ->add('','attachment1.pdf') ->request('/account/~/extension/~/fax'); $response = $rcsdk->platform()->sendRequest($request); I have also tried with these and received without success ... ->add('pdf','attachment1.pdf') ->add('application/pdf','attachment1.pdf')The ->add line is the only difference between the demo code and the live code.