1.2.8 • Published 5 months ago

reseller-club-lib v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

ResellerClub API Integration

This project provides an integration with the ResellerClub API, allowing users to manage domains and customers easily.

Configuration

Before using the API, configure it with your credentials:

resellerClub.setConfig({
    apiKey: 'mKEOHY9TXV0fwgxoCb46yLUjPa7KsO1n',
    userId: '1276883',
    baseUrl: 'https://test.httpapi.com/api' // Ensure it's correctly set
});

Domain Management

To register a new domain, use the Domain class with the following parameters:

const domainInstance = new resellerClub.Domain();
const domainData = {
    domainName: 'domain.com',
    years: 1,
    ns: ['ns1.domain.com', 'ns2.domain.com'],
    customerId: 0,
    regContactId: 0,
    adminContactId: 0,
    techContactId: 0,
    billingContactId: 0,
    invoiceOption: 'KeepInvoice'
};

const newDomain = await domainInstance.registerDomain(domainData);

Customer Management

To create a new customer, use the following example:

const customerInstance = new resellerClub.Customer();
const customerData = {
    username: 'john.doe123@example.com',
    passwd: 'SecurePass123',
    name: 'John Doe',
    company: 'Example Ltd',
    addressLine1: '123 Example Street',
    city: 'New York',
    state: 'NY',
    zipcode: '10001',
    country: 'US',
    phoneCC: 1,
    phone: '1234567890',
    langPref: 'en'
};

// Ensure `signupCustomer` is the correct function name
const newCustomer = await customerInstance.signupCustomer(customerData);

API Documentation

For sending data and making API requests, please refer to the official ResellerClub API documentation.

Support

If you find this project useful and would like to support my work, you can do so via the link below:

1.2.8

5 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.9

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago