It's an app called Rise Vision that runs in the app cloud. They still haven't migrated to oAuth 2.0.
So not only do I have no clue what I'm doing, but Google keeps telling me not to. :( I also have to run this from the AppEngine, which doesn't support curl.
I was just curious if anyone had already done the endpoints for oAuth 1.0a. That's the part I'm having trouble getting. Google has their published endpoints, but connecting to them generally gets a message about the endpoint being moved.
i.e.
Published Endpoint: https://www.google.com/accounts/OAuthGetAccessToken
Connect and you get the error taht the endpoint has been moved to
accounts.google.com/o/oauth1/auth
I've gotten this far:
case 'Google':
$this->oauth_version = '1.0a';
$this->dialog_url = 'https://accounts.google.com/o/oauth1/auth?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&oauth_callback={REDIRECT_URI}&scope={SCOPE}&state={STATE}';
$this->offline_dialog_url = 'https://accounts.google.com/o/oauth1/auth?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}&state={STATE}&access_type=offline&approval_prompt=force';
$this->access_token_url = 'https://www.google.com/accounts/OAuthGetAccessToken';
$this->request_token_url = 'https://accounts.google.com/o/oauth1/auth';
break;