Set the username, password, and the timeout value for the service
// Set the username and password api.setUsername("myusername"); api.setPassword("mypassword"); // Time out after a minute api.setTimeout(60000);