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.
- User Authentication
- Contact Identification
- Upsert Contact Properties
Install Automato SDK using npm:
npm install automato-sdk
Or using yarn:
yarn add automato-sdk
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));
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
Contributions are welcome! Please read our contributing guidelines to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or issues, please open an issue on the GitHub repository or contact contact@mahd.dev.
The source code for Automato SDK is available on GitHub. Visit our GitHub repository to access the code, report issues, or make contributions.
Official website :
https://automato.pro/