commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRAuthConfig.h |
|
3 |
// TwitterKit |
|
4 |
// |
|
5 |
// Copyright (c) 2015 Twitter. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
NS_ASSUME_NONNULL_BEGIN |
|
11 |
|
|
12 |
/** |
|
13 |
* Authentication configuration details. Encapsulates credentials required to authenticate a Twitter application. You can obtain your credentials at https://apps.twitter.com/. |
|
14 |
*/ |
|
15 |
@interface TWTRAuthConfig : NSObject |
|
16 |
|
|
17 |
/** |
|
18 |
* The consumer key of the Twitter application. |
|
19 |
*/ |
|
20 |
@property (nonatomic, copy, readonly) NSString *consumerKey; |
|
21 |
/** |
|
22 |
* The consumer secret of the Twitter application. |
|
23 |
*/ |
|
24 |
@property (nonatomic, copy, readonly) NSString *consumerSecret; |
|
25 |
|
|
26 |
/** |
|
27 |
* Returns an `TWTRAuthConfig` object initialized by copying the values from the consumer key and consumer secret. |
|
28 |
* |
|
29 |
* @param consumerKey The consumer key. |
|
30 |
* @param consumerSecret The consumer secret. |
|
31 |
*/ |
|
32 |
- (instancetype)initWithConsumerKey:(NSString *)consumerKey consumerSecret:(NSString *)consumerSecret; |
|
33 |
|
|
34 |
/** |
|
35 |
* Unavailable. Use `initWithConsumerKey:consumerSecret:` instead. |
|
36 |
*/ |
|
37 |
- (instancetype)init NS_UNAVAILABLE; |
|
38 |
|
|
39 |
@end |
|
40 |
|
|
41 |
NS_ASSUME_NONNULL_END |