(actions)
- createTrigger - Triggers an action for a connection.
Triggers an action for a connection
import { Nango } from "@speakeasy-sdks/nango";
const nango = new Nango();
async function run() {
const result = await nango.actions.createTrigger("<value>", "<value>", {
actionName: "<value>",
});
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
connectionId |
string | ✔️ | The connection ID used to create the connection. |
providerConfigKey |
string | ✔️ | The integration ID used to create the connection (aka Unique Key). |
createActionTriggerRequest |
components.CreateActionTriggerRequest | ✔️ | N/A |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<components.CreateActionTriggerResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.Response400 | 400 | application/json |
errors.SDKError | 4xx-5xx | / |