@speakeasy-sdks/supaglue
TypeScript icon, indicating that this package has built-in type declarations

0.19.1 • Public • Published
Supaglue

Typescript SDK

The Open Source Unified API for CRM integrations

SDK Installation

NPM

npm add @speakeasy-sdks/supaglue

Yarn

yarn add @speakeasy-sdks/supaglue

SDK Example Usage

import { Supaglue } from "@speakeasy-sdks/supaglue";
import { CreateAccountResponse } from "@speakeasy-sdks/supaglue/dist/sdk/models/operations";
import { AddressType, PhoneNumberType } from "@speakeasy-sdks/supaglue/dist/sdk/models/shared";

const sdk = new Supaglue({
  security: {
    apiKeyAuth: "",
  },
});

sdk.accounts.create({
  requestBody: {
    model: {
      addresses: [
        {
          addressType: AddressType.Other,
          city: "San Francisco",
          country: "USA",
          postalCode: "94107",
          state: "CA",
          street1: "525 Brannan",
          street2: "null",
        },
        {
          addressType: AddressType.Billing,
          city: "San Francisco",
          country: "USA",
          postalCode: "94107",
          state: "CA",
          street1: "525 Brannan",
          street2: "null",
        },
        {
          addressType: AddressType.Shipping,
          city: "San Francisco",
          country: "USA",
          postalCode: "94107",
          state: "CA",
          street1: "525 Brannan",
          street2: "null",
        },
      ],
      customFields: {
        "nulla": "corrupti",
        "illum": "vel",
        "error": "deserunt",
      },
      description: "Integration API",
      industry: "API's",
      name: "Sample Customer",
      numberOfEmployees: 276000,
      ownerId: "9f3e97fd-4d5d-4efc-959d-bbebfac079f5",
      phoneNumbers: [
        {
          phoneNumber: "+14151234567",
          phoneNumberType: PhoneNumberType.Mobile,
        },
        {
          phoneNumber: "+14151234567",
          phoneNumberType: PhoneNumberType.Primary,
        },
      ],
      website: "https://supaglue.com/",
    },
  },
  xCustomerId: "my-customer-1",
  xProviderName: "salesforce",
}).then((res: CreateAccountResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Available Resources and Operations

accounts

contacts

leads

opportunities

  • create - Create opportunity
  • get - Get opportunity
  • list - List opportunities
  • search - Search Opportunities
  • update - Update opportunity

passthrough

  • send - Send passthrough request

users

SDK Generated by Speakeasy

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.19.1
    1
    • latest

Version History

Package Sidebar

Install

npm i @speakeasy-sdks/supaglue

Weekly Downloads

1

Version

0.19.1

License

none

Unpacked Size

456 kB

Total Files

127

Last publish

Collaborators

  • ccrumbaugh
  • ghaidar-speakeasy
  • ndimares
  • thomasrooneyspeakeasy
  • speakeasysimon
  • tristanspeakeasy
  • simplesagar