KEWLWebService(LiveMeSDK) Category Reference
Declared in | KEWLWebService+LiveMeSDK.h KEWLWebService+LiveMeSDK.m |
---|
– queryMainPage:page_size:pageup:locationCoordinate2D:gender:posid:c:followUids:completeHandle:
首页接口
- (void)queryMainPage:(NSInteger)page_index page_size:(NSInteger)page_size pageup:(NSInteger)pageUp locationCoordinate2D:(CLLocationCoordinate2D)coordinate2D gender:(NSInteger)gender posid:(NSInteger)posid c:(NSString *)c followUids:(NSString *)followUids completeHandle:(void ( ^ ) ( KEWLMainPageResponse *, KewlError *))completeHandle
Parameters
page_index |
当前页数 |
---|---|
page_size |
每页数量 |
pageUp |
1.9新增 如果检测到用户手动下拉 下次再拉取时 设为1 |
coordinate2D |
位置 |
gender |
性别 |
posid |
页面位置id |
c |
算法需要 |
completeHandle |
回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– getProductListWithCompletion:completeHandle:
获取商品列表
- (void)getProductListWithCompletion:(NSInteger)live completeHandle:(void ( ^ ) ( KEWLProductListResponse *response , KewlError *error ))completeHandle
Parameters
live |
2.2新增,是否在直播间充值(1是,0不是) |
---|---|
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– vipPayOrder:completeHandle:
生成VIP订单
- (void)vipPayOrder:(NSString *)product_id completeHandle:(void ( ^ ) ( KEWLPayResponse *response , KewlError *error ))completeHandle
Parameters
product_id |
商品ID |
---|---|
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– payOrder:groupKey:hostId:videoId:completeHandle:
生成订单
- (void)payOrder:(NSString *)product_id groupKey:(NSString *)groupKey hostId:(NSString *__nullable)hostId videoId:(NSString *__nullable)videoId completeHandle:(void ( ^ ) ( KEWLPayResponse *response , KewlError *error ))completeHandle
Parameters
product_id |
商品ID |
---|---|
groupKey |
组key |
hostId |
主播id 非必传 |
videoId |
直播间 非必传 |
completeHandle |
回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– queryHotNewVideo:c:completeHandle:
未开启定位时,获取最新的直播视频
- (void)queryHotNewVideo:(NSInteger)posid c:(nullable NSString *)c completeHandle:(void ( ^ ) ( KEWLMainPageResponse *response , KewlError *error ))completeHandle
Parameters
completeHandle |
回调Block |
---|
Declared In
KEWLWebService+LiveMeSDK.h
– paymentCallback:order_id:receipt_data:transaction_id:verifyType:hostId:videoId:completeHandle:
验证订单
- (void)paymentCallback:(NSString *)product_id order_id:(NSString *)order_id receipt_data:(id)receipt_data transaction_id:(NSString *)transaction_id verifyType:(NSInteger)verifyType hostId:(NSString *)hostId videoId:(NSString *)videoId completeHandle:(void ( ^ ) ( KEWLPaymentResponse *response , KewlError *error ))completeHandle
Parameters
product_id |
商品ID |
---|---|
order_id |
预付订单ID |
receipt_data |
AppStore收据 |
verifyType |
交易完成时,收据验证出错类型 |
hostId |
主播id 非必传 |
videoId |
直播间 非必传 |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– payxInfo:completeHandle:
验证订单成功后 再次请求金币结果
- (void)payxInfo:(NSString *)order_id completeHandle:(void ( ^ ) ( KEWLPaymentEndResponse *response , KewlError *error ))completeHandle
Parameters
order_id |
订单id |
---|---|
completeHandle |
回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– vipPaymentCallback:receipt_data:transaction_id:completeHandle:
非续订订阅 验证收据
- (void)vipPaymentCallback:(NSString *)order_id receipt_data:(id)receipt_data transaction_id:(NSString *)transaction_id completeHandle:(void ( ^ ) ( KEWLPaymentResponse *response , KewlError *error ))completeHandle
Parameters
order_id |
预付订单ID |
---|---|
receipt_data |
AppStore收据 |
transaction_id |
交易id |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– queryNearbyVideoWithType:coordinate:pageIndex:posid:c:completeHandle:
获取附近的直播视频
- (void)queryNearbyVideoWithType:(NSInteger)type coordinate:(CLLocationCoordinate2D)coordinate pageIndex:(NSInteger)page_index posid:(NSInteger)posid c:(nullable NSString *)c completeHandle:(void ( ^ ) ( KEWLMainPageResponse *response , KewlError *error ))completeHandle
Parameters
type |
筛选类型(0全部,1男,2女) |
---|---|
coordinate |
经纬度坐标 |
page_index |
页码 |
completeHandle |
回调Block |
Declared In
KEWLWebService+LiveMeSDK.h
– appLoginCheck:isfb:zp:lg:d:t:code_map:completeHandle:
客户端上报各种信息,服务器告诉我们国家码
- (void)appLoginCheck:(NSInteger)isNewInstall isfb:(NSInteger)isfb zp:(NSInteger)zp lg:(NSInteger)lg d:(NSString *)d t:(NSString *)t code_map:(NSString *)codeMap completeHandle:(void ( ^ ) ( KEWLLoginCheckResponse *response , KewlError *error ))completeHandle
Declared In
KEWLWebService+LiveMeSDK.h
– payErrorReport:errMsg:errCode:completeHandle:
支付失败上报服务器
- (void)payErrorReport:(NSString *)orderID errMsg:(NSString *)errMsg errCode:(NSInteger)errCode completeHandle:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Parameters
orderID |
订单ID |
---|---|
errMsg |
错误信息 |
errCode |
错误码 |
completeHandle |
结束回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– reportPraiseCount:roomId:broadcastId:completeHandle:
回报当前聊天室已经获得了多少个赞
- (void)reportPraiseCount:(NSInteger)count roomId:(NSString *)roomId broadcastId:(NSString *)broadcastId completeHandle:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Parameters
count |
赞的数量 |
---|---|
roomId |
聊天室id==>视频id |
broadcastId |
播主ID |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– offOnSetWithKey:completion:
更改开关值
- (void)offOnSetWithKey:(NSString *)key completion:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Parameters
key |
要更改的开关 userfollowtipsoff |
---|---|
completeHandle |
回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– reportBadLive:publisherId:reporterId:type:content:desctext:completeHandle:
举报非法直播
- (void)reportBadLive:(NSString *)videoId publisherId:(NSString *)videoPublisherId reporterId:(NSString *)reporterId type:(NSInteger)type content:(NSString *)content desctext:(NSString *)desctext completeHandle:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Parameters
videoId |
直播id |
---|---|
videoPublisherId |
播主id |
reporterId |
举报者id |
type |
非法类型 |
content |
内容 |
desctext |
直播间举报观众的内容 |
completeHandle |
完成回调 |
sourceURLString |
视频图片地址(多个用英文逗号分隔) |
Declared In
KEWLWebService+LiveMeSDK.h
– queryLiveStatusWithUserId:completeHandle:
他人主页获取直播状态(个人中心改版需求)
- (void)queryLiveStatusWithUserId:(NSString *)userid completeHandle:(void ( ^ ) ( KEWLLiveStatusResponse *response , KewlError *error ))completeHandle
Parameters
userid |
用户id |
---|
Declared In
KEWLWebService+LiveMeSDK.h
– addUserToBlackList:blackuid:target:completeHandle:
加入黑名单
- (void)addUserToBlackList:(NSString *)hostid blackuid:(NSString *)blackuid target:(NSString *)targetid completeHandle:(void ( ^ ) ( KEWLBlackListOperationResponse *response , KewlError *error ))completeHandle
Parameters
hostid |
播主id |
---|---|
blackuid |
被加入者Id |
targetid |
为谁移除 |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– removeUserFromBlackList:blackuid:target:completeHandle:
删除黑名单
- (void)removeUserFromBlackList:(NSString *)hostid blackuid:(NSString *)blackuid target:(NSString *)targetid completeHandle:(void ( ^ ) ( KEWLBlackListOperationResponse *response , KewlError *error ))completeHandle
Parameters
hostid |
播主id |
---|---|
blackuid |
被移除者Id |
targetid |
为谁移除 |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– fetchFileUploadUrlWithFileType:completeHandle:
获取文件上传路径
- (void)fetchFileUploadUrlWithFileType:(NSString *)fileType completeHandle:(void ( ^ ) ( LMFileUploadResponse *response , KewlError *error ))completeHandle
Declared In
KEWLWebService+LiveMeSDK.h
– userInfo:forceSave:completeHandle:
获取用户信息
- (void)userInfo:(NSString *)userId forceSave:(BOOL)forceSave completeHandle:(void ( ^ ) ( KEWLUserInfoResponse *response , KewlError *error ))completeHandle
Parameters
userId |
用户id |
---|---|
forceSave |
是否强制保存到数据库中,默认处理是数据库没有则不更新,有则更新,操作的对象是 KEWLChatUserManage |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– fetchLiveInfoWithUid:videoId:sid:pageID:completeHandle:
获取直播信息
- (void)fetchLiveInfoWithUid:(NSString *__nullable)userId videoId:(NSString *)videoId sid:(NSString *__nullable)sid pageID:(NSString *__nullable)pageID completeHandle:(void ( ^ ) ( KEWLVideoInfoResponse *response , KewlError *error ))completeHandle
Parameters
userId |
播主id |
---|---|
videoId |
直播id |
sid |
节目id |
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– isNickNameExist:completeHandle:
昵称是否重复
- (void)isNickNameExist:(NSString *)nickName completeHandle:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Parameters
nickName |
昵称 |
---|---|
completeHandle |
完成回调 |
Declared In
KEWLWebService+LiveMeSDK.h
– setlivetime:completeHandle:
设置开播时间
- (void)setlivetime:(NSInteger)timestamp completeHandle:(void ( ^ ) ( KEWLResponse *response , KewlError *error ))completeHandle
Declared In
KEWLWebService+LiveMeSDK.h