-
Notifications
You must be signed in to change notification settings - Fork 0
/
OAuth1Controller.h
executable file
·32 lines (25 loc) · 1.03 KB
/
OAuth1Controller.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
//
// OAuth1Controller.h
// Simple-OAuth1
//
// Created by Christian Hansen on 02/12/12.
// Copyright (c) 2012 Christian-Hansen. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface OAuth1Controller : NSObject <UIWebViewDelegate>
{
NSString *oauth_token_class;
NSString *oauth_token_secret_class;
}
- (void)loginWithWebView:(UIWebView *)webWiew
completion:(void (^)(NSDictionary *oauthTokens, NSError *error))completion;
- (void)requestAccessToken:(NSString *)oauth_token_secret
oauthToken:(NSString *)oauth_token
oauthVerifier:(NSString *)oauth_verifier
completion:(void (^)(NSError *error, NSDictionary *responseParams))completion;
+ (NSURLRequest *)preparedRequestForPath:(NSString *)path
parameters:(NSDictionary *)parameters
HTTPmethod:(NSString *)method
oauthToken:(NSString *)oauth_token
oauthSecret:(NSString *)oauth_token_secret;
@end