commit | author | age
|
655e66
|
1 |
/* |
H |
2 |
* Copyright (C) 2017 Twitter, Inc. |
|
3 |
* |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
* |
|
16 |
*/ |
|
17 |
|
7be7ad
|
18 |
#import "TwitterNetworking.h" |
655e66
|
19 |
|
H |
20 |
@class TWTRAuthConfig; |
|
21 |
|
|
22 |
/** |
|
23 |
An Twitter Social HTTP API client for use with an Application only access token. |
|
24 |
Application only auth allows for an app to access some Twitter content without a logged in user. |
|
25 |
To obtain an app only access token use TWTRAuthClient. |
|
26 |
For more about application only auth see https://dev.twitter.com/docs/auth/application-only-auth . |
|
27 |
|
|
28 |
If you have a logged in user, use TwitterUserAPIClient. |
|
29 |
*/ |
7be7ad
|
30 |
@interface TwitterAppAPIClient : TwitterNetworking |
655e66
|
31 |
|
H |
32 |
// The application only access token |
7be7ad
|
33 |
@property (nonatomic, readonly) NSString *accessToken; |
655e66
|
34 |
|
H |
35 |
/** |
|
36 |
Designated initializer. Returns nil if access token is missing. |
|
37 |
@param accessToken An application only access token. |
|
38 |
*/ |
|
39 |
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig accessToken:(NSString *)accessToken; |
7be7ad
|
40 |
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig __unavailable; |
655e66
|
41 |
|
H |
42 |
@end |