Package org.springframework.social.foursquare.api

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


  public void markTodo() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/TIP_ID/marktodo?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andRespond(withResponse(new ClassPathResource("testdata/marktodo.json", getClass()), responseHeaders));
   
    Todo todo = foursquare.tipOperations().markTodo("TIP_ID");
    assertTrue(todo != null);
    mockServer.verify();
  }
View Full Code Here


  public void markDone() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/tips/TIP_ID/markdone?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andRespond(withResponse(new ClassPathResource("testdata/marktodo.json", getClass()), responseHeaders));
   
    Todo todo = foursquare.tipOperations().markDone("TIP_ID");
    assertTrue(todo != null);
    mockServer.verify();
  }
View Full Code Here

        mockServer.expect(requestTo("https://api.foursquare.com/v2/venues/VENUE_ID/marktodo?oauth_token=ACCESS_TOKEN&v=20110609"))
            .andExpect(method(POST))
            .andExpect(body("text=TEXT"))
            .andRespond(withResponse(new ClassPathResource("testdata/marktodo.json", getClass()), responseHeaders));
       
        Todo todo = foursquare.venueOperations().markTodo("VENUE_ID", "TEXT");
        assertTrue(todo != null);
    }
View Full Code Here

TOP

Related Classes of org.springframework.social.foursquare.api.Todo

Copyright © 2018 www.massapicom. 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.