gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/docs/UsersApi.md (about)

     1  # \UsersApi
     2  
     3  All URIs are relative to *https://gitee.com/api*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**DeleteV5UserFollowingUsername**](UsersApi.md#DeleteV5UserFollowingUsername) | **Delete** /v5/user/following/{username} | 取消关注一个用户
     8  [**DeleteV5UserKeysId**](UsersApi.md#DeleteV5UserKeysId) | **Delete** /v5/user/keys/{id} | 删除一个公钥
     9  [**GetV5User**](UsersApi.md#GetV5User) | **Get** /v5/user | 获取授权用户的资料
    10  [**GetV5UserFollowers**](UsersApi.md#GetV5UserFollowers) | **Get** /v5/user/followers | 列出授权用户的关注者
    11  [**GetV5UserFollowing**](UsersApi.md#GetV5UserFollowing) | **Get** /v5/user/following | 列出授权用户正关注的用户
    12  [**GetV5UserFollowingUsername**](UsersApi.md#GetV5UserFollowingUsername) | **Get** /v5/user/following/{username} | 检查授权用户是否关注了一个用户
    13  [**GetV5UserKeys**](UsersApi.md#GetV5UserKeys) | **Get** /v5/user/keys | 列出授权用户的所有公钥
    14  [**GetV5UserKeysId**](UsersApi.md#GetV5UserKeysId) | **Get** /v5/user/keys/{id} | 获取一个公钥
    15  [**GetV5UserNamespace**](UsersApi.md#GetV5UserNamespace) | **Get** /v5/user/namespace | 获取授权用户的一个 Namespace
    16  [**GetV5UserNamespaces**](UsersApi.md#GetV5UserNamespaces) | **Get** /v5/user/namespaces | 列出授权用户所有的 Namespace
    17  [**GetV5UsersUsername**](UsersApi.md#GetV5UsersUsername) | **Get** /v5/users/{username} | 获取一个用户
    18  [**GetV5UsersUsernameFollowers**](UsersApi.md#GetV5UsersUsernameFollowers) | **Get** /v5/users/{username}/followers | 列出指定用户的关注者
    19  [**GetV5UsersUsernameFollowing**](UsersApi.md#GetV5UsersUsernameFollowing) | **Get** /v5/users/{username}/following | 列出指定用户正在关注的用户
    20  [**GetV5UsersUsernameFollowingTargetUser**](UsersApi.md#GetV5UsersUsernameFollowingTargetUser) | **Get** /v5/users/{username}/following/{target_user} | 检查指定用户是否关注目标用户
    21  [**GetV5UsersUsernameKeys**](UsersApi.md#GetV5UsersUsernameKeys) | **Get** /v5/users/{username}/keys | 列出指定用户的所有公钥
    22  [**PatchV5User**](UsersApi.md#PatchV5User) | **Patch** /v5/user | 更新授权用户的资料
    23  [**PostV5UserKeys**](UsersApi.md#PostV5UserKeys) | **Post** /v5/user/keys | 添加一个公钥
    24  [**PutV5UserFollowingUsername**](UsersApi.md#PutV5UserFollowingUsername) | **Put** /v5/user/following/{username} | 关注一个用户
    25  
    26  
    27  # **DeleteV5UserFollowingUsername**
    28  > DeleteV5UserFollowingUsername(ctx, username, optional)
    29  取消关注一个用户
    30  
    31  取消关注一个用户
    32  
    33  ### Required Parameters
    34  
    35  Name | Type | Description  | Notes
    36  ------------- | ------------- | ------------- | -------------
    37   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    38    **username** | **string**| 用户名(username/login) | 
    39   **optional** | ***DeleteV5UserFollowingUsernameOpts** | optional parameters | nil if no parameters
    40  
    41  ### Optional Parameters
    42  Optional parameters are passed through a pointer to a DeleteV5UserFollowingUsernameOpts struct
    43  
    44  Name | Type | Description  | Notes
    45  ------------- | ------------- | ------------- | -------------
    46  
    47   **accessToken** | **optional.String**| 用户授权码 | 
    48  
    49  ### Return type
    50  
    51   (empty response body)
    52  
    53  ### Authorization
    54  
    55  No authorization required
    56  
    57  ### HTTP request headers
    58  
    59   - **Content-Type**: application/json, multipart/form-data
    60   - **Accept**: application/json
    61  
    62  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
    63  
    64  # **DeleteV5UserKeysId**
    65  > DeleteV5UserKeysId(ctx, id, optional)
    66  删除一个公钥
    67  
    68  删除一个公钥
    69  
    70  ### Required Parameters
    71  
    72  Name | Type | Description  | Notes
    73  ------------- | ------------- | ------------- | -------------
    74   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    75    **id** | **int32**| 公钥 ID | 
    76   **optional** | ***DeleteV5UserKeysIdOpts** | optional parameters | nil if no parameters
    77  
    78  ### Optional Parameters
    79  Optional parameters are passed through a pointer to a DeleteV5UserKeysIdOpts struct
    80  
    81  Name | Type | Description  | Notes
    82  ------------- | ------------- | ------------- | -------------
    83  
    84   **accessToken** | **optional.String**| 用户授权码 | 
    85  
    86  ### Return type
    87  
    88   (empty response body)
    89  
    90  ### Authorization
    91  
    92  No authorization required
    93  
    94  ### HTTP request headers
    95  
    96   - **Content-Type**: application/json, multipart/form-data
    97   - **Accept**: application/json
    98  
    99  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   100  
   101  # **GetV5User**
   102  > User GetV5User(ctx, optional)
   103  获取授权用户的资料
   104  
   105  获取授权用户的资料
   106  
   107  ### Required Parameters
   108  
   109  Name | Type | Description  | Notes
   110  ------------- | ------------- | ------------- | -------------
   111   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   112   **optional** | ***GetV5UserOpts** | optional parameters | nil if no parameters
   113  
   114  ### Optional Parameters
   115  Optional parameters are passed through a pointer to a GetV5UserOpts struct
   116  
   117  Name | Type | Description  | Notes
   118  ------------- | ------------- | ------------- | -------------
   119   **accessToken** | **optional.String**| 用户授权码 | 
   120  
   121  ### Return type
   122  
   123  [**User**](User.md)
   124  
   125  ### Authorization
   126  
   127  No authorization required
   128  
   129  ### HTTP request headers
   130  
   131   - **Content-Type**: application/json, multipart/form-data
   132   - **Accept**: application/json
   133  
   134  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   135  
   136  # **GetV5UserFollowers**
   137  > []UserBasic GetV5UserFollowers(ctx, optional)
   138  列出授权用户的关注者
   139  
   140  列出授权用户的关注者
   141  
   142  ### Required Parameters
   143  
   144  Name | Type | Description  | Notes
   145  ------------- | ------------- | ------------- | -------------
   146   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   147   **optional** | ***GetV5UserFollowersOpts** | optional parameters | nil if no parameters
   148  
   149  ### Optional Parameters
   150  Optional parameters are passed through a pointer to a GetV5UserFollowersOpts struct
   151  
   152  Name | Type | Description  | Notes
   153  ------------- | ------------- | ------------- | -------------
   154   **accessToken** | **optional.String**| 用户授权码 | 
   155   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   156   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   157  
   158  ### Return type
   159  
   160  [**[]UserBasic**](UserBasic.md)
   161  
   162  ### Authorization
   163  
   164  No authorization required
   165  
   166  ### HTTP request headers
   167  
   168   - **Content-Type**: application/json, multipart/form-data
   169   - **Accept**: application/json
   170  
   171  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   172  
   173  # **GetV5UserFollowing**
   174  > []UserBasic GetV5UserFollowing(ctx, optional)
   175  列出授权用户正关注的用户
   176  
   177  列出授权用户正关注的用户
   178  
   179  ### Required Parameters
   180  
   181  Name | Type | Description  | Notes
   182  ------------- | ------------- | ------------- | -------------
   183   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   184   **optional** | ***GetV5UserFollowingOpts** | optional parameters | nil if no parameters
   185  
   186  ### Optional Parameters
   187  Optional parameters are passed through a pointer to a GetV5UserFollowingOpts struct
   188  
   189  Name | Type | Description  | Notes
   190  ------------- | ------------- | ------------- | -------------
   191   **accessToken** | **optional.String**| 用户授权码 | 
   192   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   193   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   194  
   195  ### Return type
   196  
   197  [**[]UserBasic**](UserBasic.md)
   198  
   199  ### Authorization
   200  
   201  No authorization required
   202  
   203  ### HTTP request headers
   204  
   205   - **Content-Type**: application/json, multipart/form-data
   206   - **Accept**: application/json
   207  
   208  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   209  
   210  # **GetV5UserFollowingUsername**
   211  > GetV5UserFollowingUsername(ctx, username, optional)
   212  检查授权用户是否关注了一个用户
   213  
   214  检查授权用户是否关注了一个用户
   215  
   216  ### Required Parameters
   217  
   218  Name | Type | Description  | Notes
   219  ------------- | ------------- | ------------- | -------------
   220   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   221    **username** | **string**| 用户名(username/login) | 
   222   **optional** | ***GetV5UserFollowingUsernameOpts** | optional parameters | nil if no parameters
   223  
   224  ### Optional Parameters
   225  Optional parameters are passed through a pointer to a GetV5UserFollowingUsernameOpts struct
   226  
   227  Name | Type | Description  | Notes
   228  ------------- | ------------- | ------------- | -------------
   229  
   230   **accessToken** | **optional.String**| 用户授权码 | 
   231  
   232  ### Return type
   233  
   234   (empty response body)
   235  
   236  ### Authorization
   237  
   238  No authorization required
   239  
   240  ### HTTP request headers
   241  
   242   - **Content-Type**: application/json, multipart/form-data
   243   - **Accept**: application/json
   244  
   245  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   246  
   247  # **GetV5UserKeys**
   248  > []SshKey GetV5UserKeys(ctx, optional)
   249  列出授权用户的所有公钥
   250  
   251  列出授权用户的所有公钥
   252  
   253  ### Required Parameters
   254  
   255  Name | Type | Description  | Notes
   256  ------------- | ------------- | ------------- | -------------
   257   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   258   **optional** | ***GetV5UserKeysOpts** | optional parameters | nil if no parameters
   259  
   260  ### Optional Parameters
   261  Optional parameters are passed through a pointer to a GetV5UserKeysOpts struct
   262  
   263  Name | Type | Description  | Notes
   264  ------------- | ------------- | ------------- | -------------
   265   **accessToken** | **optional.String**| 用户授权码 | 
   266   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   267   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   268  
   269  ### Return type
   270  
   271  [**[]SshKey**](SSHKey.md)
   272  
   273  ### Authorization
   274  
   275  No authorization required
   276  
   277  ### HTTP request headers
   278  
   279   - **Content-Type**: application/json, multipart/form-data
   280   - **Accept**: application/json
   281  
   282  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   283  
   284  # **GetV5UserKeysId**
   285  > SshKey GetV5UserKeysId(ctx, id, optional)
   286  获取一个公钥
   287  
   288  获取一个公钥
   289  
   290  ### Required Parameters
   291  
   292  Name | Type | Description  | Notes
   293  ------------- | ------------- | ------------- | -------------
   294   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   295    **id** | **int32**| 公钥 ID | 
   296   **optional** | ***GetV5UserKeysIdOpts** | optional parameters | nil if no parameters
   297  
   298  ### Optional Parameters
   299  Optional parameters are passed through a pointer to a GetV5UserKeysIdOpts struct
   300  
   301  Name | Type | Description  | Notes
   302  ------------- | ------------- | ------------- | -------------
   303  
   304   **accessToken** | **optional.String**| 用户授权码 | 
   305  
   306  ### Return type
   307  
   308  [**SshKey**](SSHKey.md)
   309  
   310  ### Authorization
   311  
   312  No authorization required
   313  
   314  ### HTTP request headers
   315  
   316   - **Content-Type**: application/json, multipart/form-data
   317   - **Accept**: application/json
   318  
   319  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   320  
   321  # **GetV5UserNamespace**
   322  > []Namespace GetV5UserNamespace(ctx, path, optional)
   323  获取授权用户的一个 Namespace
   324  
   325  获取授权用户的一个 Namespace
   326  
   327  ### Required Parameters
   328  
   329  Name | Type | Description  | Notes
   330  ------------- | ------------- | ------------- | -------------
   331   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   332    **path** | **string**| Namespace path | 
   333   **optional** | ***GetV5UserNamespaceOpts** | optional parameters | nil if no parameters
   334  
   335  ### Optional Parameters
   336  Optional parameters are passed through a pointer to a GetV5UserNamespaceOpts struct
   337  
   338  Name | Type | Description  | Notes
   339  ------------- | ------------- | ------------- | -------------
   340  
   341   **accessToken** | **optional.String**| 用户授权码 | 
   342  
   343  ### Return type
   344  
   345  [**[]Namespace**](Namespace.md)
   346  
   347  ### Authorization
   348  
   349  No authorization required
   350  
   351  ### HTTP request headers
   352  
   353   - **Content-Type**: application/json, multipart/form-data
   354   - **Accept**: application/json
   355  
   356  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   357  
   358  # **GetV5UserNamespaces**
   359  > []Namespace GetV5UserNamespaces(ctx, optional)
   360  列出授权用户所有的 Namespace
   361  
   362  列出授权用户所有的 Namespace
   363  
   364  ### Required Parameters
   365  
   366  Name | Type | Description  | Notes
   367  ------------- | ------------- | ------------- | -------------
   368   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   369   **optional** | ***GetV5UserNamespacesOpts** | optional parameters | nil if no parameters
   370  
   371  ### Optional Parameters
   372  Optional parameters are passed through a pointer to a GetV5UserNamespacesOpts struct
   373  
   374  Name | Type | Description  | Notes
   375  ------------- | ------------- | ------------- | -------------
   376   **accessToken** | **optional.String**| 用户授权码 | 
   377   **mode** | **optional.String**| 参与方式: project(所有参与仓库的namepsce)、intrant(所加入的namespace)、all(包含前两者),默认(intrant) | 
   378  
   379  ### Return type
   380  
   381  [**[]Namespace**](Namespace.md)
   382  
   383  ### Authorization
   384  
   385  No authorization required
   386  
   387  ### HTTP request headers
   388  
   389   - **Content-Type**: application/json, multipart/form-data
   390   - **Accept**: application/json
   391  
   392  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   393  
   394  # **GetV5UsersUsername**
   395  > User GetV5UsersUsername(ctx, username, optional)
   396  获取一个用户
   397  
   398  获取一个用户
   399  
   400  ### Required Parameters
   401  
   402  Name | Type | Description  | Notes
   403  ------------- | ------------- | ------------- | -------------
   404   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   405    **username** | **string**| 用户名(username/login) | 
   406   **optional** | ***GetV5UsersUsernameOpts** | optional parameters | nil if no parameters
   407  
   408  ### Optional Parameters
   409  Optional parameters are passed through a pointer to a GetV5UsersUsernameOpts struct
   410  
   411  Name | Type | Description  | Notes
   412  ------------- | ------------- | ------------- | -------------
   413  
   414   **accessToken** | **optional.String**| 用户授权码 | 
   415  
   416  ### Return type
   417  
   418  [**User**](User.md)
   419  
   420  ### Authorization
   421  
   422  No authorization required
   423  
   424  ### HTTP request headers
   425  
   426   - **Content-Type**: application/json, multipart/form-data
   427   - **Accept**: application/json
   428  
   429  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   430  
   431  # **GetV5UsersUsernameFollowers**
   432  > []UserBasic GetV5UsersUsernameFollowers(ctx, username, optional)
   433  列出指定用户的关注者
   434  
   435  列出指定用户的关注者
   436  
   437  ### Required Parameters
   438  
   439  Name | Type | Description  | Notes
   440  ------------- | ------------- | ------------- | -------------
   441   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   442    **username** | **string**| 用户名(username/login) | 
   443   **optional** | ***GetV5UsersUsernameFollowersOpts** | optional parameters | nil if no parameters
   444  
   445  ### Optional Parameters
   446  Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowersOpts struct
   447  
   448  Name | Type | Description  | Notes
   449  ------------- | ------------- | ------------- | -------------
   450  
   451   **accessToken** | **optional.String**| 用户授权码 | 
   452   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   453   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   454  
   455  ### Return type
   456  
   457  [**[]UserBasic**](UserBasic.md)
   458  
   459  ### Authorization
   460  
   461  No authorization required
   462  
   463  ### HTTP request headers
   464  
   465   - **Content-Type**: application/json, multipart/form-data
   466   - **Accept**: application/json
   467  
   468  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   469  
   470  # **GetV5UsersUsernameFollowing**
   471  > []UserBasic GetV5UsersUsernameFollowing(ctx, username, optional)
   472  列出指定用户正在关注的用户
   473  
   474  列出指定用户正在关注的用户
   475  
   476  ### Required Parameters
   477  
   478  Name | Type | Description  | Notes
   479  ------------- | ------------- | ------------- | -------------
   480   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   481    **username** | **string**| 用户名(username/login) | 
   482   **optional** | ***GetV5UsersUsernameFollowingOpts** | optional parameters | nil if no parameters
   483  
   484  ### Optional Parameters
   485  Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowingOpts struct
   486  
   487  Name | Type | Description  | Notes
   488  ------------- | ------------- | ------------- | -------------
   489  
   490   **accessToken** | **optional.String**| 用户授权码 | 
   491   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   492   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   493  
   494  ### Return type
   495  
   496  [**[]UserBasic**](UserBasic.md)
   497  
   498  ### Authorization
   499  
   500  No authorization required
   501  
   502  ### HTTP request headers
   503  
   504   - **Content-Type**: application/json, multipart/form-data
   505   - **Accept**: application/json
   506  
   507  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   508  
   509  # **GetV5UsersUsernameFollowingTargetUser**
   510  > GetV5UsersUsernameFollowingTargetUser(ctx, username, targetUser, optional)
   511  检查指定用户是否关注目标用户
   512  
   513  检查指定用户是否关注目标用户
   514  
   515  ### Required Parameters
   516  
   517  Name | Type | Description  | Notes
   518  ------------- | ------------- | ------------- | -------------
   519   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   520    **username** | **string**| 用户名(username/login) | 
   521    **targetUser** | **string**| 目标用户的用户名(username/login) | 
   522   **optional** | ***GetV5UsersUsernameFollowingTargetUserOpts** | optional parameters | nil if no parameters
   523  
   524  ### Optional Parameters
   525  Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowingTargetUserOpts struct
   526  
   527  Name | Type | Description  | Notes
   528  ------------- | ------------- | ------------- | -------------
   529  
   530  
   531   **accessToken** | **optional.String**| 用户授权码 | 
   532  
   533  ### Return type
   534  
   535   (empty response body)
   536  
   537  ### Authorization
   538  
   539  No authorization required
   540  
   541  ### HTTP request headers
   542  
   543   - **Content-Type**: application/json, multipart/form-data
   544   - **Accept**: application/json
   545  
   546  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   547  
   548  # **GetV5UsersUsernameKeys**
   549  > []SshKeyBasic GetV5UsersUsernameKeys(ctx, username, optional)
   550  列出指定用户的所有公钥
   551  
   552  列出指定用户的所有公钥
   553  
   554  ### Required Parameters
   555  
   556  Name | Type | Description  | Notes
   557  ------------- | ------------- | ------------- | -------------
   558   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   559    **username** | **string**| 用户名(username/login) | 
   560   **optional** | ***GetV5UsersUsernameKeysOpts** | optional parameters | nil if no parameters
   561  
   562  ### Optional Parameters
   563  Optional parameters are passed through a pointer to a GetV5UsersUsernameKeysOpts struct
   564  
   565  Name | Type | Description  | Notes
   566  ------------- | ------------- | ------------- | -------------
   567  
   568   **accessToken** | **optional.String**| 用户授权码 | 
   569   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   570   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   571  
   572  ### Return type
   573  
   574  [**[]SshKeyBasic**](SSHKeyBasic.md)
   575  
   576  ### Authorization
   577  
   578  No authorization required
   579  
   580  ### HTTP request headers
   581  
   582   - **Content-Type**: application/json, multipart/form-data
   583   - **Accept**: application/json
   584  
   585  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   586  
   587  # **PatchV5User**
   588  > User PatchV5User(ctx, optional)
   589  更新授权用户的资料
   590  
   591  更新授权用户的资料
   592  
   593  ### Required Parameters
   594  
   595  Name | Type | Description  | Notes
   596  ------------- | ------------- | ------------- | -------------
   597   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   598   **optional** | ***PatchV5UserOpts** | optional parameters | nil if no parameters
   599  
   600  ### Optional Parameters
   601  Optional parameters are passed through a pointer to a PatchV5UserOpts struct
   602  
   603  Name | Type | Description  | Notes
   604  ------------- | ------------- | ------------- | -------------
   605   **accessToken** | **optional.String**| 用户授权码 | 
   606   **name** | **optional.String**| 昵称 | 
   607   **blog** | **optional.String**| 微博链接 | 
   608   **weibo** | **optional.String**| 博客站点 | 
   609   **bio** | **optional.String**| 自我介绍 | 
   610  
   611  ### Return type
   612  
   613  [**User**](User.md)
   614  
   615  ### Authorization
   616  
   617  No authorization required
   618  
   619  ### HTTP request headers
   620  
   621   - **Content-Type**: application/json, multipart/form-data
   622   - **Accept**: application/json
   623  
   624  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   625  
   626  # **PostV5UserKeys**
   627  > SshKey PostV5UserKeys(ctx, key, title, optional)
   628  添加一个公钥
   629  
   630  添加一个公钥
   631  
   632  ### Required Parameters
   633  
   634  Name | Type | Description  | Notes
   635  ------------- | ------------- | ------------- | -------------
   636   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   637    **key** | **string**| 公钥内容 | 
   638    **title** | **string**| 公钥名称 | 
   639   **optional** | ***PostV5UserKeysOpts** | optional parameters | nil if no parameters
   640  
   641  ### Optional Parameters
   642  Optional parameters are passed through a pointer to a PostV5UserKeysOpts struct
   643  
   644  Name | Type | Description  | Notes
   645  ------------- | ------------- | ------------- | -------------
   646  
   647  
   648   **accessToken** | **optional.String**| 用户授权码 | 
   649  
   650  ### Return type
   651  
   652  [**SshKey**](SSHKey.md)
   653  
   654  ### Authorization
   655  
   656  No authorization required
   657  
   658  ### HTTP request headers
   659  
   660   - **Content-Type**: application/json, multipart/form-data
   661   - **Accept**: application/json
   662  
   663  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   664  
   665  # **PutV5UserFollowingUsername**
   666  > PutV5UserFollowingUsername(ctx, username, optional)
   667  关注一个用户
   668  
   669  关注一个用户
   670  
   671  ### Required Parameters
   672  
   673  Name | Type | Description  | Notes
   674  ------------- | ------------- | ------------- | -------------
   675   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   676    **username** | **string**| 用户名(username/login) | 
   677   **optional** | ***PutV5UserFollowingUsernameOpts** | optional parameters | nil if no parameters
   678  
   679  ### Optional Parameters
   680  Optional parameters are passed through a pointer to a PutV5UserFollowingUsernameOpts struct
   681  
   682  Name | Type | Description  | Notes
   683  ------------- | ------------- | ------------- | -------------
   684  
   685   **accessToken** | **optional.String**| 用户授权码 | 
   686  
   687  ### Return type
   688  
   689   (empty response body)
   690  
   691  ### Authorization
   692  
   693  No authorization required
   694  
   695  ### HTTP request headers
   696  
   697   - **Content-Type**: application/json, multipart/form-data
   698   - **Accept**: application/json
   699  
   700  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
   701