-
Notifications
You must be signed in to change notification settings - Fork 2
/
QOauth.h
55 lines (49 loc) · 1.42 KB
/
QOauth.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
//
// QOauth.h
// QWeiboSDK4iOS
//
// Created on 11-1-12.
//
//
#import <Foundation/Foundation.h>
@interface QOauth : NSObject {
}
/*
* Get the URL based on the specified key.
*
* 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 customKey
* The consumer key
* param customSecrect
* The consumer seceret
* param tokenKey
* The token, if available. If not available pass null or an
* empty string
* param tokenSecrect
* The token secret, if available. If not available pass null or
* an empty string
* param verify
* The oAauth Verifier.
* param callbackUrl
* The OAuth Callback URL(You should encode this url if it
* contains some unreserved characters).
* param parameters
* param queryString
*
*/
- (NSString *)getOauthUrl:(NSString *)aUrl
httpMethod:(NSString *)aMethod
consumerKey:(NSString *)aConsumerKey
consumerSecret:(NSString *)aConsumerSecret
tokenKey:(NSString *)aTokenKey
tokenSecret:(NSString *)aTokenSecret
verify:(NSString *)aVerify
callbackUrl:(NSString *)aCallbackUrl
parameters:(NSDictionary *)aParameters
queryString:(NSString **)aQueryString;
@end