WBHttpRequest Class Reference
| Inherits from | NSObject |
| Declared in | WeiboSDK.h |
Tasks
-
urlproperty -
httpMethodproperty -
paramsproperty -
delegateproperty -
tagproperty -
+ requestWithURL:httpMethod:params:delegate:withTag: -
+ requestWithAccessToken:url:httpMethod:params:delegate:withTag: -
– disconnect
Properties
delegate
WBHttpRequestDelegate对象,用于接收微博SDK对于发起的接口请求的请求的响应
@property (nonatomic, assign) id<WBHttpRequestDelegate> delegateDeclared In
WeiboSDK.hhttpMethod
用户自定义请求方式
@property (nonatomic, retain) NSString *httpMethodDiscussion
支持"GET" “POST”
Declared In
WeiboSDK.hClass Methods
requestWithAccessToken:url:httpMethod:params:delegate:withTag:
统一微博Open API HTTP请求接口 调用此接口后,将发送一个HTTP网络请求(用于访问微博open api)
+ (WBHttpRequest *)requestWithAccessToken:(NSString *)accessToken url:(NSString *)url httpMethod:(NSString *)httpMethod params:(NSDictionary *)params delegate:(id<WBHttpRequestDelegate>)delegate withTag:(NSString *)tagParameters
- accessToken
应用获取到的accessToken,用于身份验证
- url
请求url地址
- httpMethod
支持"GET" “POST”
- params
向接口传递的参数结构
- delegate
WBHttpRequestDelegate对象,用于接收微博SDK对于发起的接口请求的请求的响应
- tag
用户自定义TAG,将通过回调WBHttpRequest实例的tag属性返回
Declared In
WeiboSDK.hrequestWithURL:httpMethod:params:delegate:withTag:
统一HTTP请求接口 调用此接口后,将发送一个HTTP网络请求
+ (WBHttpRequest *)requestWithURL:(NSString *)url httpMethod:(NSString *)httpMethod params:(NSDictionary *)params delegate:(id<WBHttpRequestDelegate>)delegate withTag:(NSString *)tagParameters
- url
请求url地址
- httpMethod
支持"GET" “POST”
- params
向接口传递的参数结构
- delegate
WBHttpRequestDelegate对象,用于接收微博SDK对于发起的接口请求的请求的响应
- tag
用户自定义TAG,将通过回调WBHttpRequest实例的tag属性返回
Declared In
WeiboSDK.h