Fixed bug with basic auth when getting a user's API key. Modified general samples to use OAuth as the authentication method.