Note: This library is currently under development.
License: MIT
keap-js-client allows you to interact with Infusionsoft's CRM REST API. It provides TypeScript interfaces and helper functions for a strongly-typed and easier way to work with the API.
npm install keap-js-client
First, you will need to set the API key:
import { setApiKey } from 'keap-js-client';
setApiKey('Your-Keap-API-Key-Here');
Then, you can use the library to call functions:
import { updateAccountProfile, AccountProfile } from 'keap-js-client';
const newAccountInfo: AccountProfile = {
// ... (populate with new data)
};
(async () => {
try {
const updatedProfile = await updateAccountProfile(newAccountInfo);
console.log(updatedProfile);
} catch (error) {
console.error(error);
}
})();
This library provides TypeScript interfaces like ContactAddress
and AccountProfile
to help you maintain strong typing.
If you have any questions or suggestions, please feel free to reach out.