MGTwitterEngine is a great place, for example, for code. You can use the OAuthConsumer project to help make xAuth calls.
If you order MGTwitterEngine.m (shown on Github), you can see in the function
- (NSString *)getXAuthAccessTokenForUsername:(NSString *)username password:(NSString *)password
creates an object OAConsumerwith userKey and Secret, and then creates an object OAMutableURLRequest, you can use Foursquare information there.
Then you can create NSURLConnectionwith this query and then get your results in the standard delegation method, a la URL Loading System
source
share