Skip to content

Commit

Permalink
Closes mattgemmellGH-27. Parses OAuth token manually with TouchJSON e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
stevestreza committed May 22, 2010
1 parent d1829a5 commit 413d1e9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions MGTwitterEngine.m
Expand Up @@ -727,9 +727,18 @@ - (void)_parseDataForConnection:(MGTwitterHTTPURLConnection *)connection
break;
}
#elif TOUCHJSON_AVAILABLE
[MGTwitterTouchJSONParser parserWithJSON:jsonData delegate:self
connectionIdentifier:identifier requestType:requestType
responseType:responseType URL:URL deliveryOptions:_deliveryOptions];
switch (responseType) {
case MGTwitterOAuthToken:;
OAToken *token = [[[OAToken alloc] initWithHTTPResponseBody:[[[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding] autorelease]] autorelease];
[self parsingSucceededForRequest:identifier ofResponseType:requestType
withParsedObjects:[NSArray arrayWithObject:token]];
break;
default:
[MGTwitterTouchJSONParser parserWithJSON:jsonData delegate:self
connectionIdentifier:identifier requestType:requestType
responseType:responseType URL:URL deliveryOptions:_deliveryOptions];
break;
}
#endif

}
Expand Down

0 comments on commit 413d1e9

Please sign in to comment.