1. 术语:
app: 爱奇艺广告代理商电话接入openapi平台的应用
app_id: app申请注册成功后,获取app_id用于*标识
app_key: app使用app_id对应的key,用于对app的认证识别
auth_code: app经广告主授权后获得auth_code,使用auth_code向openapi平台申请获取access_token和refresh_token
access_token: app访问openapi平台接口操作相关资源时需携带access_token作为调用和鉴权凭证
refresh_token: access_token过期前,app可通过refresh_token向openapi平台申请新的access_token和refresh_token
2. 爱奇艺广告客服流程:
⑴ openapi平台提供授权页面地址https://tuiguang.iqiyi.com/platform/authApp,app在该地址后拼接参数app_id、state(自定义参数,回调redirect_uri时原样带回)、scope(见附件-权限列表)、redirect_uri(使用utf-8 url encode)。
例如,拼接后的地址为https://tuiguang.iqiyi.com/platform/authApp?app_id=10000001&state=503b98ae179a50&
scope=report%3alist,page%3alist&redirect_uri=https%3a%2f%2fapp.com%2foauth%2fcallback
⑵ 广告主访问拼接后的地址,进入授权页面对app进行授权
⑶ openapi平台确认授权并生成auth_code
⑷ 爱奇艺广告账户开通广告主浏览器端自动跳转到应用的redirect_uri(例如https://app.com/oauth/callback),并携带auth_code和state,例如:https://app.com/oauth/callback?state=503b98ae179a50&auth_code=b970d38ae6
⑸ app server侧根据auth_code请求openapi平台的oauth_token_uri,获取access_token、refresh_token
⑹ openapi平台返回授权客户类型、授权客户id、access_token、refresh_token及相应过期时间
⑺ app可以在过期之前使用refresh_token访问oauth_token_uri获取新的access_token和refresh_token,实现token续约
查看爱奇艺发展历程:https://www.eatui.cn/aiqiyi/gy/
本文标题:爱奇艺广告投放技巧新手指引Oauth2.0授权流程
本文链接:https://www.eatui.cn/xinxiliu/13319.html