文档中心 > 开发文档

PHP SDK调用示例代码

更新时间:2018/12/21 访问次数:5707

先决条件

下载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的值

FAQ

关于此文档暂时还没有FAQ
返回
顶部