Page 1 of 1

php cURL model

Posted: Mon Mar 08, 2010 1:56 pm
by wrothman@dealermagic.net
As we understand it, to initiate an outbound call we do an HTTP POST to queuecall.php.

We want to make that POST programmatically rather than from a web page form, using php curl, we think. Can you send us a model of how that would go? I think the main outline would be as follows.

<?php
$mysession = curl_init(http://outbound.plumgroup.com/webservice/quecall.php...) [for a POST, I think the rest of the data doesn't go in this URL but in one of the curl_setopt settings?]

curl_setopt($mysession, CURLOPT_...)

curl_setopt(.... [probably a series of these, including in one or some of them the POST data itself?]

$out = curl_exec($mysession);

[we do something with $out]

curl_close($mysession);

[or we do something here with $out]

?>

Thanks

using cURL for IVR outbound calls

Posted: Mon Mar 08, 2010 2:41 pm
by support
Hi Wayne,

The following link describes how to use php cURL for invoking the queuecall and queuecalls webservices for outbound: http://support.plumvoice.com/viewtopic. ... queuecalls

Hope this helps.

Regards,
Plum Support