0.19.1 • Published 11 months ago
@speakeasy-sdks/supaglue v0.19.1
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
users
SDK Generated by Speakeasy
0.9.4
12 months ago
0.9.3
1 year ago
0.19.0
11 months ago
0.18.1
11 months ago
0.15.4
12 months ago
0.19.1
11 months ago
0.11.0
12 months ago
0.12.0
12 months ago
0.13.0
12 months ago
0.14.0
12 months ago
0.15.0
12 months ago
0.16.0
11 months ago
0.15.1
12 months ago
0.17.0
11 months ago
0.16.1
11 months ago
0.15.2
12 months ago
0.18.0
11 months ago
0.17.1
11 months ago
0.15.3
12 months ago
0.10.0
12 months ago
0.9.0
1 year ago
0.7.2
1 year ago
0.8.0
1 year ago
0.9.2
1 year ago
0.9.1
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago