All URIs are relative to https://api.authlete.com
Method | HTTP request | Description |
---|---|---|
PushedAuthReqApi | Post /api/{serviceApiKey}/pushed_auth_req | /api/pushed_auth_req API |
PushedAuthorizationResponse PushedAuthReqApi(ctx, serviceApiKey).PushedAuthorizationRequest(pushedAuthorizationRequest).Execute()
/api/pushed_auth_req API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
serviceApiKey := "serviceApiKey_example" // string | serviceApiKey
pushedAuthorizationRequest := *openapiclient.NewPushedAuthorizationRequest("Parameters_example") // PushedAuthorizationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PushedAuthorizationEndpointApi.PushedAuthReqApi(context.Background(), serviceApiKey).PushedAuthorizationRequest(pushedAuthorizationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PushedAuthorizationEndpointApi.PushedAuthReqApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PushedAuthReqApi`: PushedAuthorizationResponse
fmt.Fprintf(os.Stdout, "Response from `PushedAuthorizationEndpointApi.PushedAuthReqApi`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serviceApiKey | string | serviceApiKey |
Other parameters are passed through a pointer to a apiPushedAuthReqApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
pushedAuthorizationRequest | PushedAuthorizationRequest | |
- 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]