All URIs are relative to https://api.authlete.com
Method | HTTP request | Description |
---|---|---|
AuthAuthorizationApi | Post /api/auth/authorization | /api/auth/authorization API |
AuthAuthorizationFailApi | Post /api/auth/authorization/fail | /api/auth/authorization/fail API |
AuthAuthorizationIssueApi | Post /api/auth/authorization/issue | /api/auth/authorization/issue API |
AuthorizationResponse AuthAuthorizationApi(ctx).AuthorizationRequest(authorizationRequest).Execute()
/api/auth/authorization API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
authorizationRequest := *openapiclient.NewAuthorizationRequest("Parameters_example") // AuthorizationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuthorizationEndpointApi.AuthAuthorizationApi(context.Background()).AuthorizationRequest(authorizationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationEndpointApi.AuthAuthorizationApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthAuthorizationApi`: AuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `AuthorizationEndpointApi.AuthAuthorizationApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuthAuthorizationApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorizationRequest | AuthorizationRequest |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationFailResponse AuthAuthorizationFailApi(ctx).AuthorizationFailRequest(authorizationFailRequest).Execute()
/api/auth/authorization/fail API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
authorizationFailRequest := *openapiclient.NewAuthorizationFailRequest("Ticket_example", "Reason_example") // AuthorizationFailRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuthorizationEndpointApi.AuthAuthorizationFailApi(context.Background()).AuthorizationFailRequest(authorizationFailRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationEndpointApi.AuthAuthorizationFailApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthAuthorizationFailApi`: AuthorizationFailResponse
fmt.Fprintf(os.Stdout, "Response from `AuthorizationEndpointApi.AuthAuthorizationFailApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuthAuthorizationFailApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorizationFailRequest | AuthorizationFailRequest |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AuthorizationIssueResponse AuthAuthorizationIssueApi(ctx).AuthorizationIssueRequest(authorizationIssueRequest).Execute()
/api/auth/authorization/issue API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
authorizationIssueRequest := *openapiclient.NewAuthorizationIssueRequest("Ticket_example", "Subject_example") // AuthorizationIssueRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuthorizationEndpointApi.AuthAuthorizationIssueApi(context.Background()).AuthorizationIssueRequest(authorizationIssueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationEndpointApi.AuthAuthorizationIssueApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthAuthorizationIssueApi`: AuthorizationIssueResponse
fmt.Fprintf(os.Stdout, "Response from `AuthorizationEndpointApi.AuthAuthorizationIssueApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuthAuthorizationIssueApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
authorizationIssueRequest | AuthorizationIssueRequest |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]