我在infusionsoft api中添加了一個orderitem ..但我收到語法錯誤,但我無法找出答案。問題在infusionsoft中添加訂單項
require_once($_SERVER['DOCUMENT_ROOT']."/infusionsoftAPI/src/isdk.php");
$app = new iSDK;
$_REQUEST['contactId'] = 4;
if(!empty($_REQUEST['contactId']))
{
if ($app->cfgCon("aaaa", 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee')) {
echo "Infusionsoft Connection Successfulls";
} else {
echo "Infusionsoft Connection Failed";
exit;
}
} else {
echo '<p>No contact id selected.</p>';
exit();
}
some code
some code
$invoiceId = $app->blankOrder($contactId,"Video Report Subscription - Extra", $oDate,0,0);
$extra_price = $extraemail * $result['price_after_expire'];
$ordresult = $app->addOrderItem($invoiceId, 4, 9, $extra_price, 1, "helloo", "aaaaaa");
我收到此錯誤
ERROR: -1 - No method matching arguments: java.lang.String,java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.String
但是,當我寫
$ordresult = $app->addOrderItem($invoiceId, 4, 9, 22.00, 1, "helloo", "aaaaaa");
工程.... 的問題是,它沒有得到$ extra_price作爲它的參數..
見,如果這個工程:http://stackoverflow.com/a/28828493/1724702 – 2015-03-03 10:05:27