Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
extensions
eauth
custom_services
CustomMailruService.php
1
<?php
2
/**
3
* An example of extending the provider class.
4
*
5
* @author ChooJoy <choojoy.work@gmail.com>
6
* @link http://code.google.com/p/yii-eauth/
7
* @license http://www.opensource.org/licenses/bsd-license.php
8
*/
9
10
require_once dirname(dirname(__FILE__)) .
'/services/MailruOAuthService.php'
;
11
12
class
CustomMailruService
extends
MailruOAuthService
{
13
14
protected
function
fetchAttributes
() {
15
$info = (array)$this->
makeSignedRequest
(
'http://www.appsmail.ru/platform/api'
, array(
16
'query'
=> array(
17
'uids'
=> $this->uid,
18
'method'
=>
'users.getInfo'
,
19
'app_id'
=> $this->client_id,
20
),
21
));
22
23
$info = $info[0];
24
25
$this->attributes[
'id'
] = $info->uid;
26
$this->attributes[
'first_name'
] = $info->first_name;
27
$this->attributes[
'photo'
] = $info->pic;
28
}
29
30
}
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2