1.1.3 • Published 3 months ago

unified-ts-client v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

Unified.to Typescript Client

TypeScript client for the Unified API

Installing

Package manager

Using NPM:

$ npm install unified-ts-client

Using yarn:

$ yarn add unified-ts-client

Once the package is installed, you can import the library using import or require approach:

import Unified from 'unified-ts-client';

Example

import Unified, { ICrmContact, IMarketingMember } from 'unified-ts-client';

// copy contacts from a CRM and adds them as a Marketing Tech member
async function covert(unifiedToken: string, srcConnectionId: string, destConnectionId: string) {
    const unified = new Unified({ api_token: unifiedToken });

    const contacts = await unified.crm(srcConnectionId).contact.getAll();
    (contacts || []).forEach(async (contact) =>
        await unified.martech(destConnectionId).member.create(convertContact2Member(contact))
    );
}

function convertContact2Member(contact: ICrmContact): IMarketingMember {
    // TODO
}
1.1.3

3 months ago

1.1.2

3 months ago

1.1.1

3 months ago

1.1.0

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.12

4 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

10 months ago

1.0.1

11 months ago

1.0.0

1 year ago