Examples of ExploreQuery


Examples of org.springframework.social.foursquare.api.ExploreQuery

    public void explore() {
        mockServer.expect(requestTo("https://api.foursquare.com/v2/venues/explore?oauth_token=ACCESS_TOKEN&v=20110609&ll=10.0%2C10.0&query=QUERY"))
            .andExpect(method(GET))
            .andRespond(withResponse(new ClassPathResource("testdata/explore.json", getClass()), responseHeaders));
       
        ExploreQuery query = new ExploreQuery().location(10d, 10d).query("QUERY");
        ExploreResponse response = foursquare.venueOperations().explore(query);
        assertEquals(30, response.getKeywords().getCount());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.