public function Api::getCurrentUser in Fastly 8.3
Gets Fastly user associated with an API key.
1 call to Api::getCurrentUser()
- Api::validatePurgeToken in src/
Api.php - Used to validate an API Token's scope for purging capabilities.
File
- src/
Api.php, line 188
Class
- Api
- Fastly API for Drupal.
Namespace
Drupal\fastlyCode
public function getCurrentUser() {
$response = $this
->query('/current_user');
return $this
->json($response);
}