您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > Renren-api-ios-sdk-3.0
目录一、产品特点...................................................................................................................................2二、SDK接口介绍............................................................................................................................2Renren接口说明.......................................................................................................................2RenrenPay接口说明.................................................................................................................4三、基本功能使用说明...................................................................................................................5使用iOSSDK的准备工作..........................................................................................................5使用iOSSDK提供的页面授权方法..........................................................................................6使用iOSSDK提供的用户名密码授权方式..............................................................................7使用iOSSDK调用人人API接口(以取得用户信息为例)...................................................7使用iOSSDK完成一键上传照片..............................................................................................8使用iOSSDK提供的widgetdialog(以发布状态为例).......................................................9使用iOSSDK退出授权状态....................................................................................................10四、支付功能使用说明.................................................................................................................10取得人人支付的对象.............................................................................................................10支付流程.................................................................................................................................11查询本地保存的订单.............................................................................................................12删除本地保存的订单.............................................................................................................12使用测试接口.........................................................................................................................12校验订单.................................................................................................................................13五、功能示范.................................................................................................................................13一键上传图片.........................................................................................................................13使用常用功能接口查询当前登录用户信息.........................................................................13使用通用API接口发布状态...................................................................................................14使用WidgetDialog发布自定义新鲜事..................................................................................14使用支付接口.........................................................................................................................15人人网开放平台2人人网开放平台iOSSDKV3.0一、产品特点支付功能:SDK提供支付、充值、本地订单查询、本地订单修复和本地订单删除等接口支持,用户消费一气呵成。Navigation页面:本SDK新增了Navigation形式的页面展示,使得SDK页面与你的应用契合度更高。弹层页面改善:弹层页面添加关闭“X”按钮,修复页面加载失败时无法关闭页面的问题。保障应用的信息安全,去除secret宏定义,需要使用secret的接口,由开发者传入secret。二、SDK接口介绍Renren接口说明表2-1接口方法序号类型功能接口状态1登录、授权与登出授权页面方式登录——弹层页面-(void)authorizationWithPermisson:(NSArray*)permissionsandDelegate:(idRenrenDelegate)delegate原有2授权页面方式登录——Navigation页面-(void)authorizationInNavigationWithPermisson:(NSArray*)permissionsandDelegate:(idRenrenDelegate)delegate;新增3用户名密码方式登录-(void)passwordFlowAuthorizationWithParam:(ROPasswordFlowRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有4登出-(void)logout:(idRenrenDelegate)delegate;原有5一键发布一键上传照片-(void)publishPhotoSimplyWithI原有人人网开放平台3mage:(UIImage*)imagecaption:(NSString*)caption;6常用功能获取用户信息-(void)getUsersInfo:(ROUserInfoRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有7获取好友列表-(void)getFriends:(ROGetFriendsRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有8获取好友详细信息列表-(void)getFriendsInfo:(ROGetFriendsInfoRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有9获取相册信息-(void)getAlbums:(ROAlbumsInfoRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有10上传照片-(void)uploadPhoto:(ROUploadPhotoRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有11新建相册-(void)createAlbum:(ROCreateAlbumRequestParam*)paramandDelegate:(idRenrenDelegate)delegate;原有12通用方法通用API接口调用-(RORequest*)requestWithParams:(NSMutableDictionary*)paramsandDelegate:(idRenrenDelegate)delegate;原有13WidgetDialog调用——弹层页面-(void)dialog:(NSString*)actionandParams:(NSMutableDictionary*)paramsandDelegate:(idRODialogDelegate)delegate;原有14WidgetDialog调用——Navigation页面-(void)dialogInNavigation:(NSString*)actionandParams:(NSMutableDictionary*)paramsandDelegate:(idRenrenDelegate)delegate;新增15判断用户登录后授权的-(BOOL)isSessionValid;原有人人网开放平台4周期是否有效16扩展功能获得人人支付功能对象RenrenPay-(RenrenPay*)getRenrenPayWithSecret:(NSString*)secretandLocalMem:(BOOL)isUsed;新增表2-2代理方法序号代理方法说明状态1-(void)renren:(Renren*)renrenreques
本文标题:Renren-api-ios-sdk-3.0
链接地址:https://www.777doc.com/doc-3203128 .html