All URIs are relative to https://api.affixapi.com
Method | HTTP request | Description |
---|---|---|
Client | Get /2023-03-01/management/client | Client |
Disconnect | Post /2023-03-01/management/disconnect | Disconnect token |
Introspect | Get /2023-03-01/management/introspect | Inspect token |
Token | Post /2023-03-01/management/token | Create token |
Tokens | Get /2023-03-01/management/tokens | Tokens |
UpdateClient | Post /2023-03-01/management/client | Update client |
ClientResponse Client(ctx).Execute()
Client
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.Client(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.Client``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Client`: ClientResponse
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.Client`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiClientRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DisconnectResponse Disconnect(ctx).Execute()
Disconnect token
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.Disconnect(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.Disconnect``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Disconnect`: DisconnectResponse
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.Disconnect`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDisconnectRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IntrospectResponse Introspect(ctx).Execute()
Inspect token
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.Introspect(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.Introspect``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Introspect`: IntrospectResponse
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.Introspect`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiIntrospectRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenResponse Token(ctx).TokenRequest(tokenRequest).Execute()
Create token
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
tokenRequest := *openapiclient.NewTokenRequest("00000000-00000000-00000000-00000000", "ffffffff-ffffffff-ffffffff-ffffffff", "authorization_code", "Y2xpZW50IzkzMTU4MGQwLWYwYjctNGJiOC1iYmZmLWI4MTNlYzMxNTVjYXxjb2RlIzE1MmIwYjk3LTg2ZWMtNDZlNC1hZDUyLWY5ZTAxNzE2MDIwNAo=", "https://example.com") // TokenRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.Token(context.Background()).TokenRequest(tokenRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.Token``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Token`: TokenResponse
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.Token`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiTokenRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
tokenRequest | TokenRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]map[string]interface{} Tokens(ctx).Execute()
Tokens
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.Tokens(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.Tokens``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Tokens`: []map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.Tokens`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiTokensRequest struct via the builder pattern
[]map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClientResponse UpdateClient(ctx).ClientRequest(clientRequest).Execute()
Update client
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
clientRequest := *openapiclient.NewClientRequest([]string{"ClientSecret_example"}, []string{"RedirectUris_example"}, "Your App") // ClientRequest |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ManagementApi.UpdateClient(context.Background()).ClientRequest(clientRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementApi.UpdateClient``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateClient`: ClientResponse
fmt.Fprintf(os.Stdout, "Response from `ManagementApi.UpdateClient`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiUpdateClientRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
clientRequest | ClientRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]