@speakeasy-sdks/supaglue
v0.19.1
Published
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/supaglue-labs/supaglue/main/docs/static/img/logo-dark.png"> <source media="(prefers-color-scheme: light)" srcset="https:/
Downloads
49
Maintainers
Keywords
Readme
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
- create - Create account
- get - Get account
- list - List accounts
- search - Search accounts
- update - Update account
contacts
- create - Create contact
- get - Get contact
- list - List contacts
- search - Search contacts
- update - Update contact
leads
opportunities
- create - Create opportunity
- get - Get opportunity
- list - List opportunities
- search - Search Opportunities
- update - Update opportunity
passthrough
- send - Send passthrough request