请求接口 | https://www.yangtata.com/api |
请求参数 | &a=标识&appkey=您的appkey&appsecret=您的appsecret&url=需解密的内容 |
请求类型 | POST |
返回格式 | json (字段说明参考淘宝开放平台文档:查看接口文档响应参数注释说明) |
PHP示例 | 查看下列代码 |
$url = "https://www.yangtata.com/api";
$data = array(
'a' => 'tkl',
'appkey' => '1234567',
'appsecret' => '8ifdw8ba8vbal2',
'url'=>'淘口令文案'
);
$data = http_build_query($data);
$ch = curl_init();
$timeout = 300;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$source = curl_exec($ch);
curl_close($ch);
echo $source;