Package Exports
- loops-client
- loops-client/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loops-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
loops-client
An unofficial javascript/typescript client for loops.so
Install
# yarn
npm install loops-client
# yarn
yarn add loops-clientUsage
import { LoopsClient } from 'loops-client';
const client = new LoopsClient('YOUR-API-KEY');
const response = await client.addContact({ email: 'email@example.com', firstName: 'foo', lastName: 'bar' });
if(response.success) {
// Yay
} else {
// Boo
}