官方接口地址
API Docsglobal-selling.mercadolibre.comgithub SDK 及 示例代码
mercadolibre/php-sdkgithub.com下面是示例个人示例代码
token刷新及授权
function token($row){
$user_id = $row['user_id'];
$client_id = $row['client_id'];
$client_secret = $row['client_secret'];
$refresh_token = $row['refresh_token'];
$access_token = $row['access_token'];
$redirect_uri = $row['redirect_uri'];
$date = $row['date'];
$time = time();
if($access_token){//获取刷新token
$url='https://api.mercadolibre.com/oauth/token?grant_type=refresh_token&client_id='.$client_id.'&client_secret='.$client_secret.'&refr