All URIs are relative to http://example.com/rest/default
| Method | HTTP request | Description |
|---|---|---|
| PostV1TfaProviderAuthyAuthenticateonetouch | Post /V1/tfa/provider/authy/authenticate-onetouch | tfa/provider/authy/authenticate-onetouch |
string PostV1TfaProviderAuthyAuthenticateonetouch(ctx).PostV1IntegrationAdminTokenRequest(postV1IntegrationAdminTokenRequest).Execute()
tfa/provider/authy/authenticate-onetouch
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Hevelop/go-client-magento"
)
func main() {
postV1IntegrationAdminTokenRequest := *openapiclient.NewPostV1IntegrationAdminTokenRequest("Username_example", "Password_example") // PostV1IntegrationAdminTokenRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TfaProviderAuthyAuthenticateOnetouchAPI.PostV1TfaProviderAuthyAuthenticateonetouch(context.Background()).PostV1IntegrationAdminTokenRequest(postV1IntegrationAdminTokenRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TfaProviderAuthyAuthenticateOnetouchAPI.PostV1TfaProviderAuthyAuthenticateonetouch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostV1TfaProviderAuthyAuthenticateonetouch`: string
fmt.Fprintf(os.Stdout, "Response from `TfaProviderAuthyAuthenticateOnetouchAPI.PostV1TfaProviderAuthyAuthenticateonetouch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPostV1TfaProviderAuthyAuthenticateonetouchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| postV1IntegrationAdminTokenRequest | PostV1IntegrationAdminTokenRequest |
string
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]