hownowstephen / php-foursquare Goto Github PK
View Code? Open in Web Editor NEWA simple foursquare API v2 library for PHP focused on supplying core functionality without any extra bloat.
License: The Unlicense
A simple foursquare API v2 library for PHP focused on supplying core functionality without any extra bloat.
License: The Unlicense
Sorry I´m new to github so I didn´t know where to place question.
I put my ClintId and Secret. qas there anything else?
I tried to try public.php but it returns a blank page.
It looks like the Google geocoding API now requires both a 'key' parameter, and access over HTTPS - so the geocode example in your examples/public.php fails
Verify responses from foursquare
Foursquare will soon deprecate API versions before 20120609 (announcement), and this library looks like it makes requests with a 20120228 version.
We recommend libraries periodically bump up their default versions to take advantage of newer features of the API and because Foursquare will periodically phase out support for old versions. For more details, see https://developer.foursquare.com/overview/versioning.
To avoid the library breaking when Foursquare deprecates the 20120609 version, please increase your version number soon (preferably to something modern, like 20140201) and ensure that the library can handle any changes to response structure that may have happened since your version.
Hi,
I'm trying to expand the GetPublic.php example to get the complete object of a venue.
In my foreach I have the following:
foreach($venues->response->venues as $venue) {
$complete_params = array("VENUE_ID" => $venue->id);
$complete_response = $foursquare->GetPublic("venues/VENUE_ID", $complete_params);
}
But this doesn't work, the error I'm receiving is:
{"meta":{"code":400,"errorType":"param_error","errorDetail":"Value VENUE_ID is invalid for venue id"},"response":{}}
What am I doing wrong? As far as Foursquare says, VENUE_ID should be send and that's what I'm doing, right?
Use FoursquareApiException for edge cases
Waiting on language support bug as discussed here:
http://stackoverflow.com/questions/11399175/broken-internationalization-through-api
to ensure coverage in php-foursquare
Use FoursquareApi::RedirectUri throughout -- users can use FoursquareApi::setRedirectUri() to change it if necessary
Calling the venues/explore
endpoint seems to be missing fields such as contact, url despite them showing up on the foursquare website:
https://foursquare.com/developers/explore#req=venues%2Fexplore%3Fnear%3DLondon%2C%20UK
Hi! First of all, i want to thank you. This sdk really made my life easier and it is a great job!
I've been using your sdk in my application for the last year, not by Composer though. Now, I decided to use Composer with all my dependecies.
The problem is, the autoload isn't loading your class, I think you missed the autoload parameter in you composer.json. Since the FoursquareAPI.class.php file is inside the "src" directory, I think it should be something like that:
{ "autoload": { "psr-0": { "FoursquareAPI.class": "src/" } } }
Maybe I'm doing something wrong, but every other libraries that I installed through Composer are ok.
Anyway, can you help me? Thank you so much!
[meta] => stdClass Object
(
[code] => 200
[errorType] => deprecated
[errorDetail] => This endpoint will stop returning groups in the future. Please use a current version, see http://bit.ly/lZx3NU.
)
My problem swarm checkin after venue right now here not showing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.