Skip to content
Browse files

support new requestClient method in YOSBaseRequest

  • Loading branch information...
1 parent a735fb6 commit 8bf839093b270ec6a3557c1faf43240a94f44056 @zagraves zagraves committed Sep 16, 2009
Showing with 2 additions and 5 deletions.
  1. +2 −5 Source/YOSSocial/YOSAuthRequest.m
View
7 Source/YOSSocial/YOSAuthRequest.m
@@ -60,14 +60,12 @@ - (YOSRequestToken *)fetchRequestTokenWithCallbackUrl:(NSString *)callbackUrl
[requestParameters setValue:self.oAuthLang forKey:@"xoauth_lang_pref"];
}
- YOSRequestClient *client = [[YOSRequestClient alloc] initWithConsumer:[self consumerForRequest]
- andToken:[self tokenForRequest]];
+ YOSRequestClient *client = [self requestClient];
[client setRequestUrl:url];
[client setHTTPMethod:@"POST"];
[client setRequestParameters:requestParameters];
YOSResponseData *response = [client sendSynchronousRequest];
- [client release];
if(!response.didSucceed) {
return nil;
@@ -109,8 +107,7 @@ - (YOSAccessToken *)fetchAccessToken:(YOAuthToken *)requestOrAccessToken withVer
}
}
- YOSRequestClient *client = [[YOSRequestClient alloc] initWithConsumer:[self consumerForRequest]
- andToken:[self tokenForRequest]];
+ YOSRequestClient *client = [self requestClient];
[client setRequestUrl:url];
[client setHTTPMethod:@"POST"];
[client setRequestParameters:requestParameters];

0 comments on commit 8bf8390

Please sign in to comment.
Something went wrong with that request. Please try again.