This repository was archived by the owner on Jun 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathXAuthTwitterEngine.h
49 lines (40 loc) · 1.51 KB
/
XAuthTwitterEngine.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
//
// XAuthTwitterEngine.h
//
// Created by Aral Balkan on 28/02/2010.
// Copyright 2010 Naklab. All rights reserved.
//
// Based on SA_OAuthTwitterEngine Ben Gottlieb.
//
// Some code and concepts taken from examples provided by
// Matt Gemmell, Chris Kimpton, and Isaiah Carew
// See ReadMe for further attributions, copyrights and license info.
//
#import "MGTwitterEngine.h"
#import "XAuthTwitterEngineDelegate.h"
#import "ExchangeCredentialsOperationDelegate.h"
@class OAToken;
@class OAConsumer;
@class OAAsynchronousDataFetcher;
@interface XAuthTwitterEngine : MGTwitterEngine <ExchangeCredentialsOperationDelegate> {
NSString *_consumerSecret;
NSString *_consumerKey;
NSURL *_accessTokenURL;
@private
OAToken *_accessToken;
OAConsumer *_consumer;
NSOperationQueue *_operationQueue;
}
@property (nonatomic, retain) OAToken *accessToken;
@property (nonatomic, readwrite, retain) NSString *consumerSecret, *consumerKey;
@property (nonatomic, readwrite, retain) NSURL *accessTokenURL;
@property (nonatomic, readonly) BOOL OAuthSetup;
@property (nonatomic, retain) NSOperationQueue *operationQueue;
+ (XAuthTwitterEngine *) XAuthTwitterEngineWithDelegate: (NSObject *) delegate;
- (XAuthTwitterEngine *) initXAuthWithDelegate: (NSObject *) delegate;
- (void) exchangeAccessTokenForUsername:(NSString *)username password:(NSString *)password;
- (void)setAccessTokenFromTokenString:(NSString *)tokenString;
- (BOOL) isAuthorized;
- (void) clearAccessToken;
@property (nonatomic, readonly) OAConsumer *consumer;
@end