diff --git a/Foursquare-API-v2.podspec b/Foursquare-API-v2.podspec index e2909b9..8ac152e 100644 --- a/Foursquare-API-v2.podspec +++ b/Foursquare-API-v2.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "Foursquare-API-v2" - s.version = "1.2.1" + s.version = "1.2.2" s.summary = "Foursquare API v2 For iOS." s.homepage = "https://github.com/Constantine-Fry/Foursquare-API-v2" s.screenshots = "https://raw.github.com/Constantine-Fry/Foursquare-API-v2/master/img/photo%202.PNG" s.license = 'MIT' s.author = { "Constantine Fry" => "constantine.fry@gmail.com" } - s.source = { :git => "https://github.com/Constantine-Fry/Foursquare-API-v2.git", :tag => "1.2.1" } + s.source = { :git => "https://github.com/Constantine-Fry/Foursquare-API-v2.git", :tag => "1.2.2" } s.platform = :ios, '5.0' s.source_files = 'Classes', 'Foursquare2/**/*.{h,m}' s.exclude_files = 'Classes/Exclude' diff --git a/Foursquare2-iOS/Foursquare2-iOS.xcodeproj/project.pbxproj b/Foursquare2-iOS/Foursquare2-iOS.xcodeproj/project.pbxproj index 3e9649a..97a6fed 100755 --- a/Foursquare2-iOS/Foursquare2-iOS.xcodeproj/project.pbxproj +++ b/Foursquare2-iOS/Foursquare2-iOS.xcodeproj/project.pbxproj @@ -72,6 +72,7 @@ 4779884B16AC686700038756 /* poweredByFoursquare_gray@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "poweredByFoursquare_gray@2x.png"; sourceTree = ""; }; 4779884E16AC697200038756 /* FSWebLogin.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FSWebLogin.xib; sourceTree = ""; }; 4779886316AC6E2900038756 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; lineEnding = 0; name = README.md; path = ../README.md; sourceTree = ""; }; + 479EA375178A143400B2DD92 /* Foursquare-API-v2.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = "Foursquare-API-v2.podspec"; path = "../Foursquare-API-v2.podspec"; sourceTree = ""; }; 47ADFAC716C3C6D700891DCD /* FSConverter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FSConverter.h; sourceTree = ""; }; 47ADFAC816C3C6D700891DCD /* FSConverter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FSConverter.m; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Foursquare_API-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Foursquare_API-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; @@ -123,6 +124,7 @@ 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { isa = PBXGroup; children = ( + 479EA375178A143400B2DD92 /* Foursquare-API-v2.podspec */, 4779886316AC6E2900038756 /* README.md */, 4779881E16AC248800038756 /* Foursquare2 */, 080E96DDFE201D6D7F000001 /* Classes */, diff --git a/README.md b/README.md index 1db8634..19e56e3 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,17 @@ 1. Create Your application here https://foursquare.com/developers/register ![](https://github.com/Constantine-Fry/Foursquare-API-v2/blob/master/img/site.png?raw=true) -2. You should modify Foursquare2.h +2. Setup Foursquare to use your credentials - 1. Change FS2_OAUTH_KEY and FS2_OAUTH_SECRET - 2. Change FS2_REDIRECT_URL. It should start with app:// - 3. Change FS2_API_VERSION to your current date, so you will use latest API/ + - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + + [Foursquare2 setupFoursquareWithKey:YOUR_KEY + secret:YOUR_SECRET + callbackURL:YOUR_CALLBACK_URL]; + } + + 3. You need to make sure you set up the URL scheme in your info.plist properly CFBundleURLTypes -> CFBundleURLName -> CFBundleURLSchemes -> {app_id}