|
| 1 | +// |
| 2 | +// WBHttpRequest+WeiboGame.h |
| 3 | +// WeiboSDK |
| 4 | +// |
| 5 | +// Created by insomnia on 15/3/11. |
| 6 | +// Copyright (c) 2015年 SINA iOS Team. All rights reserved. |
| 7 | +// |
| 8 | + |
| 9 | +#import "WBHttpRequest.h" |
| 10 | + |
| 11 | +@interface WBHttpRequest (WeiboGame) |
| 12 | + |
| 13 | +/*! |
| 14 | + @method |
| 15 | + |
| 16 | + @abstract |
| 17 | + 新增游戏对象。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 18 | + |
| 19 | + @param userID 当前授权用户的uid |
| 20 | + |
| 21 | + @param accessToken 当前授权用户的accessToken |
| 22 | + |
| 23 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 24 | + |
| 25 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 26 | + |
| 27 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 28 | + */ |
| 29 | ++ (WBHttpRequest *)addGameObject:(NSString*)userID |
| 30 | + withAccessToken:(NSString*)accessToken |
| 31 | + andOtherProperties:(NSDictionary*)otherProperties |
| 32 | + queue:(NSOperationQueue*)queue |
| 33 | + withCompletionHandler:(WBRequestHandler)handler; |
| 34 | + |
| 35 | +/*! |
| 36 | + @method |
| 37 | + |
| 38 | + @abstract |
| 39 | + 游戏成就对象入库/更新。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 40 | + |
| 41 | + @param userID 当前授权用户的uid |
| 42 | + |
| 43 | + @param accessToken 当前授权用户的accessToken |
| 44 | + |
| 45 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 46 | + |
| 47 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 48 | + |
| 49 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 50 | + */ |
| 51 | ++ (WBHttpRequest *)addGameAchievementObject:(NSString*)userID |
| 52 | + withAccessToken:(NSString*)accessToken |
| 53 | + andOtherProperties:(NSDictionary*)otherProperties |
| 54 | + queue:(NSOperationQueue*)queue |
| 55 | + withCompletionHandler:(WBRequestHandler)handler; |
| 56 | + |
| 57 | +/*! |
| 58 | + @method |
| 59 | + |
| 60 | + @abstract |
| 61 | + 用户获得游戏成就关系入库/更新。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 62 | + |
| 63 | + @param userID 当前授权用户的uid |
| 64 | + |
| 65 | + @param accessToken 当前授权用户的accessToken |
| 66 | + |
| 67 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 68 | + |
| 69 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 70 | + |
| 71 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 72 | + */ |
| 73 | ++ (WBHttpRequest *)addGameAchievementGain:(NSString*)userID |
| 74 | + withAccessToken:(NSString*)accessToken |
| 75 | + andOtherProperties:(NSDictionary*)otherProperties |
| 76 | + queue:(NSOperationQueue*)queue |
| 77 | + withCompletionHandler:(WBRequestHandler)handler; |
| 78 | + |
| 79 | +/*! |
| 80 | + @method |
| 81 | + |
| 82 | + @abstract |
| 83 | + 用户游戏得分关系入库/更新。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 84 | + |
| 85 | + @param userID 当前授权用户的uid |
| 86 | + |
| 87 | + @param accessToken 当前授权用户的accessToken |
| 88 | + |
| 89 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 90 | + |
| 91 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 92 | + |
| 93 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 94 | + */ |
| 95 | ++ (WBHttpRequest *)addGameScoreGain:(NSString*)userID |
| 96 | + withAccessToken:(NSString*)accessToken |
| 97 | + andOtherProperties:(NSDictionary*)otherProperties |
| 98 | + queue:(NSOperationQueue*)queue |
| 99 | + withCompletionHandler:(WBRequestHandler)handler; |
| 100 | + |
| 101 | + |
| 102 | +/*! |
| 103 | + @method |
| 104 | + |
| 105 | + @abstract |
| 106 | + 读取玩家游戏分数。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 107 | + |
| 108 | + @param userID 当前授权用户的uid |
| 109 | + |
| 110 | + @param accessToken 当前授权用户的accessToken |
| 111 | + |
| 112 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 113 | + |
| 114 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 115 | + |
| 116 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 117 | + */ |
| 118 | ++ (WBHttpRequest *)requestForGameScore:(NSString*)userID |
| 119 | + withAccessToken:(NSString*)accessToken |
| 120 | + andOtherProperties:(NSDictionary*)otherProperties |
| 121 | + queue:(NSOperationQueue*)queue |
| 122 | + withCompletionHandler:(WBRequestHandler)handler; |
| 123 | + |
| 124 | +/*! |
| 125 | + @method |
| 126 | + |
| 127 | + @abstract |
| 128 | + 读取玩家互粉好友游戏分数。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 129 | + |
| 130 | + @param userID 当前授权用户的uid |
| 131 | + |
| 132 | + @param accessToken 当前授权用户的accessToken |
| 133 | + |
| 134 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 135 | + |
| 136 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 137 | + |
| 138 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 139 | + */ |
| 140 | ++ (WBHttpRequest *)requestForFriendsGameScore:(NSString*)userID |
| 141 | + withAccessToken:(NSString*)accessToken |
| 142 | + andOtherProperties:(NSDictionary*)otherProperties |
| 143 | + queue:(NSOperationQueue*)queue |
| 144 | + withCompletionHandler:(WBRequestHandler)handler; |
| 145 | + |
| 146 | +/*! |
| 147 | + @method |
| 148 | + |
| 149 | + @abstract |
| 150 | + 读取玩家获取成就列表。 在http://open.weibo.com/wiki/%E6%B8%B8%E6%88%8F%E6%8E%A5%E5%8F%A3 中有关于该接口的细节说明。 |
| 151 | + |
| 152 | + @param userID 当前授权用户的uid |
| 153 | + |
| 154 | + @param accessToken 当前授权用户的accessToken |
| 155 | + |
| 156 | + @param otherProperties 一个NSDictionary字典,承载任意想额外添加到请求中的参数。 |
| 157 | + |
| 158 | + @param queue 指定发送请求的NSOperationQueue,如果这个参数为nil,则请求会发送在MainQueue( [NSOperationQueue mainQueue] )中。 |
| 159 | + |
| 160 | + @param handler 完成请求后会回调handler,处理完成请求后的逻辑。 |
| 161 | + */ |
| 162 | ++ (WBHttpRequest *)requestForGameAchievementGain:(NSString*)userID |
| 163 | + withAccessToken:(NSString*)accessToken |
| 164 | + andOtherProperties:(NSDictionary*)otherProperties |
| 165 | + queue:(NSOperationQueue*)queue |
| 166 | + withCompletionHandler:(WBRequestHandler)handler; |
| 167 | + |
| 168 | +@end |
0 commit comments