Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: About Private Key


Newbie

Status: Offline
Posts: 2
Date: Dec 31, 2009
About Private Key
Permalink   
 


Hi All,I am php developer and I am setting API for survo form but I am getting error of missing action variable and private key...Please give me your suggestion ..I am using following code..

<?php
require ("utilities.php") ;
require ("webrequest.php") ;
// create web request object

$test = new webrequest( "secure.ifbyphone.com/ibp_api.php" );
//$test = new webrequest( "secure.ifbyphone.com/click-to-xyz.php" ) ;
// add parameters

$test->addParameter("key","foofoofoo"); // "API key"
$test->addParameter("app","cts") ;
$test->addParameter("acct","74481");
$test->addParameter("survo_id","131201");
$test->addParameter("p_t","mykey");
$test->addParameter("scheduleonly","");
$test->addParameter("phone","46456456456");
$test->addParameter("sdate","2009-12-30+03%3A20");
$test->addParameter("edate","2009-12-30+03%3A25");
$test->addParameter("tz","Eastern");
$test->addParameter("dstime","00%3A00");
$test->addParameter("detime","23%3A59");
$test->addParameter("type","2");
$test->addParameter("attempts","3");
$test->addParameter("retry","5");
$test->addParameter("cid","53453453534");

$test->addParameter("user_parameters","business_name%7Cfdfdfdf%7C%7Coffice_name%7Cdfsdfsdfsdf%7C%7Ccaller_designation%7Cdoctor");


// send to Ifbyphone
$test->send() ;
// print out response from Smart Form
print "\n==response==\n" . $test->read() . "\n" ;
$test->close() ;

?>

__________________


Veteran Member

Status: Offline
Posts: 59
Date: Jan 4, 2010
Permalink   
 

p_t is for pass through data. Use key= for your private or API key.

Let me know if that helps.

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard