Sample 3: Send a fax with a single file and without cover page to multiple recipients.
![who owns pamfax who owns pamfax](https://images.cdn.circlesix.co/image/2/1200/630/5/uploads/posts/2015/09/a37daf8a-066e-4ebd-9f4f-f4c5ff036321.jpg)
}while( $test->state != "ready_to_send" ) If( ($test instanceof ApiError) // explicit error Set the cover to template 1 and the text to a random valueįaxJobApi::SetCover(1,'This is my test fax using the PamFax API') Add a recipient to the fax (change sample fax number to a real one)įaxJobApi::AddRecipient('+15752087007','Optional name of recipient') Create a new fax and give the users IP, UserAgent and an originįaxJobApi::Create($_SERVER,$_SERVER,'API Samples') Sample 2: Send a fax with cover page only to a single recipient. Optionally remember the user for later use || !isset($result) || !isset($result) ) // implicit error If( ($result instanceof ApiError) // explicit error $result = SessionApi::VerifyUser('test_user','test_users_password') verify the PamFax User Name (this is the PamFax account used to also login at ): Tell the API Client to use static wrapper classes Tell the API Client to create objects from returned XML automatically include the PamFax API Client and set your credentials Sample 1: Including the PamFax API lib, setting the credentials and verify a user. Then include the pamfax_api.php file and if you want to use the wrapper classes: call pamfax_use_static() or pamfax_use_instance() Login to the PamFax API Frontend and download the code. Our PHP reference implementation is required to run the following samples. If you need help integrating PamFax with a different language, please contact us.
#Who owns pamfax full#
You will be able to download the full samples after creating an account (below). We currently have sample SDK libraries available for the following languages: Add fax functionality to your app quickly with our sample SDKs. Free PamFax API The PamFax API is completely free.