| | |
| | | // |
| | | // TWTRAPIClient.h |
| | | // |
| | | // Copyright (c) 2015 Twitter. All rights reserved. |
| | | // |
| | | /* |
| | | * 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. |
| | | * |
| | | */ |
| | | |
| | | @class TWTRUser; |
| | | @class TWTRTweet; |
| | |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | FOUNDATION_EXPORT NSString *const TWTRTweetsNotLoadedKey; |
| | | FOUNDATION_EXTERN NSString *const TWTRTweetsNotLoadedKey; |
| | | |
| | | /** |
| | | * @name Completion Block Types |
| | |
| | | * |
| | | * @note If the request is not sent with the -[TWTRAPIClient sendTwitterRequest:completion:] method it is the developers responsibility to ensure that there is a valid guest session before this method is called. |
| | | */ |
| | | - (NSURLRequest *)URLRequestWithMethod:(NSString *)method URL:(NSString *)URLString parameters:(nullable NSDictionary *)parameters error:(NSError **)error; |
| | | - (NSURLRequest *)URLRequestWithMethod:(NSString *)method URLString:(NSString *)URLString parameters:(nullable NSDictionary *)parameters error:(NSError **)error; |
| | | |
| | | /** |
| | | * Sends a Twitter request. |
| | |
| | | * is unverified or you do not have the correct permissions to request the email address. |
| | | * |
| | | * @note Requesting a user’s email address requires your application to be whitelisted by Twitter. |
| | | * To request access, please visit https://support.twitter.com/forms/platform |
| | | * To request access, please visit the "Permissions" section for your app at https://apps.twitter.com/ |
| | | */ |
| | | - (void)requestEmailForCurrentUser:(TWTRRequestEmailCompletion)completion; |
| | | |