commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TwitterAppAPIClient.h |
|
3 |
// |
|
4 |
// Created by Alden Keefe Sampson on 5/7/14. |
|
5 |
// Copyright (c) 2014 Twitter. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import "TwitterNetworking.h" |
|
9 |
|
|
10 |
@class TWTRAuthConfig; |
|
11 |
|
|
12 |
/** |
|
13 |
An Twitter Social HTTP API client for use with an Application only access token. |
|
14 |
Application only auth allows for an app to access some Twitter content without a logged in user. |
|
15 |
To obtain an app only access token use TWTRAuthClient. |
|
16 |
For more about application only auth see https://dev.twitter.com/docs/auth/application-only-auth . |
|
17 |
|
|
18 |
If you have a logged in user, use TwitterUserAPIClient. |
|
19 |
*/ |
|
20 |
@interface TwitterAppAPIClient : TwitterNetworking |
|
21 |
|
|
22 |
// The application only access token |
|
23 |
@property (nonatomic, readonly) NSString *accessToken; |
|
24 |
|
|
25 |
/** |
|
26 |
Designated initializer. Returns nil if access token is missing. |
|
27 |
@param accessToken An application only access token. |
|
28 |
*/ |
|
29 |
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig accessToken:(NSString *)accessToken; |
|
30 |
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig __unavailable; |
|
31 |
|
|
32 |
@end |