WORK STILL IN PROGRESS
Antigro SDK for Node.js simplifies integration with the Antigro Designer API, enabling developers to quickly and efficiently implement key functionalities in their applications. With built-in support for authentication via JWT and streamlined HTTP client services.
Antigro API docs are available here LINK
You can check full API documentation generated by TypeDoc are available in: LINK
Install the library:
npm install antigro
import { Antigro } from './antigro';
const antigro = new Antigro('your-api-secret-key', 'prod');
import { Antigro } from './antigro';
const antigro = new Antigro('your-api-secret-key', 'prod');
try {
const design = await antigro.getClientDesign('design-id-1234');
console.log('Client Design:', design);
} catch (error) {
console.error('Error retrieving client design:', error);
}
import { Antigro } from './antigro';
const antigro = new Antigro('your-api-secret-key', 'prod');
try {
const newDesign = await antigro.createClientDesign({
name: 'My New Design',
templateId: 'template-id-1234',
productParameters: {
color: 'blue',
size: 'large',
},
});
console.log('Created Client Design:', newDesign);
} catch (error) {
console.error('Error creating client design:', error);
}
import { Antigro } from './antigro';
const antigro = new Antigro('your-api-secret-key', 'prod');
try {
const isUpdated = await antigro.updateClientDesign({
designId: 'design-id-1234',
status: 'PAID',
});
console.log('Design updated successfully:', isUpdated);
} catch (error) {
console.error('Error updating client design:', error);
}