Skip to content

Commit

Permalink
Complete foursquare integration example. Added simple foursquare
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 35 changed files with 3,674 additions and 161 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ build/
*.mode1v3
*.mode2v3

FoursquareIntegration/defaults.plist

47 changes: 47 additions & 0 deletions FoursquareIntegration/Classes/Foursquare.h
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
Loading

0 comments on commit 14e7ca1

Please sign in to comment.