来自 Shopee 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 [Important] New BR Domain Name Launched For Faster API Services
Dear developers,
Shopee provides a new api domain name for developer whose services deployed in Brazil to use, please replace the api prefix "https://partner.shopeemobile.com" with "https://openplatform.shopee.com.br" to get a faster open api response.The old domain name can still be accessed, but the response may cost more time due to the cross regional data retrieval, so it is recommended that you switch as soon as possible. For developers in other regions, there is no need to switch domain names.
Best Practices:
1.For developers whose service deployed in BR, please use BR domain name to make open api call:https://openplatform.shopee.com.br 2.For developers whose service deployed in Chinese Mainland, please use CN domain name to make open api call:https://openplatform.shopee.cn 3.For developers whose service deployed in the other region, please use common domain name to make open api call:https://partner.shopeemobile.com
Noted:
If you received an api error message "Invalid access token" after you change to use the new domain name, please make "v2.public.refresh_access_token" api call with the new domain name to refresh and get a new valid access token first, then you can start to make other api call with new domain name.
尊敬的开发者,请留意以下变动“ Shopee提供了一个新的API域名供服务部署在巴西的开发者使用,请您将接口前缀"https://partner.shopeemobile.com" 替换成 "https://openplatform.shopee.com.br" 来获取更快的接口服务响应。旧域名依旧可以访问,但接口请求会需要更长的时间进行跨域的数据请求,所以建议服务部署在巴西的开发者尽快切换使用新域名。对于服务部署在其他地区的开发者,无需切换域名。
调用接口时选择使用域名的最佳实践:
1.对于服务部署在巴西的开发者,请选择使用BR域名来请求接口:https://openplatform.shopee.com.br
2.对于服务部署在中国大陆的开发者,请选择使用CN域名来请求接口:https://openplatform.shopee.cn
3.对于服务部署在其他地区的开发者,请选择通用的域名来请求接口:https://partner.shopeemobile.com
请注意:
如果在切换使用新域名后,接口收到“Invalid access token”的报错提醒,请使用你要切换的新域名进行v2.public.refresh_access_token接口调用,刷新获得一个新的access_token后,你就可以开始用新域名进行其他接口的正常调用了。
