From b7efa10578f10a1470ad2d2b8da486f33fa8b088 Mon Sep 17 00:00:00 2001 From: Goichi Hirakawa Date: Thu, 24 Oct 2013 20:46:25 +0900 Subject: [PATCH 1/2] Add kMinSupportedVersion @"20120609" as the default value --- BZFoursquare/BZFoursquare.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BZFoursquare/BZFoursquare.m b/BZFoursquare/BZFoursquare.m index 813faa0..83511bb 100755 --- a/BZFoursquare/BZFoursquare.m +++ b/BZFoursquare/BZFoursquare.m @@ -34,6 +34,7 @@ #error This file does not support Objective-C Automatic Reference Counting (ARC) #endif +#define kMinSupportedVersion @"20120609" #define kAuthorizeBaseURL @"https://foursquare.com/oauth2/authorize" @interface BZFoursquare () @@ -61,6 +62,7 @@ - (id)initWithClientID:(NSString *)clientID callbackURL:(NSString *)callbackURL if (self) { self.clientID = clientID; self.callbackURL = callbackURL; + self.version = kMinSupportedVersion; } return self; } From d6b9e9a97ee8da5b4d5446597554080cc1e5362a Mon Sep 17 00:00:00 2001 From: Goichi Hirakawa Date: Thu, 24 Oct 2013 20:53:10 +0900 Subject: [PATCH 2/2] Update the API version FSQDemo uses to "20120609" --- FSQDemo/FSQDemo/FSQMasterViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FSQDemo/FSQDemo/FSQMasterViewController.m b/FSQDemo/FSQDemo/FSQMasterViewController.m index cfe6e18..b8cfd85 100755 --- a/FSQDemo/FSQDemo/FSQMasterViewController.m +++ b/FSQDemo/FSQDemo/FSQMasterViewController.m @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Ba-Z Communication Inc. All rights reserved. + * Copyright (C) 2011-2013 Ba-Z Communication Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -81,7 +81,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder { self = [super initWithCoder:aDecoder]; if (self) { self.foursquare = [[BZFoursquare alloc] initWithClientID:kClientID callbackURL:kCallbackURL]; - foursquare_.version = @"20111119"; + foursquare_.version = @"20120609"; foursquare_.locale = [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode]; foursquare_.sessionDelegate = self; }