← Sendoso

New Send Created from Sendoso API

Pipedream makes it easy to connect APIs for Sendoso and 1000+ other apps remarkably fast.

Trigger workflow on
New Send Created from the Sendoso API
Next, do this
Connect to 1000+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

Trigger a workflow on New Send Created with Sendoso API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Send Created trigger
    1. Connect your Sendoso account
    2. Configure Polling interval
  2. Add steps to connect to 1000+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Send Created from Sendoso API
Sendoso + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Send Created from Sendoso API
Sendoso + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Send Created from Sendoso API
Sendoso + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Send Created from Sendoso API
Sendoso + Airtable
 
Try it
Chat with OpenAI (ChatGPT) API on New Send Created from Sendoso API
Sendoso + OpenAI (ChatGPT)
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Send Created on Sendoso
Description:Emit new event when a new send is created. [See docs here](https://sendoso.docs.apiary.io/#reference/send-management/get-all-sent-giftsitems/get-sent-gifts)
Version:0.0.1
Key:sendoso-new-send

Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import common from "../common/base.mjs";

export default {
  ...common,
  type: "source",
  name: "New Send Created",
  key: "sendoso-new-send",
  description: "Emit new event when a new send is created. [See docs here](https://sendoso.docs.apiary.io/#reference/send-management/get-all-sent-giftsitems/get-sent-gifts)",
  version: "0.0.1",
  dedupe: "unique",
  props: {
    ...common.props,
    db: "$.service.db",
    timer: {
      label: "Polling interval",
      description: "Pipedream will poll the Sendoso API on this schedule",
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
  },
  methods: {
    ...common.methods,
    getDataToEmit({
      id, touch_name,
    }) {
      return {
        id: id,
        summary: this.getSummary(touch_name, id),
        ts: new Date().getTime(),
      };
    },
    getFieldId() {
      return "id";
    },
    getSummary(name, id) {
      return `New send created: ${name} (${id})`;
    },
    async proccessEvent() {
      const lastId = this._getLastId();
      const data = await this.sendoso.getSentGifts();

      const list = data.filter((item) => (item.id > lastId));

      list.reverse();
      this.emitEvent(list);
    },
    async startRun() {
      const data = await this.sendoso.getSentGifts();
      if (data.length > 20) data.length = 20;
      data.reverse();
      this.emitEvent(data);
    },
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SendososendosoappThis component uses the Sendoso app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Polling intervaltimer$.interface.timer

Pipedream will poll the Sendoso API on this schedule

Authentication

Sendoso uses OAuth authentication. When you connect your Sendoso account, Pipedream will open a popup window where you can sign into Sendoso and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Sendoso API.

Pipedream requests the following authorization scopes when you connect your account:

publicwriteupdate

About Sendoso

Sending platform

More Ways to Use Sendoso

Triggers

New Send Status Updated from the Sendoso API

Emit new event when a send status is updated. See docs here

 
Try it

Actions

Generate eGift Link with the Sendoso API

Generate a new E-Gift link See the docs here

 
Try it
Get Send Status with the Sendoso API

Track all sent gifts and retrieve analytics information regarding sent gift. See the docs here

 
Try it
Send A Physical Gift With Address Confirmation with the Sendoso API

Send a physical gift. See the docs here

 
Try it