forked from sonofsky2010/TQT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QWeiboRequest.h
68 lines (60 loc) · 1.55 KB
/
QWeiboRequest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// QWeiboRequest.h
// QWeiboSDK4iOS
//
// Created on 11-1-13.
//
//
#import <Foundation/Foundation.h>
@class QOauthKey;
@interface QWeiboRequest : NSObject {
}
/*
* Do sync request.
*
* param url
* The full url that needs to be signed including its non OAuth
* url parameters
* param httpMethod
* The http method used. Must be a valid HTTP method verb
* (POST,GET,PUT, etc)
* param key
* OAuth key
* param listParam
* Query parameters
* param listFile
* Files for post
* return the data received.
*
*/
- (NSString *)syncRequestWithUrl:(NSString *)aUrl
httpMethod:(NSString *)aHttpMethod
oauthKey:(QOauthKey *)aOauthKey
parameters:(NSDictionary *)aParameters
files:(NSDictionary *)aFiles;
/*
* Do async request
*
* param url
* The full url that needs to be signed including its non OAuth
* url parameters
* param httpMethod
* The http method used. Must be a valid HTTP method verb
* (POST,GET,PUT, etc)
* param key
* OAuth key
* param listParam
* Query parameters
* param listFile
* Files for post
* param delegate
* Callback delegate.
* return the connection started.
*/
- (NSURLConnection *)asyncRequestWithUrl:(NSString *)aUrl
httpMethod:(NSString *)aHttpMethod
oauthKey:(QOauthKey *)aOauthKey
parameters:(NSDictionary *)aParameters
files:(NSDictionary *)aFiles
delegate:(id)aDelegate;
@end