# unified-ts-client

> Typescript client to access Unified.to's APIs

Latest version **1.1.3** (published 2024-02-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install unified-ts-client
pnpm add unified-ts-client
yarn add unified-ts-client
bun add unified-ts-client
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2024-02-15 |
| First published | 2023-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 414.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Unified API Inc. |
| Maintainers | alkasai, roymap |
| Keywords | api, unified, typescript |

## Links

- npm: https://www.npmjs.com/package/unified-ts-client
- Repository: https://github.com/unified-to/unified-node-client
- Homepage: https://github.com/unified-to/unified-ts-client#readme
- Issues: https://github.com/unified-to/unified-ts-client/issues
- npm.io page: https://npm.io/package/unified-ts-client

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.6.3

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2024-02-15
- 1.1.2 — 2024-02-13
- 1.1.1 — 2024-02-01
- 1.1.0 — 2024-01-05
- 1.0.12 — 2024-01-03
- 1.0.11 — 2024-01-03
- 1.0.10 — 2024-01-03
- 1.0.9 — 2023-12-21
- 1.0.8 — 2023-12-06
- 1.0.7 — 2023-11-14
- 1.0.6 — 2023-11-14
- 1.0.5 — 2023-11-14
- 1.0.4 — 2023-11-14
- 1.0.3 — 2023-11-14
- 1.0.2 — 2023-07-08
- … 2 more at https://npm.io/package/unified-ts-client/versions

## README

<h1>
    <a href="https://unified.to"><img src="https://unified.to/images/logo.png" /></a>
</h1>

# Unified.to Typescript Client

TypeScript client for the [Unified API](https://unified.to)

## Installing

### Package manager

Using NPM:

```bash
$ npm install unified-ts-client
```

Using yarn:

```bash
$ yarn add unified-ts-client
```

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

```ts
import Unified from 'unified-ts-client';
```

## Example

```ts
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
}
```

---
_Source: https://npm.io/package/unified-ts-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
