All URIs are relative to https://api.gitee.com/enterprises
Method | HTTP request | Description |
---|---|---|
getUsers | GET /users | 获取授权用户的资料 |
\GiteeEnterprise\Model\User getUsers($accessToken)
获取授权用户的资料
获取授权用户的资料
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new GiteeEnterprise\Api\UsersApi(
// 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()
);
$accessToken = "accessToken_example"; // string | 用户授权码
try {
$result = $apiInstance->getUsers($accessToken);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->getUsers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accessToken | string | 用户授权码 | [optional] |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]