All URIs are relative to https://gitee.com/api
Method | HTTP request | Description |
---|---|---|
DeleteV5UserFollowingUsername | Delete /v5/user/following/{username} | 取消关注一个用户 |
DeleteV5UserKeysId | Delete /v5/user/keys/{id} | 删除一个公钥 |
GetV5User | Get /v5/user | 获取授权用户的资料 |
GetV5UserFollowers | Get /v5/user/followers | 列出授权用户的关注者 |
GetV5UserFollowing | Get /v5/user/following | 列出授权用户正关注的用户 |
GetV5UserFollowingUsername | Get /v5/user/following/{username} | 检查授权用户是否关注了一个用户 |
GetV5UserKeys | Get /v5/user/keys | 列出授权用户的所有公钥 |
GetV5UserKeysId | Get /v5/user/keys/{id} | 获取一个公钥 |
GetV5UserNamespace | Get /v5/user/namespace | 获取授权用户的一个 Namespace |
GetV5UserNamespaces | Get /v5/user/namespaces | 列出授权用户所有的 Namespace |
GetV5UsersUsername | Get /v5/users/{username} | 获取一个用户 |
GetV5UsersUsernameFollowers | Get /v5/users/{username}/followers | 列出指定用户的关注者 |
GetV5UsersUsernameFollowing | Get /v5/users/{username}/following | 列出指定用户正在关注的用户 |
GetV5UsersUsernameFollowingTargetUser | Get /v5/users/{username}/following/{target_user} | 检查指定用户是否关注目标用户 |
GetV5UsersUsernameKeys | Get /v5/users/{username}/keys | 列出指定用户的所有公钥 |
PatchV5User | Patch /v5/user | 更新授权用户的资料 |
PostV5UserKeys | Post /v5/user/keys | 添加一个公钥 |
PutV5UserFollowingUsername | Put /v5/user/following/{username} | 关注一个用户 |
DeleteV5UserFollowingUsername(ctx, username, optional) 取消关注一个用户
取消关注一个用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *DeleteV5UserFollowingUsernameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5UserFollowingUsernameOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteV5UserKeysId(ctx, id, optional) 删除一个公钥
删除一个公钥
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | 公钥 ID | |
optional | *DeleteV5UserKeysIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DeleteV5UserKeysIdOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User GetV5User(ctx, optional) 获取授权用户的资料
获取授权用户的资料
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetV5UserOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserBasic GetV5UserFollowers(ctx, optional) 列出授权用户的关注者
列出授权用户的关注者
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetV5UserFollowersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserFollowersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 | |
page | optional.Int32 | 当前的页码 | [default to 1] |
perPage | optional.Int32 | 每页的数量,最大为 100 | [default to 20] |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserBasic GetV5UserFollowing(ctx, optional) 列出授权用户正关注的用户
列出授权用户正关注的用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetV5UserFollowingOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserFollowingOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 | |
page | optional.Int32 | 当前的页码 | [default to 1] |
perPage | optional.Int32 | 每页的数量,最大为 100 | [default to 20] |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetV5UserFollowingUsername(ctx, username, optional) 检查授权用户是否关注了一个用户
检查授权用户是否关注了一个用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *GetV5UserFollowingUsernameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserFollowingUsernameOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]SshKey GetV5UserKeys(ctx, optional) 列出授权用户的所有公钥
列出授权用户的所有公钥
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetV5UserKeysOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserKeysOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 | |
page | optional.Int32 | 当前的页码 | [default to 1] |
perPage | optional.Int32 | 每页的数量,最大为 100 | [default to 20] |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SshKey GetV5UserKeysId(ctx, id, optional) 获取一个公钥
获取一个公钥
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | 公钥 ID | |
optional | *GetV5UserKeysIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserKeysIdOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Namespace GetV5UserNamespace(ctx, path, optional) 获取授权用户的一个 Namespace
获取授权用户的一个 Namespace
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
path | string | Namespace path | |
optional | *GetV5UserNamespaceOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserNamespaceOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Namespace GetV5UserNamespaces(ctx, optional) 列出授权用户所有的 Namespace
列出授权用户所有的 Namespace
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetV5UserNamespacesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UserNamespacesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 | |
mode | optional.String | 参与方式: project(所有参与仓库的namepsce)、intrant(所加入的namespace)、all(包含前两者),默认(intrant) |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User GetV5UsersUsername(ctx, username, optional) 获取一个用户
获取一个用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *GetV5UsersUsernameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UsersUsernameOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserBasic GetV5UsersUsernameFollowers(ctx, username, optional) 列出指定用户的关注者
列出指定用户的关注者
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *GetV5UsersUsernameFollowersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowersOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UserBasic GetV5UsersUsernameFollowing(ctx, username, optional) 列出指定用户正在关注的用户
列出指定用户正在关注的用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *GetV5UsersUsernameFollowingOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowingOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetV5UsersUsernameFollowingTargetUser(ctx, username, targetUser, optional) 检查指定用户是否关注目标用户
检查指定用户是否关注目标用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
targetUser | string | 目标用户的用户名(username/login) | |
optional | *GetV5UsersUsernameFollowingTargetUserOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UsersUsernameFollowingTargetUserOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]SshKeyBasic GetV5UsersUsernameKeys(ctx, username, optional) 列出指定用户的所有公钥
列出指定用户的所有公钥
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *GetV5UsersUsernameKeysOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetV5UsersUsernameKeysOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User PatchV5User(ctx, optional) 更新授权用户的资料
更新授权用户的资料
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *PatchV5UserOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PatchV5UserOpts struct
Name | Type | Description | Notes |
---|---|---|---|
accessToken | optional.String | 用户授权码 | |
name | optional.String | 昵称 | |
blog | optional.String | 微博链接 | |
optional.String | 博客站点 | ||
bio | optional.String | 自我介绍 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SshKey PostV5UserKeys(ctx, key, title, optional) 添加一个公钥
添加一个公钥
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
key | string | 公钥内容 | |
title | string | 公钥名称 | |
optional | *PostV5UserKeysOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PostV5UserKeysOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PutV5UserFollowingUsername(ctx, username, optional) 关注一个用户
关注一个用户
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | 用户名(username/login) | |
optional | *PutV5UserFollowingUsernameOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PutV5UserFollowingUsernameOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.String| 用户授权码 |
(empty response body)
No authorization required
- Content-Type: application/json, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]