Skip to content

Optick-Labs/loops-client

Repository files navigation

loops-client

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

An unofficial javascript/typescript client for loops.so

Install

# yarn
npm install loops-client

# yarn
yarn add loops-client

Usage

import { LoopsClient } from 'loops-client';

const client = new LoopsClient('YOUR-API-KEY');
const response = await client.addContact({ email: '[email protected]', firstName: 'foo', lastName: 'bar' });
if(response.success) {
    // Yay
} else {
    // Boo
}