src/Service/CommunityOAuth.php 1 location
|
@@ 26-35 (lines=10) @@
|
| 23 |
|
* |
| 24 |
|
* @return ResponseInterface |
| 25 |
|
*/ |
| 26 |
|
public function getUser($accessToken = null, array $options = []) |
| 27 |
|
{ |
| 28 |
|
if (null === $accessToken) { |
| 29 |
|
$options['access_token'] = $this->blizzardClient->getAccessToken(); |
| 30 |
|
} else { |
| 31 |
|
$options['access_token'] = $accessToken; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
return $this->request('/account/user', $options); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// endregion Account API |
| 38 |
|
} |
src/Service/Starcraft.php 1 location
|
@@ 137-146 (lines=10) @@
|
| 134 |
|
* |
| 135 |
|
* @return ResponseInterface |
| 136 |
|
*/ |
| 137 |
|
public function getProfileUser($accessToken = null, array $options = []) |
| 138 |
|
{ |
| 139 |
|
if (null === $accessToken) { |
| 140 |
|
$options['access_token'] = $this->blizzardClient->getAccessToken(); |
| 141 |
|
} else { |
| 142 |
|
$options['access_token'] = $accessToken; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
return $this->request('/profile/user', $options); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// endregion Community OAuth API |
| 149 |
|
} |
src/Service/WorldOfWarcraft.php 1 location
|
@@ 590-599 (lines=10) @@
|
| 587 |
|
* |
| 588 |
|
* @return ResponseInterface |
| 589 |
|
*/ |
| 590 |
|
public function getProfileCharacters($accessToken = null, array $options = []) |
| 591 |
|
{ |
| 592 |
|
if (null === $accessToken) { |
| 593 |
|
$options['access_token'] = $this->blizzardClient->getAccessToken(); |
| 594 |
|
} else { |
| 595 |
|
$options['access_token'] = $accessToken; |
| 596 |
|
} |
| 597 |
|
|
| 598 |
|
return $this->request('/user/characters', $options); |
| 599 |
|
} |
| 600 |
|
|
| 601 |
|
// endregion Community OAuth API |
| 602 |
|
} |