· 7 years ago · Jun 01, 2018, 07:02 AM
1<?php
2require('/var/www-protected/Giggles-Framework/core/framework.php');
3gfw::init('starter');
4
5//AcceptParams are any additional parameters that should be provided with retrieving the final access token. Google does not require anything
6
7gfw::util('oauth:SUBTYPE')->acceptToken($acceptParams);
8
9//If everything is successful, you should receive two values.
10//the oauth_token will be set in gfw::thisUser('SUBTYPE_oauth_token');
11//the oauth_token_secret will be set in gfw::thisUser('SUBTYPE_oauth_token');
12//Additionally, if you want to use events,
13//the event 'authorized' is fired at the end with an array('token_secret'=>$secret, 'token'=>$token, 'subtype'=>$subtype)