hank
2018-04-18 115060372060932bcbf35c8d34827ecd046fd7cf
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
18 /**
19  This header is private to the Twitter Core SDK and not exposed for public SDK consumption
20  */
21
22 #import "TWTRNetworking.h"
23
24 @class TWTRAuthConfig;
25
26 /**
27  An Twitter Social HTTP API client for use with an Application only access token.
28  Application only auth allows for an app to access some Twitter content without a logged in user.
29  To obtain an app only access token use TWTRAuthClient.
30  For more about application only auth see https://dev.twitter.com/docs/auth/application-only-auth .
31
32  If you have a logged in user, use TwitterUserAPIClient.
33  */
34 @interface TWTRAppAPIClient : TWTRNetworking
35
36 // The application only access token
37 @property (nonatomic, copy, readonly) NSString *accessToken;
38
39 /**
40  Designated initializer. Returns nil if access token is missing.
41  @param accessToken An application only access token.
42  */
43 - (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig accessToken:(NSString *)accessToken;
44 - (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig NS_UNAVAILABLE;
45
46 @end