您好,对于确定使用哪种api获取商品尺寸并从eBay订单的地址发货,我有些困惑。
我使用以下eBay API PHP SDK来获取订单。
https://github.com/davidtsadler/ebay-sdk-examples
我使用以下方法从eBay获取订单
public function getUserToken($grand_code){
$service = //above
$grand_code = urldecode(urldecode($grand_code));
$response = $service->getUserToken(new GetUserTokenRestRequest([
'code' => $grand_code
]));
if ($response->getStatusCode() !== 200) {
$data['status'] = $response->error;
$data['msg'] = $response->error_description;
} else {
$data['status'] = 'success';
$data['access_token'] = $response->access_token;
$data['refresh_token'] = $response->refresh_token;
}
return $data;
}