Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 5.73 KB

README.md

File metadata and controls

50 lines (34 loc) · 5.73 KB

Actions

(actions)

Available Operations

createTrigger

Triggers an action for a connection

Example Usage

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();

Parameters

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.

Response

Promise<components.CreateActionTriggerResponse>

Errors

Error Object Status Code Content Type
errors.Response400 400 application/json
errors.SDKError 4xx-5xx /