<?
$reqURL_onLine = "https://gw.api.alibaba.com/openapi/http/1/system.oauth2/getToken/4947390";
$grant_type = 'authorization_code';
$need_refresh_token = true;
$client_id = 'xxxxx';//速卖通的账号
$client_secret = "xxxxx";//速卖通的密钥
$redirect_uri = 'http://域名/';
$code = 'de70a2ac-8a84-4576-89e7-19bf0ef45619';
echo "<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body onLoad="document.form.submit();">
<form name='form' action='$reqURL_onLine' method='post'>
<input type='hidden' name='grant_type' value='$grant_type'>
<input type='hidden' name='need_refresh_token' value='$need_refresh_token'>
<input type='hidden' name='client_id' value='$client_id'>
<input type='hidden' name='client_secret' value='$client_secret'>
<input type='hidden' name='redirect_uri' value='$redirect_uri'>
<input type='hidden' name='code' value='$code'>
</form>
</body>
</html>";
?>