All URIs are relative to https://api.authlete.com
Method | HTTP request | Description |
---|---|---|
GrantMApi | Post /api/gm | /api/gm API |
GMResponse GrantMApi(ctx).GMRequest(gMRequest).Execute()
/api/gm API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
gMRequest := *openapiclient.NewGMRequest() // GMRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GrantManagementEndpointApi.GrantMApi(context.Background()).GMRequest(gMRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GrantManagementEndpointApi.GrantMApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GrantMApi`: GMResponse
fmt.Fprintf(os.Stdout, "Response from `GrantManagementEndpointApi.GrantMApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGrantMApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
gMRequest | GMRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]