Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.55 KB

UserControllerApi.md

File metadata and controls

58 lines (39 loc) · 1.55 KB

MailSlurp\Swagger\UserControllerApi

All URIs are relative to https://api.mailslurp.com

Method HTTP request Description
getUserUsingGET GET /user Fetch a user

getUserUsingGET

\MailSlurp\Swagger\Model\UserDto getUserUsingGET($jwtToken)

Fetch a user

Used by the dashboard to fetch user information.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
jwtToken string jwtToken

Return type

\MailSlurp\Swagger\Model\UserDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]