Members Login
Username
Password
Login
Remember Me
Lost Account Info?
Home
List All Users
Search
Search
Advanced Search
User Details
Calendar
Ifbyphone Home Page
->
Ifbyphone Developer Zone
->
Ifbyphone for PHP Developers
->
About Private Key
Start A New Topic
Reply
Subscribe
Printer Friendly
Post Info
TOPIC: About Private Key
abbas
Newbie
Status: Offline
Posts: 2
Date: Dec 31, 2009
About Private Key
Permalink
Reply
Quote
Printer Friendly
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() ;
?>
__________________
KhyleK
Veteran Member
Status: Offline
Posts: 59
Date: Jan 4, 2010
Permalink
Reply
Quote
Printer Friendly
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
Oldest First
Newest First
Quick Reply
Please log in to post quick replies.
Ifbyphone Home Page
->
Ifbyphone Developer Zone
->
Ifbyphone for PHP Developers
->
About Private Key
Jump To:
--- Community ---
VOIP Trunking
Telco 2.0
--- General ---
Interesting Ifbyphone Applications
Ifbyphone General Questions
Conference Notes and Handouts
Documentation
Ifbyphone Basic Features
--- Developers ---
Ifbyphone for .Net Developers
Ifbyphone for All Other Developers
Sample Code
Ifbyphone for Joomla / Drupal
Ifbyphone for iPhone Developers
Ifbyphone for PHP Developers
Create your own FREE Forum
Report Abuse