You are here

public function Users::getSelf in Instagram API 8

Get information about the owner of the access_token.

Parameters

bool $cacheable: Cacheable.

Return value

array|bool Response array. https://api.instagram.com/v1/users/self/?access_token=ACCESS-TOKEN

See also

https://www.instagram.com/developer/endpoints/users/#get_users_self

File

src/Service/Users.php, line 55

Class

Users
Class Users.

Namespace

Drupal\instagram_api\Service

Code

public function getSelf($cacheable = TRUE) {
  $response = $this->client
    ->request('users/self', [], $cacheable);
  if ($response) {
    return $response;
  }
  return FALSE;
}