我與eBay API集成開始給以下錯誤信息:易趣API錯誤:「該項目的具體品牌缺失」
[result] => 21919403: The item specific Brand is missing. Add Brand to this listing, enter a valid value, and then try again.)
我明白這個事做與XML標記丟失。我甚至試圖添加標籤到這個XML;它沒有工作:
$requestXmlBody .= "<ItemSpecifics> ";
foreach ($ebayApi_itemspecifics as $ebayApi_itemspecifickey=>$ebayApi_itemspecificvalue) {
$requestXmlBody .= "<NameValueList><Name>" . str_replace('&', '&', $ebayApi_itemspecifickey) . "</Name>
<Value>".$ebayApi_itemspecificvalue."</Value></NameValueList>";
}
$requestXmlBody .= " <NameValueList>
<Name>Brand</Name>
<Value>Navdari</Value>
</NameValueList>
</ItemSpecifics>";
剛一說明,我會考慮修改你的代碼掛牌,使其更具可讀性。 –