登陆https://developer.ups.com/en-us/get-started,你可以看到相应的步骤。
为了调用UPS的API接口服务,您需要获得Client ID 和 Client Secret 。这里有一个简单的方法:
我假设你有一个UPS开发者帐户。你需要去https://developer.ups.com/en-us/catalog并登录。
步骤1:在以下位置创建应用程序https://developer.ups.com/en-us/user/1400/apps
创建应用程序并将这些“产品”添加到其中:
授权(OAuth)测试,
授权(OAuth),
定位器,
定位器测试
步骤2:从应用程序获取client_id和client_secret
在UPS站点中,点击刚刚制作的应用程序,然后复制client_id和client_secret。
In order to call a UPS API service, you need to get an Client ID and Client Secret (OAuth2 token). Here is an easy way:
I’m assuming you have a UPS developer account. You’ll need to go to https://developer.ups.com/en-us/catalog and log in.
Step 1: Create an App at https://developer.ups.com/en-us/user/1400/apps
Create an app and add these “Products” to it:
Authorization (OAuth) Test,
Authorization (OAuth),
Locator,
Locator Test
Step 2: Get the client_id and client_secret from the app
In the UPS site, tap the app you just made, then copy the client_id and client_secret.