Implement authenticating API requests using previously obtained OAuth tokens

This pull request allows use of previously obtained OAuth tokens to be used to authenticate API requests.