Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
support new requestClient method in YOSBaseRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
zagraves committed Sep 16, 2009
1 parent a735fb6 commit 8bf8390
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Source/YOSSocial/YOSAuthRequest.m
Expand Up @@ -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;
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 8bf8390

Please sign in to comment.