/*
|
* Copyright (C) 2017 Twitter, Inc.
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
* you may not use this file except in compliance with the License.
|
* You may obtain a copy of the License at
|
*
|
* http://www.apache.org/licenses/LICENSE-2.0
|
*
|
* Unless required by applicable law or agreed to in writing, software
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* See the License for the specific language governing permissions and
|
* limitations under the License.
|
*
|
*/
|
|
#import "TwitterNetworking.h"
|
|
@class TWTRAuthConfig;
|
|
/**
|
An Twitter Social HTTP API client for use with an Application only access token.
|
Application only auth allows for an app to access some Twitter content without a logged in user.
|
To obtain an app only access token use TWTRAuthClient.
|
For more about application only auth see https://dev.twitter.com/docs/auth/application-only-auth .
|
|
If you have a logged in user, use TwitterUserAPIClient.
|
*/
|
@interface TwitterAppAPIClient : TwitterNetworking
|
|
// The application only access token
|
@property (nonatomic, readonly) NSString *accessToken;
|
|
/**
|
Designated initializer. Returns nil if access token is missing.
|
@param accessToken An application only access token.
|
*/
|
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig accessToken:(NSString *)accessToken;
|
- (instancetype)initWithAuthConfig:(TWTRAuthConfig *)authConfig __unavailable;
|
|
@end
|