-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete foursquare integration example. Added simple foursquare
connect view, oAuth authentication, loading of venues and checkin to a specific venue.
- Loading branch information
Andreas Katzian
committed
Oct 5, 2010
1 parent
e97c769
commit 14e7ca1
Showing
35 changed files
with
3,674 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ build/ | |
*.mode1v3 | ||
*.mode2v3 | ||
|
||
FoursquareIntegration/defaults.plist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// Foursquare.h | ||
// FoursquareIntegration | ||
// | ||
// Created by Andreas Katzian on 29.09.10. | ||
// Copyright 2010 Blackwhale GmbH. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "OAuthConsumer.h" | ||
#import "FoursquareConnectController.h" | ||
|
||
|
||
@interface Foursquare : NSObject <FoursquareConnectControllerDelegate> { | ||
|
||
NSString *consumerKey; | ||
NSString *consumerSecret; | ||
|
||
OAToken *oauthToken; | ||
|
||
UIViewController *rootController; | ||
|
||
} | ||
|
||
@property(nonatomic,retain) NSString *consumerKey; | ||
@property(nonatomic,retain) NSString *consumerSecret; | ||
|
||
@property(nonatomic,retain) OAToken *oauthToken; | ||
|
||
@property(nonatomic,assign) UIViewController *rootController; | ||
|
||
@property(readonly, getter=isActive) BOOL active; | ||
|
||
+ (Foursquare*) sharedInstance; | ||
|
||
// Methods to login into and logout of foursquare | ||
- (void) login; | ||
- (void) logout; | ||
|
||
// Methods to find nearby locations | ||
- (NSArray*) findLocationsNearbyLatitude:(double) latitude longitude:(double)longitude limit:(int) limit searchterm:(NSString*) searchterm; | ||
|
||
// Method to checkin a user at given venue | ||
- (NSString*) checkinAtVenue:(NSString*) venueId latitude:(double) latitude longitude:(double)longitude; | ||
|
||
|
||
@end |
Oops, something went wrong.