Skip to main content

NodeJS SDK Documentation

Installation

To install the Instafill Node.js SDK, use npm:

npm install instafill

Usage

Here is a basic example of how to use the Instafill Node.js SDK:

const InstaFillClient = require('instafill');

// Initialize the client
const client = new InstaFillClient('YOUR_API_KEY');

// Create a new profile
client.createProfile()
.then(profile => {
console.log('Profile created:', profile);

// Update profile name
return client.updateProfileName(profile.id, 'Updated Profile Name');
})
.then(updateResponse => {
console.log('Profile name updated:', updateResponse);

// Get profile details
return client.getProfile(updateResponse.id);
})
.then(profileDetails => {
console.log('Profile details:', profileDetails);
})
.catch(error => {
console.error('Error:', error);
});