Skip to content

About

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.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

antigro-sdk

codecov tests workflow

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

Installation

Install the library:

npm install antigro

Examples

Initialize Antigro API Client

import { Antigro } from './antigro';

const antigro = new Antigro('your-api-secret-key', 'prod');

Retrieve Client Design

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);
}

Create a New Client Design

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);
}

Update an Existing Client Design

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);
}

About

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.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages