下载AE官方PHP SDK,请参考SDK使用说明文档。
<?php
header("Content-type: text/html; charset=utf-8");
include "TopSdk.php";
$c = new TopClient;
$c->appkey = "test"; // 替换为您的AppKey
$c->secretKey = "test"; // 替换为您的AppSecret
$sessionkey= "test"; // 替换为授权得到的真实有效SessionKey
$req = new AliexpressPostproductRedefiningFindaeproductbyidRequest;
$req->setProductId("1307422965");
$resp = $c->execute($req, $sessionKey);
echo "api result:";
print_r($rsp);
?>
注:请根据API调用方法详解里的调用入口更改SDK里面的TopClient.php的$gatewayUrl的值