Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 2.41 KB

File metadata and controls

75 lines (46 loc) · 2.41 KB

\TfaProviderAuthyAuthenticateAPI

All URIs are relative to http://example.com/rest/default

Method HTTP request Description
PostV1TfaProviderAuthyAuthenticate Post /V1/tfa/provider/authy/authenticate tfa/provider/authy/authenticate

PostV1TfaProviderAuthyAuthenticate

string PostV1TfaProviderAuthyAuthenticate(ctx).PostV1TfaProviderAuthyAuthenticateRequest(postV1TfaProviderAuthyAuthenticateRequest).Execute()

tfa/provider/authy/authenticate

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/Hevelop/go-client-magento"
)

func main() {
	postV1TfaProviderAuthyAuthenticateRequest := *openapiclient.NewPostV1TfaProviderAuthyAuthenticateRequest("Username_example", "Password_example", "Otp_example") // PostV1TfaProviderAuthyAuthenticateRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TfaProviderAuthyAuthenticateAPI.PostV1TfaProviderAuthyAuthenticate(context.Background()).PostV1TfaProviderAuthyAuthenticateRequest(postV1TfaProviderAuthyAuthenticateRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TfaProviderAuthyAuthenticateAPI.PostV1TfaProviderAuthyAuthenticate``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostV1TfaProviderAuthyAuthenticate`: string
	fmt.Fprintf(os.Stdout, "Response from `TfaProviderAuthyAuthenticateAPI.PostV1TfaProviderAuthyAuthenticate`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostV1TfaProviderAuthyAuthenticateRequest struct via the builder pattern

Name Type Description Notes
postV1TfaProviderAuthyAuthenticateRequest PostV1TfaProviderAuthyAuthenticateRequest

Return type

string

Authorization

No authorization required

HTTP request headers

  • 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]