Requests
Requests
API
TLRequest *req = [TLAuthRequests authorizeByOAuthWithType:oauthType
authorizationCode:code
redirectUrl:redirectUri];
TLOperation *op = [req operationForApi:TPDApi.sharedApi];
[op startWithTimeout:TPDCheckOnlyNetworkOperationTimeOutInterval successBlock:^(TLAuthorization *auth) {
//handle success
} failureBlock:^(NSError *error) {
//handle failure
}];TLRequest *req = [TLPhotosRequests editProfilePhotoWithPhoto:photo crop:crop];
TLOperation *op = [req operationForApi:TPDApi.sharedApi organizationId:orgId];
[op startWithSuccessBlock:^(TLPhoto *tlPhoto) {
//handle success
} failureBlock:^(NSError *error) {
//handle error
}];Last updated
