private void printUserCalendar() { WebClient client = createClient("http://localhost:" + port + "/services/social/accounts/calendar", "barry@social.com", "1234"); Calendar calendar = client.get(Calendar.class); System.out.println(calendar.toString()); }
private void printUserCalendar() { WebClient client = createClient("http://localhost:" + port + "/services/social/accounts/calendar", "barry@social.com", "1234"); Calendar calendar = client.get(Calendar.class); System.out.println(calendar.toString()); }
private void updateAndGetUserCalendar(int hour, String event) { WebClient client = createClient("http://localhost:" + port + "/services/social/accounts/calendar", "barry@social.com", "1234"); Form form = new Form().param("hour", Integer.toString(hour)).param("event", event); client.form(form); printUserCalendar(); }
private void updateAndGetUserCalendar(int hour, String event) { WebClient client = createClient("http://localhost:" + port + "/services/social/accounts/calendar", "barry@social.com", "1234"); Form form = new Form().param("hour", Integer.toString(hour)).param("event", event); client.form(form); printUserCalendar(); }
public void reserveTable() throws Exception { WebClient rs = createClient("http://localhost:" + port + "/services/reservations/reserve/table", "barry@restaurant.com", "5678"); Response r = rs.form(new Form().param("name", "Barry") System.out.println("OAuth flow is broken"); WebClient authorizeClient = createClient(locationHeader.toString(), "barry@social.com", "1234"); OAuthAuthorizationData data = authorizeClient.get(OAuthAuthorizationData.class); WebClient finalClient = createClient(locationHeader2.toString(), "barry@restaurant.com", "5678"); finalClient.accept("application/xml");
public void reserveTable() throws Exception { WebClient rs = createClient("http://localhost:" + port + "/services/reservations/reserve/table", "barry@restaurant.com", "5678"); Response r = rs.form(new Form().param("name", "Barry") System.out.println("OAuth flow is broken"); WebClient authorizeClient = createClient(locationHeader.toString(), "barry@social.com", "1234"); OAuthAuthorizationData data = authorizeClient.get(OAuthAuthorizationData.class); WebClient finalClient = createClient(locationHeader2.toString(), "barry@restaurant.com", "5678"); finalClient.accept("application/xml");