All URIs are relative to https://api.basistheory.com
Method | HTTP request | Description |
---|---|---|
Create | Post /reactors | |
Delete | Delete /reactors/{id} | |
Get | Get /reactors | |
GetById | Get /reactors/{id} | |
Patch | Patch /reactors/{id} | |
React | Post /reactors/{id}/react | |
ReactAsync | Post /reactors/{id}/react-async | |
ResultGetById | Get /reactors/{id}/results/{requestId} | |
Update | Put /reactors/{id} |
Reactor Create(ctx).CreateReactorRequest(createReactorRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
createReactorRequest := *openapiclient.NewCreateReactorRequest("Name_example", "Code_example") // CreateReactorRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.Create(context.Background()).CreateReactorRequest(createReactorRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: Reactor
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.Create`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createReactorRequest | CreateReactorRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Delete(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ReactorsApi.Delete(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.Delete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReactorPaginatedList Get(ctx).Id(id).Name(name).Page(page).Start(start).Size(size).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := []string{"Inner_example"} // []string | (optional)
name := "name_example" // string | (optional)
page := int32(56) // int32 | (optional)
start := "start_example" // string | (optional)
size := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.Get(context.Background()).Id(id).Name(name).Page(page).Start(start).Size(size).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: ReactorPaginatedList
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.Get`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
id | []string | ||
name | string | ||
page | int32 | ||
start | string | ||
size | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Reactor GetById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.GetById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.GetById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetById`: Reactor
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.GetById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiGetByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Patch(ctx, id).PatchReactorRequest(patchReactorRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
patchReactorRequest := *openapiclient.NewPatchReactorRequest() // PatchReactorRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ReactorsApi.Patch(context.Background(), id).PatchReactorRequest(patchReactorRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.Patch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiPatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
patchReactorRequest | PatchReactorRequest | |
(empty response body)
- Content-Type: application/merge-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReactResponse React(ctx, id).ReactRequest(reactRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
reactRequest := *openapiclient.NewReactRequest() // ReactRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.React(context.Background(), id).ReactRequest(reactRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.React``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `React`: ReactResponse
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.React`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiReactRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
reactRequest | ReactRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReactResponse ReactAsync(ctx, id).ReactRequestAsync(reactRequestAsync).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
reactRequestAsync := *openapiclient.NewReactRequestAsync() // ReactRequestAsync |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.ReactAsync(context.Background(), id).ReactRequestAsync(reactRequestAsync).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.ReactAsync``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReactAsync`: ReactResponse
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.ReactAsync`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiReactAsyncRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
reactRequestAsync | ReactRequestAsync | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} ResultGetById(ctx, id, requestId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.ResultGetById(context.Background(), id, requestId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.ResultGetById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResultGetById`: interface{}
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.ResultGetById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ||
requestId | string |
Other parameters are passed through a pointer to a apiResultGetByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Reactor Update(ctx, id).UpdateReactorRequest(updateReactorRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
updateReactorRequest := *openapiclient.NewUpdateReactorRequest("Name_example", "Code_example") // UpdateReactorRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReactorsApi.Update(context.Background(), id).UpdateReactorRequest(updateReactorRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReactorsApi.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Update`: Reactor
fmt.Fprintf(os.Stdout, "Response from `ReactorsApi.Update`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateReactorRequest | UpdateReactorRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]