Skip to content

mahd-dev/automato-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automato SDK

Automato SDK is a comprehensive toolkit designed to simplify interactions with the Automato platform's API. It provides a range of functionalities, from authentication to managing contact properties, making it easier for developers to integrate Automato's features into their applications.

Features

  • User Authentication
  • Contact Identification
  • Upsert Contact Properties

Installation

Install Automato SDK using npm:

npm install automato-sdk

Or using yarn:

yarn add automato-sdk

Usage

Here's a quick example to get you started:

import AutomatoSDK from 'automato-sdk';

const sdk = new AutomatoSDK("MY_SECRET_KEY", "https://api.automato.pro");

// Using the identify function
const props = [
    { key: "email", value_type: "string", value: "example@email.com" }
];

sdk.identify(props)
   .then(token => console.log("Token:", token))
   .catch(error => console.error("Error:", error));

API Reference

identify(props: Prop[], token?: string): Promise Use identify to upsert contact required fields and get token.

upsertContactProp(prop: Prop, token: string): Promise Create or update contact props

Contributing

Contributions are welcome! Please read our contributing guidelines to get started.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you have any questions or issues, please open an issue on the GitHub repository or contact contact@mahd.dev.

GitHub Repository

The source code for Automato SDK is available on GitHub. Visit our GitHub repository to access the code, report issues, or make contributions.

Additional Information

Official website :
https://automato.pro/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published