TencentSessionDelegate iOS Open SDK 1.3 API回调协议
更多...
#import <TencentOAuth.h>
TencentSessionDelegate iOS Open SDK 1.3 API回调协议
第三方应用需要实现每条需要调用的API的回调协议
- (void) checkPageFansResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) getIntimateFriendsResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) getListAlbumResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) getListPhotoResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) getVipRichInfoResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) matchNickTipsResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) setUserHeadpicResponse: |
|
(APIResponse *) |
response |
|
|
optional |
- (void) tencentDidLogout |
|
|
|
|
optional |
用户通过增量授权流程重新授权登录,token及有效期限等信息已被更新。
- 参数
-
tencentOAuth | token及有效期限等信息更新后的授权实例对象 |
- 注解
- 第三方应用需更新已保存的token及有效期限等信息。
用户增量授权过程中因取消或网络问题导致授权失败
- 参数
-
- (BOOL) tencentNeedPerformIncrAuth: |
|
(TencentOAuth *) |
tencentOAuth |
withPermissions: |
|
(NSArray *) |
permissions |
|
|
| |
|
optional |
因用户未授予相应权限而需要执行增量授权。在用户调用某个api接口时,如果服务器返回操作未被授权,则触发该回调协议接口,由第三方决定是否跳转到增量授权页面,让用户重新授权。
- 参数
-
tencentOAuth | 登录授权对象。 |
permissions | 需增量授权的权限列表。 |
- 返回
- 是否仍然回调返回原始的api请求结果。
- 注解
- 不实现该协议接口则默认为不开启增量授权流程。若需要增量授权请调用incrAuthWithPermissions: (TencentOAuth)
注意:增量授权时用户可能会修改登录的帐号
- (BOOL) tencentNeedPerformReAuth: |
|
(TencentOAuth *) |
tencentOAuth |
|
|
optional |
[该逻辑未实现]因token失效而需要执行重新登录授权。在用户调用某个api接口时,如果服务器返回token失效,则触发该回调协议接口,由第三方决定是否跳转到登录授权页面,让用户重新授权。
- 参数
-
- 返回
- 是否仍然回调返回原始的api请求结果。
- 注解
- 不实现该协议接口则默认为不开启重新登录授权流程。若需要重新登录授权请调用reauthorizeWithPermissions: (TencentOAuth)
注意:重新登录授权时用户可能会修改登录的帐号
- (void) tencentOAuth: |
|
(TencentOAuth *) |
tencentOAuth |
didSendBodyData: |
|
(NSInteger) |
bytesWritten |
totalBytesWritten: |
|
(NSInteger) |
totalBytesWritten |
totalBytesExpectedToWrite: |
|
(NSInteger) |
totalBytesExpectedToWrite |
userData: |
|
(id) |
userData |
|
|
| |
|
optional |
- (void) tencentOAuth: |
|
(TencentOAuth *) |
tencentOAuth |
doCloseViewController: |
|
(UIViewController *) |
viewController |
|
|
| |
|
optional |
该协议的文档由以下文件生成: