Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public HashMap<String, String> validateCredentials(String userName,
String password) throws Exception {
RestClient client = new RestClient("https://" + destinationInfo
+ "/fourgoats/api/v1/login/authenticate");
client.AddParam("userName", userName);
client.AddParam("password", password);
client.Execute(RequestMethod.POST, context);
return LoginResponse.parseLoginResponse(client.getResponse());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment