hank
2018-08-30 7be7ad711909f384c4a9bc0a7f2991a50ae69049
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
a0a843 18 #import <Foundation/Foundation.h>
H 19
20 #pragma mark Twitter API
7be7ad 21 FOUNDATION_EXPORT NSString *const TWTRTwitterDomain;
a0a843 22
H 23 #pragma mark - Authentication
7be7ad 24 FOUNDATION_EXPORT NSString *const TWTRAuthDirectoryLegacyName;
H 25 FOUNDATION_EXPORT NSString *const TWTRAuthDirectoryName;
26 FOUNDATION_EXPORT NSString *const TWTRSDKScheme;
27 FOUNDATION_EXPORT NSString *const TWTRSDKRedirectHost;
a0a843 28
H 29 #pragma mark - Paths
7be7ad 30 FOUNDATION_EXPORT NSString *const TWTRTwitterRequestTokenPath;
H 31 FOUNDATION_EXPORT NSString *const TWTRTwitterAuthorizePath;
32 FOUNDATION_EXPORT NSString *const TWTRTwitterAccessTokenPath;
33 FOUNDATION_EXPORT NSString *const TWTRAppAuthTokenPath;
34 FOUNDATION_EXPORT NSString *const TWTRGuestAuthTokenPath;
a0a843 35
H 36 #pragma mark - OAuth strings
7be7ad 37 FOUNDATION_EXPORT NSString *const TWTRAuthOAuthTokenKey;
H 38 FOUNDATION_EXPORT NSString *const TWTRAuthOAuthSecretKey;
39 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthTokenKey;
40 FOUNDATION_EXPORT NSString *const TWTRGuestAuthOAuthTokenKey;
41 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthUserIDKey;
42 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthScreenNameKey;
43 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthVerifierKey;
44 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthDeniedKey;
45 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthAppKey;
46 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthCallbackConfirmKey;
47 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthCallbackKey;
48 FOUNDATION_EXPORT NSString *const TWTRAuthTokenTypeKey;
49 FOUNDATION_EXPORT NSString *const TWTRAuthTokenKey;
50 FOUNDATION_EXPORT NSString *const TWTRAuthSecretKey;
51 FOUNDATION_EXPORT NSString *const TWTRAuthUsernameKey;
52 FOUNDATION_EXPORT NSString *const TWTRAuthTokenSeparator;
a0a843 53
H 54 #pragma mark - HTTP Headers
7be7ad 55 FOUNDATION_EXPORT NSString *const TWTRAuthorizationHeaderField;
H 56 FOUNDATION_EXPORT NSString *const TWTRGuestTokenHeaderField;
a0a843 57
H 58 #pragma mark - Resources
7be7ad 59 FOUNDATION_EXPORT NSString *const TWTRLoginButtonImageLocation;
a0a843 60
H 61 #pragma mark - Errors
7be7ad 62 FOUNDATION_EXPORT NSString *const TWTRMissingAccessTokenMsg;
a0a843 63
7be7ad 64 typedef NS_ENUM(NSInteger, TWTRAuthType) {
H 65     TWTRAuthTypeApp = 1,
66
67     TWTRAuthTypeGuest = 2,
68
69     TWTRAuthTypeUser = 3
70 };