Examples of CheckinParams


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

    mockServer.expect(requestTo("https://api.foursquare.com/v2/checkins/add?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andExpect(body("venueId=VENUE_ID&shout=SHOUT&broadcast=public&ll=10.0,10.0&llAcc=10&alt=200.0&altAcc=10"))
      .andRespond(withResponse(new ClassPathResource("testdata/checkin.json", getClass()), responseHeaders));
   
    CheckinParams params = new CheckinParams().venueId("VENUE_ID").shout("SHOUT").broadcast("public").latitude(10d).longitude(10d).locationAccuracy(10l).altitude(200d).altitudeAccuracy(10l);
    Checkin checkin = foursquare.checkinOperations().add(params);
    assertEquals("4d627f6814963704dc28ff94", checkin.getId());
    mockServer.verify();
  }
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.