blob: 6d144b4320dfdb53e0ebe016b0d3340fa21b43d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
class Google extends Oauth {
protected $_prefix = 'google';
protected $_authorize_url = 'https://accounts.google.com/o/oauth2/auth';
protected $_access_token_url = 'https://accounts.google.com/o/oauth2/token';
protected function authorize(Array $scope = array(), $scope_seperator = '+'){
parent::authorize($scope, $scope_seperator, '&response_type=code');
}
protected function requestAccessToken($method = 'POST', Array $params = array('grant_type' => 'authorization_code'), $returnType = 'json', Array $values = array('access_token', 'expires_in')){
parent::requestAccessToken($method, $params, $returnType, $values);
}
}
|