Skip to content

Commit

Permalink
Minor improvement, store APU url into constant
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jul 15, 2017
1 parent d392151 commit 8ed144d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions _protected/app/system/modules/connect/inc/class/Microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@

class Microsoft extends Api
{
private $_oClient, $_sUsername, $_iProfileId, $_aUserInfo;
const API_URL = 'https://apis.live.net/v5.0/me';

/** @var \oauth_client_class */
private $_oClient;

/** @var string */
private $_sUsername;

/** @var int */
private $_iProfileId;

/** @var array */
private $_aUserInfo;

public function __construct()
{
Expand All @@ -49,7 +61,7 @@ public function __construct()
$bSuccess = false;
} elseif (strlen($this->_oClient->access_token)) {
$bSuccess = $this->_oClient->CallAPI(
'https://apis.live.net/v5.0/me',
self::API_URL,
'GET',
array(),
array('FailOnAccessError' => true),
Expand Down

0 comments on commit 8ed144d

Please sign in to comment.