* @param username Heroku username.
* @param password Heroku password.
* @return An API key that can be used for subsequent API calls.
*/
public static String obtainApiKey(String username, String password) {
Connection tmpConn = ConnectionFactory.get();
LoginVerification verification = tmpConn.execute(new BasicAuthLogin(username, password), null);
return verification.getApiKey();
}