一、OAuth 认证
1. 认证流程
Implementing OAuth for the Apple Search Ads API
This implementation process guides you through the following steps:
- Invite users with API permissions.
- Generate a private-public key pair.
- Extract a public key from your persisted private key.
- Upload a public key.
- Create a client secret.
- Request an access token.
- 邀请拥有api权限的用户
- 生成专用公钥对
- 从持久化私钥中提取公钥
- 上传公钥
- 创建客户端密钥
- 请求访问令牌
2. 邀请用户
Account administrators invite users with API permissions using the following process:
- From the Apple Search Ads UI, choose Sign In > Advanced and log in as an account administrator.
- From the Users menu in the top-right corner, select the account to invite users to.
- Choose Account Settings > User Management.
- Click Invite Users to invite users to your Apple Search Ads organization.
- In the User Details section, enter the user’s first name, last name, and Apple ID.
- In the User Access and Role section, select an API user role. For non-API roles, see Invite users to your account.
- Click Send Invite. The invited user receives an email with a secure code. The user signs into the secure Apple URL in the email and inputs the provided code, which activates the user’s account.
管理员账号通过以下过程邀请用户具有api权限:
- 从Apple Search Ads UI中,选择“登录”>“高级(Advanced)”,然后以帐户管理员身份登录
图2-1:登陆界