clinejj / foursquare-api-java Goto Github PK
View Code? Open in Web Editor NEWFoursquare V2 API for Java
Foursquare V2 API for Java
Error occured:
code: 410
type: param_error
detail: The Foursquare API no longer supports requests that pass in a version v <= 20120609. For more details see https://developer.foursquare.com/overview/versioning
When I look into the FoursquareApi class I see
private static final String DEFAULT_VERSION = "20110615";
Maby I do something stupid or am i using a old version?
If accepted, I volunteer for this.
Obviously this is now totally outdated
I am getting jsonexception on venus search. I call venus search like below
public static void venuesInTheBox(double currLat,double currLon){
// First we need a initialize FoursquareApi.
FoursquareApi foursquareApi = new FoursquareApi("myclientid", "myclientsecret", "");
SimpleDateFormat df = new SimpleDateFormat("YYYYMMDD");
foursquareApi.setVersion(df.format(Calendar.getInstance().getTime()));
// After client has been initialized we can make queries.
Result<VenuesSearchResult> result;
try {
result = foursquareApi.venuesSearch(currLat+","+currLon, null, null, null, null, null, null, null, null, null, null);
if (result.getMeta().getCode() == 200) {
// if query was ok we can finally we do something with the data
for (CompactVenue venue : result.getResult().getVenues()) {
// TODO: Do something we the data
System.out.println(venue.getName());
}
}else{
// TODO: Proper error handling
System.out.println("Error occured: ");
System.out.println(" code: " + result.getMeta().getCode());
System.out.println(" type: " + result.getMeta().getErrorType());
System.out.println(" detail: " + result.getMeta().getErrorDetail());
}
}catch(FoursquareApiException e){
// TODO Auto-generated catch block
e.printStackTrace();
}
}
The exception is this
fi.foyt.foursquare.api.FoursquareApiException: org.json.JSONException: JSONObject["specials"] is not a JSONArray.
What should I do ?
If accepted, I volunteer for this.
(I'm creating an issue here because the fork that's linked from the official Foursquare API docs has issues disabled)
i tried to integrate your library into an Android project (because according to some articles this library is compatible with Android) but I'm not able to compile the app: "trouble writing output: Too many method references: 76856; max is 65536"
this is because your library includes the appengine SDK, which seems to be fairly huge. do you really depend on the appengine SDK or is there a way to exclude it?
If accepted, I volunteer for this.
The info below seems obsolete:
https://github.com/clinejj/foursquare-api-java/wiki/Maven
Thank you !
I am using this Java client to send foursquare request. there is a venuesExplore method to call explore api, but it only takes some of the parameters not all of them. For exmaple "sortByDistance", "time", "day" etc are not configurable.
Can we add another generic venuesExplore method to take a map of parameter names and values like what we are doing for venuesSearch?
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.