-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client defaults to requests without version param #25
Comments
App should specify the API version you want to use meaningly and library should not be set it automatically, I think. Otherwise App might behave the developer did not intend. (For now the API returns the deprecated error, but you can use it.) |
You're correct that the Foursquare API currently returns a deprecated error along with an actual response; however, the response defaults to the oldest version of the API, meaning users that don't bother passing in a If you're rather discuss this off of GitHub issues, feel free to reach out to api@foursquare.com. We're making this change in the future and wanted to give adequate time for library owners to transition. |
I see. Which value is appropriate if a v param is missing? Current date? |
|
We've released 1.1.6. "20120609" as the default value has been added. Please confirm the change. |
LGTM, so long as the library still pass your tests. I would still strongly recommend at some point moving to a more modern version though. You could be missing out on some newer features of the API. (For example, compare a venues/explore request with 20120609 vs 20131024. The new "snippets" justification block was added since last June!) |
I think you need 20120610 at least. I was getting request failures with a response from Foursquare saying that 20120609 is no longer supported.
|
As noted last year, the recommendation was to make the date after |
Right, but the default in this library is still this: https://github.com/baztokyo/foursquare-ios-api/blob/master/BZFoursquare/BZFoursquare.m#L37 So shouldn't this be updated to at least 20120610? |
When a client is instantiated without a version param, it defaults to making requests without a version. This has been deprecated behavior for some time and soon the API will stop supporting requests without a version and return an error instead of an actual result. Please take some time to update your library to support this so that other developers using your library have the opportunity to upgrade to a working version.
The text was updated successfully, but these errors were encountered: