All URIs are relative to http://localhost/api/v3
Method | HTTP request | Description |
---|---|---|
Oauth2AccessTokensDestroy | Delete /oauth2/access_tokens/{id}/ | |
Oauth2AccessTokensList | Get /oauth2/access_tokens/ | |
Oauth2AccessTokensRetrieve | Get /oauth2/access_tokens/{id}/ | |
Oauth2AccessTokensUsedByList | Get /oauth2/access_tokens/{id}/used_by/ | |
Oauth2AuthorizationCodesDestroy | Delete /oauth2/authorization_codes/{id}/ | |
Oauth2AuthorizationCodesList | Get /oauth2/authorization_codes/ | |
Oauth2AuthorizationCodesRetrieve | Get /oauth2/authorization_codes/{id}/ | |
Oauth2AuthorizationCodesUsedByList | Get /oauth2/authorization_codes/{id}/used_by/ | |
Oauth2RefreshTokensDestroy | Delete /oauth2/refresh_tokens/{id}/ | |
Oauth2RefreshTokensList | Get /oauth2/refresh_tokens/ | |
Oauth2RefreshTokensRetrieve | Get /oauth2/refresh_tokens/{id}/ | |
Oauth2RefreshTokensUsedByList | Get /oauth2/refresh_tokens/{id}/used_by/ |
Oauth2AccessTokensDestroy(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Access Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AccessTokensDestroy(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AccessTokensDestroy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Access Token. |
Other parameters are passed through a pointer to a apiOauth2AccessTokensDestroyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedTokenModelList Oauth2AccessTokensList(ctx).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
page := int32(56) // int32 | A page number within the paginated result set. (optional)
pageSize := int32(56) // int32 | Number of results to return per page. (optional)
provider := int32(56) // int32 | (optional)
search := "search_example" // string | A search term. (optional)
user := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AccessTokensList(context.Background()).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AccessTokensList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AccessTokensList`: PaginatedTokenModelList
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AccessTokensList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiOauth2AccessTokensListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ordering | string | Which field to use when ordering the results. | |
page | int32 | A page number within the paginated result set. | |
pageSize | int32 | Number of results to return per page. | |
provider | int32 | ||
search | string | A search term. | |
user | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenModel Oauth2AccessTokensRetrieve(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Access Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AccessTokensRetrieve(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AccessTokensRetrieve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AccessTokensRetrieve`: TokenModel
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AccessTokensRetrieve`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Access Token. |
Other parameters are passed through a pointer to a apiOauth2AccessTokensRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UsedBy Oauth2AccessTokensUsedByList(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Access Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AccessTokensUsedByList(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AccessTokensUsedByList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AccessTokensUsedByList`: []UsedBy
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AccessTokensUsedByList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Access Token. |
Other parameters are passed through a pointer to a apiOauth2AccessTokensUsedByListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Oauth2AuthorizationCodesDestroy(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this Authorization Code.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AuthorizationCodesDestroy(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AuthorizationCodesDestroy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this Authorization Code. |
Other parameters are passed through a pointer to a apiOauth2AuthorizationCodesDestroyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedExpiringBaseGrantModelList Oauth2AuthorizationCodesList(ctx).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
page := int32(56) // int32 | A page number within the paginated result set. (optional)
pageSize := int32(56) // int32 | Number of results to return per page. (optional)
provider := int32(56) // int32 | (optional)
search := "search_example" // string | A search term. (optional)
user := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AuthorizationCodesList(context.Background()).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AuthorizationCodesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AuthorizationCodesList`: PaginatedExpiringBaseGrantModelList
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AuthorizationCodesList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiOauth2AuthorizationCodesListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ordering | string | Which field to use when ordering the results. | |
page | int32 | A page number within the paginated result set. | |
pageSize | int32 | Number of results to return per page. | |
provider | int32 | ||
search | string | A search term. | |
user | int32 |
PaginatedExpiringBaseGrantModelList
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ExpiringBaseGrantModel Oauth2AuthorizationCodesRetrieve(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this Authorization Code.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AuthorizationCodesRetrieve(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AuthorizationCodesRetrieve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AuthorizationCodesRetrieve`: ExpiringBaseGrantModel
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AuthorizationCodesRetrieve`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this Authorization Code. |
Other parameters are passed through a pointer to a apiOauth2AuthorizationCodesRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UsedBy Oauth2AuthorizationCodesUsedByList(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this Authorization Code.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2AuthorizationCodesUsedByList(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2AuthorizationCodesUsedByList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2AuthorizationCodesUsedByList`: []UsedBy
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2AuthorizationCodesUsedByList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this Authorization Code. |
Other parameters are passed through a pointer to a apiOauth2AuthorizationCodesUsedByListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Oauth2RefreshTokensDestroy(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Refresh Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2RefreshTokensDestroy(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2RefreshTokensDestroy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Refresh Token. |
Other parameters are passed through a pointer to a apiOauth2RefreshTokensDestroyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedTokenModelList Oauth2RefreshTokensList(ctx).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
page := int32(56) // int32 | A page number within the paginated result set. (optional)
pageSize := int32(56) // int32 | Number of results to return per page. (optional)
provider := int32(56) // int32 | (optional)
search := "search_example" // string | A search term. (optional)
user := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2RefreshTokensList(context.Background()).Ordering(ordering).Page(page).PageSize(pageSize).Provider(provider).Search(search).User(user).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2RefreshTokensList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2RefreshTokensList`: PaginatedTokenModelList
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2RefreshTokensList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiOauth2RefreshTokensListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ordering | string | Which field to use when ordering the results. | |
page | int32 | A page number within the paginated result set. | |
pageSize | int32 | Number of results to return per page. | |
provider | int32 | ||
search | string | A search term. | |
user | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenModel Oauth2RefreshTokensRetrieve(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Refresh Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2RefreshTokensRetrieve(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2RefreshTokensRetrieve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2RefreshTokensRetrieve`: TokenModel
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2RefreshTokensRetrieve`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Refresh Token. |
Other parameters are passed through a pointer to a apiOauth2RefreshTokensRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]UsedBy Oauth2RefreshTokensUsedByList(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | A unique integer value identifying this OAuth2 Refresh Token.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.Oauth2Api.Oauth2RefreshTokensUsedByList(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `Oauth2Api.Oauth2RefreshTokensUsedByList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Oauth2RefreshTokensUsedByList`: []UsedBy
fmt.Fprintf(os.Stdout, "Response from `Oauth2Api.Oauth2RefreshTokensUsedByList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | A unique integer value identifying this OAuth2 Refresh Token. |
Other parameters are passed through a pointer to a apiOauth2RefreshTokensUsedByListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]