mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix getUser method
This commit is contained in:
@@ -206,16 +206,13 @@ class Dailymotion extends OAuth2
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function getUser(string $accessToken) : array
|
||||
protected function getUser(string $accessToken): array
|
||||
{
|
||||
if (empty($this->user)) {
|
||||
$user = $this->request(
|
||||
'GET',
|
||||
$this->endpoint . '/user/me?',
|
||||
$this->endpoint . '/user/me?fields=' . \implode(',', $this->getFields()),
|
||||
['Authorization: Bearer ' . \urlencode($accessToken)],
|
||||
\http_build_query([
|
||||
'fields' => \implode(' ', $this->getFields())
|
||||
])
|
||||
);
|
||||
$this->user = \json_decode($user, true);
|
||||
\var_dump($this->user);
|
||||
|
||||
Reference in New Issue
Block a user