{"head":"7c46e8e16387bcc5d50b4da730a9e2458d5ee73f","size":2,"push_id":46837107,"commits":[{"sha":"d7c8617e71014c1e1be0f1e1a4189e180f1a5f82","author":{"name":"John Syrinek","email":"438054d6e9239c4aa30d0f7bce55154a14fee79b@gmail.com"},"url":"https://api.github.com/repos/stephenyoung/php-foursquare/commits/d7c8617e71014c1e1be0f1e1a4189e180f1a5f82","message":"Stores redirect URI internally and added FoursquareApi::setRedirectUri() to change it -- if we can't mix and match redirect URIs between authentication/requests, we should just store it internally so users don't have to keep track of it.\nAlso added redirect URI as (optional) constructor parameter. Allows for better use with dependency injection. This change shifts the version parameter to the fourth parameter so may break code that supplies this argument.\nAdded method to parse the response from a JSON string and return an object -- This provides a single place to handle errors. We should be checking HTTP status codes, API status_code's, as well as verifying \"response\" exists in the response\nAdds FoursquareApiException to give us a standard way of handling exceptions\nRemoves trailing \"?>\" -- not necessary, and whitespace after it can break things like session_start (because this whitespace may be flushed to browser before headers can be sent)\nChanged visibility of client credentials from private to protected to allow for inheritance\n\nTODOs:\nUse FoursquareApi::RedirectUri throughout -- users can use FoursquareApi::setRedirectUri() to change it if necessary\nVerify responses\nUse FoursquareApiException for edge cases"},{"sha":"7c46e8e16387bcc5d50b4da730a9e2458d5ee73f","author":{"name":"Stephen Young","email":"06fa905d7f2aaced6dc72e9511c71a2a51e8aead@tryllo.com"},"url":"https://api.github.com/repos/stephenyoung/php-foursquare/commits/7c46e8e16387bcc5d50b4da730a9e2458d5ee73f","message":"Merge pull request #5 from Johntron/master"}],"ref":"refs/heads/master","legacy":{"head":"7c46e8e16387bcc5d50b4da730a9e2458d5ee73f","size":2,"push_id":46837107,"shas":[["d7c8617e71014c1e1be0f1e1a4189e180f1a5f82","john.syrinek@gmail.com","Stores redirect URI internally and added FoursquareApi::setRedirectUri() to change it -- if we can't mix and match redirect URIs between authentication/requests, we should just store it internally so users don't have to keep track of it.\nAlso added redirect URI as (optional) constructor parameter. Allows for better use with dependency injection. This change shifts the version parameter to the fourth parameter so may break code that supplies this argument.\nAdded method to parse the response from a JSON string and return an object -- This provides a single place to handle errors. We should be checking HTTP status codes, API status_code's, as well as verifying \"response\" exists in the response\nAdds FoursquareApiException to give us a standard way of handling exceptions\nRemoves trailing \"?>\" -- not necessary, and whitespace after it can break things like session_start (because this whitespace may be flushed to browser before headers can be sent)\nChanged visibility of client credentials from private to protected to allow for inheritance\n\nTODOs:\nUse FoursquareApi::RedirectUri throughout -- users can use FoursquareApi::setRedirectUri() to change it if necessary\nVerify responses\nUse FoursquareApiException for edge cases","John Syrinek"],["7c46e8e16387bcc5d50b4da730a9e2458d5ee73f","stephen@tryllo.com","Merge pull request #5 from Johntron/master","Stephen Young"]],"ref":"refs/heads/master"}}