Skip to content

Misly16/loops-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package contains the code that we use to interact with Loops API, the module is free to use by anyone who has access to their platform.

It can be installed by using

npm install loops-js

The module includes every available API endpoint, an example of creating a new contact would be as followed

const Loops = require('loops-js');
const client = new Loops('apiKey');
await client.createContact('[email protected]', 'John', 'Doe', 'payingCustomer', 'example.com');

The following methods are available in the module

testApiKey();
createContact(email, firstName, lastName, userGroup, source);
updateContact(email, firstName, lastName, userGroup, source);
findContact(email);
sendEvent(email, eventName);

About

Node.JS client for interacting with loops.so

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published