我在infusionsoft api中添加了一个orderitem ..但是我收到语法错误但我无法找到.
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");
Run Code Online (Sandbox Code Playgroud)
我收到这个错误
错误:-1 - 没有匹配参数的方法: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", …Run Code Online (Sandbox Code Playgroud) 我有很多数组:
Array ( [0] => A-I-only )
Array ( [0] => B-III-only )
Array ( [0] => C-I-and-II-only )
Array ( [0] => D-II-and-III-only )
Array ( [0] => E-I,-II,-III )
Run Code Online (Sandbox Code Playgroud)
我想将每个数组的第一行放在一个数组中,如下所示:
Array( [0] => A-I-only [1] =>B-III-only [2] => C-I-and-II-only [3] => D-II-and-III-only [4] => E-I,-II,-III )
Run Code Online (Sandbox Code Playgroud)
有办法吗?