refactor createCredentials() to be a static method that uses the API defaults