Git Product home page Git Product logo

foursquare-api-java's Introduction

foursquare-api-java's People

Contributors

blakedy avatar ceefour avatar clinejj avatar ganchix avatar lucianobustos avatar nykolaslima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foursquare-api-java's Issues

Provide a generic way to do venue/explore request

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?

android support

(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?

Venus Search Exception

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 ?

Versioning issue

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?

Outdated

Obviously this is now totally outdated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.