55 KiB
\UserApi
All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateCurrentUserRepo | Post /user/repos | Create a repository |
UserAddEmail | Post /user/emails | Add email addresses |
UserCheckFollowing | Get /users/{follower}/following/{followee} | Check if one user is following another user |
UserCreateToken | Post /users/{username}/tokens | Create an access token |
UserCurrentCheckFollowing | Get /user/following/{username} | Check whether a user is followed by the authenticated user |
UserCurrentCheckStarring | Get /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo |
UserCurrentDeleteFollow | Delete /user/following/{username} | Unfollow a user |
UserCurrentDeleteGPGKey | Delete /user/gpg_keys/{id} | Remove a GPG key |
UserCurrentDeleteKey | Delete /user/keys/{id} | Delete a public key |
UserCurrentDeleteStar | Delete /user/starred/{owner}/{repo} | Unstar the given repo |
UserCurrentGetGPGKey | Get /user/gpg_keys/{id} | Get a GPG key |
UserCurrentGetKey | Get /user/keys/{id} | Get a public key |
UserCurrentListFollowers | Get /user/followers | List the authenticated user's followers |
UserCurrentListFollowing | Get /user/following | List the users that the authenticated user is following |
UserCurrentListGPGKeys | Get /user/gpg_keys | List the authenticated user's GPG keys |
UserCurrentListKeys | Get /user/keys | List the authenticated user's public keys |
UserCurrentListRepos | Get /user/repos | List the repos that the authenticated user owns or has access to |
UserCurrentListStarred | Get /user/starred | The repos that the authenticated user has starred |
UserCurrentListSubscriptions | Get /user/subscriptions | List repositories watched by the authenticated user |
UserCurrentPostGPGKey | Post /user/gpg_keys | Create a GPG key |
UserCurrentPostKey | Post /user/keys | Create a public key |
UserCurrentPutFollow | Put /user/following/{username} | Follow a user |
UserCurrentPutStar | Put /user/starred/{owner}/{repo} | Star the given repo |
UserCurrentTrackedTimes | Get /user/times | List the current user's tracked times |
UserDeleteAccessToken | Delete /users/{username}/tokens/{token} | delete an access token |
UserDeleteEmail | Delete /user/emails | Delete email addresses |
UserGet | Get /users/{username} | Get a user |
UserGetCurrent | Get /user | Get the authenticated user |
UserGetHeatmapData | Get /users/{username}/heatmap | Get a user's heatmap |
UserGetStopWatches | Get /user/stopwatches | Get list of all existing stopwatches |
UserGetTokens | Get /users/{username}/tokens | List the authenticated user's access tokens |
UserListEmails | Get /user/emails | List the authenticated user's email addresses |
UserListFollowers | Get /users/{username}/followers | List the given user's followers |
UserListFollowing | Get /users/{username}/following | List the users that the given user is following |
UserListGPGKeys | Get /users/{username}/gpg_keys | List the given user's GPG keys |
UserListKeys | Get /users/{username}/keys | List the given user's public keys |
UserListRepos | Get /users/{username}/repos | List the repos owned by the given user |
UserListStarred | Get /users/{username}/starred | The repos that the given user has starred |
UserListSubscriptions | Get /users/{username}/subscriptions | List the repositories watched by a user |
UserListTeams | Get /user/teams | List all the teams a user belongs to |
UserSearch | Get /users/search | Search for users |
CreateCurrentUserRepo
Repository CreateCurrentUserRepo(ctx, optional) Create a repository
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *CreateCurrentUserRepoOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateCurrentUserRepoOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Interface of CreateRepoOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserAddEmail
[]Email UserAddEmail(ctx, optional) Add email addresses
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserAddEmailOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserAddEmailOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Interface of CreateEmailOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCheckFollowing
UserCheckFollowing(ctx, follower, followee) Check if one user is following another user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
follower | string | username of following user | |
followee | string | username of followed user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCreateToken
UserCreateToken(ctx, username, optional) Create an access token
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserCreateTokenOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCreateTokenOpts struct
Name | Type | Description | Notes |
---|
accessToken | optional.Interface of AccessToken| |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentCheckFollowing
UserCurrentCheckFollowing(ctx, username) Check whether a user is followed by the authenticated user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of followed user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentCheckStarring
UserCurrentCheckStarring(ctx, owner, repo) Whether the authenticated is starring the repo
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | owner of the repo | |
repo | string | name of the repo |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentDeleteFollow
UserCurrentDeleteFollow(ctx, username) Unfollow a user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user to unfollow |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentDeleteGPGKey
UserCurrentDeleteGPGKey(ctx, id) Remove a GPG key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of key to delete |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentDeleteKey
UserCurrentDeleteKey(ctx, id) Delete a public key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of key to delete |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentDeleteStar
UserCurrentDeleteStar(ctx, owner, repo) Unstar the given repo
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | owner of the repo to unstar | |
repo | string | name of the repo to unstar |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentGetGPGKey
GpgKey UserCurrentGetGPGKey(ctx, id) Get a GPG key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of key to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentGetKey
PublicKey UserCurrentGetKey(ctx, id) Get a public key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of key to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListFollowers
[]User UserCurrentListFollowers(ctx, optional) List the authenticated user's followers
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListFollowersOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListFollowersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListFollowing
[]User UserCurrentListFollowing(ctx, optional) List the users that the authenticated user is following
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListFollowingOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListFollowingOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListGPGKeys
[]GpgKey UserCurrentListGPGKeys(ctx, optional) List the authenticated user's GPG keys
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListGPGKeysOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListGPGKeysOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListKeys
[]PublicKey UserCurrentListKeys(ctx, optional) List the authenticated user's public keys
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListKeysOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListKeysOpts struct
Name | Type | Description | Notes |
---|---|---|---|
fingerprint | optional.String | fingerprint of the key | |
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListRepos
[]Repository UserCurrentListRepos(ctx, optional) List the repos that the authenticated user owns or has access to
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListReposOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListReposOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListStarred
[]Repository UserCurrentListStarred(ctx, optional) The repos that the authenticated user has starred
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListStarredOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListStarredOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentListSubscriptions
[]Repository UserCurrentListSubscriptions(ctx, optional) List repositories watched by the authenticated user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentListSubscriptionsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentListSubscriptionsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentPostGPGKey
GpgKey UserCurrentPostGPGKey(ctx, optional) Create a GPG key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentPostGPGKeyOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentPostGPGKeyOpts struct
Name | Type | Description | Notes |
---|---|---|---|
form | optional.Interface of CreateGpgKeyOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentPostKey
PublicKey UserCurrentPostKey(ctx, optional) Create a public key
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentPostKeyOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentPostKeyOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Interface of CreateKeyOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentPutFollow
UserCurrentPutFollow(ctx, username) Follow a user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user to follow |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentPutStar
UserCurrentPutStar(ctx, owner, repo) Star the given repo
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
owner | string | owner of the repo to star | |
repo | string | name of the repo to star |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCurrentTrackedTimes
[]TrackedTime UserCurrentTrackedTimes(ctx, optional) List the current user's tracked times
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserCurrentTrackedTimesOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserCurrentTrackedTimesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
since | optional.Time | Only show times updated after the given time. This is a timestamp in RFC 3339 format | |
before | optional.Time | Only show times updated before the given time. This is a timestamp in RFC 3339 format |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserDeleteAccessToken
UserDeleteAccessToken(ctx, username, token) delete an access token
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
token | int64 | token to be deleted |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserDeleteEmail
UserDeleteEmail(ctx, optional) Delete email addresses
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserDeleteEmailOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserDeleteEmailOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Interface of DeleteEmailOption |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGet
User UserGet(ctx, username) Get a user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGetCurrent
User UserGetCurrent(ctx, ) Get the authenticated user
Required Parameters
This endpoint does not need any parameter.
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGetHeatmapData
[]UserHeatmapData UserGetHeatmapData(ctx, username) Get a user's heatmap
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGetStopWatches
[]StopWatch UserGetStopWatches(ctx, optional) Get list of all existing stopwatches
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserGetStopWatchesOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserGetStopWatchesOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGetTokens
[]AccessToken UserGetTokens(ctx, username, optional) List the authenticated user's access tokens
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserGetTokensOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserGetTokensOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListEmails
[]Email UserListEmails(ctx, ) List the authenticated user's email addresses
Required Parameters
This endpoint does not need any parameter.
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListFollowers
[]User UserListFollowers(ctx, username, optional) List the given user's followers
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListFollowersOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListFollowersOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListFollowing
[]User UserListFollowing(ctx, username, optional) List the users that the given user is following
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListFollowingOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListFollowingOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListGPGKeys
[]GpgKey UserListGPGKeys(ctx, username, optional) List the given user's GPG keys
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListGPGKeysOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListGPGKeysOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListKeys
[]PublicKey UserListKeys(ctx, username, optional) List the given user's public keys
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListKeysOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListKeysOpts struct
Name | Type | Description | Notes |
---|
fingerprint | optional.String| fingerprint of the key | page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListRepos
[]Repository UserListRepos(ctx, username, optional) List the repos owned by the given user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListReposOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListReposOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListStarred
[]Repository UserListStarred(ctx, username, optional) The repos that the given user has starred
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *UserListStarredOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListStarredOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListSubscriptions
[]Repository UserListSubscriptions(ctx, username, optional) List the repositories watched by a user
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of the user | |
optional | *UserListSubscriptionsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListSubscriptionsOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserListTeams
[]Team UserListTeams(ctx, optional) List all the teams a user belongs to
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserListTeamsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserListTeamsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserSearch
InlineResponse2001 UserSearch(ctx, optional) Search for users
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *UserSearchOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a UserSearchOpts struct
Name | Type | Description | Notes |
---|---|---|---|
q | optional.String | keyword | |
uid | optional.Int64 | ID of the user to search for | |
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]