I would go one further and pass username, api key, and url. Then this object doesn't need to understand our credentials format at all.