@@ -32,6 +32,7 @@ Method | HTTP request | Description
32
32
[ ** userDeleteEmail** ] ( UserApi.md#userDeleteEmail ) | ** DELETE** /user/emails | Delete email addresses
33
33
[ ** userGet** ] ( UserApi.md#userGet ) | ** GET** /users/{username} | Get a user
34
34
[ ** userGetCurrent** ] ( UserApi.md#userGetCurrent ) | ** GET** /user | Get the authenticated user
35
+ [ ** userGetHeatmapData** ] ( UserApi.md#userGetHeatmapData ) | ** GET** /users/{username}/heatmap | Get a user' ; s heatmap
35
36
[ ** userGetTokens** ] ( UserApi.md#userGetTokens ) | ** GET** /users/{username}/tokens | List the authenticated user' ; s access tokens
36
37
[ ** userListEmails** ] ( UserApi.md#userListEmails ) | ** GET** /user/emails | List the authenticated user' ; s email addresses
37
38
[ ** userListFollowers** ] ( UserApi.md#userListFollowers ) | ** GET** /users/{username}/followers | List the given user' ; s followers
@@ -1266,7 +1267,7 @@ This endpoint does not need any parameter.
1266
1267
1267
1268
<a name =" userCurrentListKeys " ></a >
1268
1269
# ** userCurrentListKeys**
1269
- > List< ; PublicKey> ; userCurrentListKeys()
1270
+ > List< ; PublicKey> ; userCurrentListKeys(fingerprint )
1270
1271
1271
1272
List the authenticated user' ; s public keys
1272
1273
@@ -1317,8 +1318,9 @@ Token.setApiKey("YOUR API KEY");
1317
1318
// Token.setApiKeyPrefix("Token");
1318
1319
1319
1320
UserApi apiInstance = new UserApi ();
1321
+ String fingerprint = " fingerprint_example" ; // String | fingerprint of the key
1320
1322
try {
1321
- List<PublicKey > result = apiInstance. userCurrentListKeys();
1323
+ List<PublicKey > result = apiInstance. userCurrentListKeys(fingerprint );
1322
1324
System . out. println(result);
1323
1325
} catch (ApiException e) {
1324
1326
System . err. println(" Exception when calling UserApi#userCurrentListKeys" );
@@ -1327,7 +1329,10 @@ try {
1327
1329
```
1328
1330
1329
1331
### Parameters
1330
- This endpoint does not need any parameter.
1332
+
1333
+ Name | Type | Description | Notes
1334
+ ------------- | ------------- | ------------- | -------------
1335
+ ** fingerprint** | ** String** | fingerprint of the key | [ optional]
1331
1336
1332
1337
### Return type
1333
1338
@@ -2301,6 +2306,88 @@ This endpoint does not need any parameter.
2301
2306
2302
2307
[ AccessToken] ( ../README.md#AccessToken ) , [ AuthorizationHeaderToken] ( ../README.md#AuthorizationHeaderToken ) , [ BasicAuth] ( ../README.md#BasicAuth ) , [ SudoHeader] ( ../README.md#SudoHeader ) , [ SudoParam] ( ../README.md#SudoParam ) , [ Token] ( ../README.md#Token )
2303
2308
2309
+ ### HTTP request headers
2310
+
2311
+ - ** Content-Type** : application/json, text/plain
2312
+ - ** Accept** : application/json
2313
+
2314
+ <a name =" userGetHeatmapData " ></a >
2315
+ # ** userGetHeatmapData**
2316
+ > List< ; UserHeatmapData> ; userGetHeatmapData(username)
2317
+
2318
+ Get a user' ; s heatmap
2319
+
2320
+ ### Example
2321
+ ``` java
2322
+ // Import classes:
2323
+ // import io.gitea.ApiClient;
2324
+ // import io.gitea.ApiException;
2325
+ // import io.gitea.Configuration;
2326
+ // import io.gitea.auth.*;
2327
+ // import io.gitea.api.UserApi;
2328
+
2329
+ ApiClient defaultClient = Configuration . getDefaultApiClient();
2330
+
2331
+ // Configure API key authorization: AccessToken
2332
+ ApiKeyAuth AccessToken = (ApiKeyAuth ) defaultClient. getAuthentication(" AccessToken" );
2333
+ AccessToken . setApiKey(" YOUR API KEY" );
2334
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2335
+ // AccessToken.setApiKeyPrefix("Token");
2336
+
2337
+ // Configure API key authorization: AuthorizationHeaderToken
2338
+ ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth ) defaultClient. getAuthentication(" AuthorizationHeaderToken" );
2339
+ AuthorizationHeaderToken . setApiKey(" YOUR API KEY" );
2340
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2341
+ // AuthorizationHeaderToken.setApiKeyPrefix("Token");
2342
+
2343
+ // Configure HTTP basic authorization: BasicAuth
2344
+ HttpBasicAuth BasicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" BasicAuth" );
2345
+ BasicAuth . setUsername(" YOUR USERNAME" );
2346
+ BasicAuth . setPassword(" YOUR PASSWORD" );
2347
+
2348
+ // Configure API key authorization: SudoHeader
2349
+ ApiKeyAuth SudoHeader = (ApiKeyAuth ) defaultClient. getAuthentication(" SudoHeader" );
2350
+ SudoHeader . setApiKey(" YOUR API KEY" );
2351
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2352
+ // SudoHeader.setApiKeyPrefix("Token");
2353
+
2354
+ // Configure API key authorization: SudoParam
2355
+ ApiKeyAuth SudoParam = (ApiKeyAuth ) defaultClient. getAuthentication(" SudoParam" );
2356
+ SudoParam . setApiKey(" YOUR API KEY" );
2357
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2358
+ // SudoParam.setApiKeyPrefix("Token");
2359
+
2360
+ // Configure API key authorization: Token
2361
+ ApiKeyAuth Token = (ApiKeyAuth ) defaultClient. getAuthentication(" Token" );
2362
+ Token . setApiKey(" YOUR API KEY" );
2363
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
2364
+ // Token.setApiKeyPrefix("Token");
2365
+
2366
+ UserApi apiInstance = new UserApi ();
2367
+ String username = " username_example" ; // String | username of user to get
2368
+ try {
2369
+ List<UserHeatmapData > result = apiInstance. userGetHeatmapData(username);
2370
+ System . out. println(result);
2371
+ } catch (ApiException e) {
2372
+ System . err. println(" Exception when calling UserApi#userGetHeatmapData" );
2373
+ e. printStackTrace();
2374
+ }
2375
+ ```
2376
+
2377
+ ### Parameters
2378
+
2379
+ Name | Type | Description | Notes
2380
+ ------------- | ------------- | ------------- | -------------
2381
+ ** username** | ** String** | username of user to get |
2382
+
2383
+ ### Return type
2384
+
2385
+ [ ** List< ; UserHeatmapData> ; ** ] ( UserHeatmapData.md )
2386
+
2387
+ ### Authorization
2388
+
2389
+ [ AccessToken] ( ../README.md#AccessToken ) , [ AuthorizationHeaderToken] ( ../README.md#AuthorizationHeaderToken ) , [ BasicAuth] ( ../README.md#BasicAuth ) , [ SudoHeader] ( ../README.md#SudoHeader ) , [ SudoParam] ( ../README.md#SudoParam ) , [ Token] ( ../README.md#Token )
2390
+
2304
2391
### HTTP request headers
2305
2392
2306
2393
- ** Content-Type** : application/json, text/plain
@@ -2714,7 +2801,7 @@ Name | Type | Description | Notes
2714
2801
2715
2802
<a name =" userListKeys " ></a >
2716
2803
# ** userListKeys**
2717
- > List< ; PublicKey> ; userListKeys(username)
2804
+ > List< ; PublicKey> ; userListKeys(username, fingerprint )
2718
2805
2719
2806
List the given user' ; s public keys
2720
2807
@@ -2766,8 +2853,9 @@ Token.setApiKey("YOUR API KEY");
2766
2853
2767
2854
UserApi apiInstance = new UserApi ();
2768
2855
String username = " username_example" ; // String | username of user
2856
+ String fingerprint = " fingerprint_example" ; // String | fingerprint of the key
2769
2857
try {
2770
- List<PublicKey > result = apiInstance. userListKeys(username);
2858
+ List<PublicKey > result = apiInstance. userListKeys(username, fingerprint );
2771
2859
System . out. println(result);
2772
2860
} catch (ApiException e) {
2773
2861
System . err. println(" Exception when calling UserApi#userListKeys" );
@@ -2780,6 +2868,7 @@ try {
2780
2868
Name | Type | Description | Notes
2781
2869
------------- | ------------- | ------------- | -------------
2782
2870
** username** | ** String** | username of user |
2871
+ ** fingerprint** | ** String** | fingerprint of the key | [ optional]
2783
2872
2784
2873
### Return type
2785
2874
0 commit comments