All URIs are relative to https://api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
getUserUsingGET | GET /user | Fetch a user |
\MailSlurp\Swagger\Model\UserDto getUserUsingGET($jwtToken)
Fetch a user
Used by the dashboard to fetch user information.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new MailSlurp\Swagger\Api\UserControllerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$jwtToken = "jwtToken_example"; // string | jwtToken
try {
$result = $apiInstance->getUserUsingGET($jwtToken);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserControllerApi->getUserUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
jwtToken | string | jwtToken |
\MailSlurp\Swagger\Model\UserDto
No authorization required
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]