Skip to content

Products API

Enzo Z edited this page Oct 26, 2024 · 4 revisions

Each method corresponds to products detail or action you can perform.

Example Usage

import { hmsClient } from 'hostmyservers.js';
const apiKey = 'api-key'
const productId = 'product-id'

const client = new hmsClient(apiKey);

client.products.getProductById(productId)
  .then(data => console.log(data))
  .catch(error => console.error('Error fetching user details:', error));

Products Methods

/products

  • getProductsList =>
  • getProductById =>
  • getId =>
  • getOfferId =>
  • getCreatedAt =>
  • getExpiredAt =>
  • getStatus =>
  • getOs =>
  • getIpv4 =>
  • getIpv6 =>
  • getVmid =>
  • getOsShort =>
  • getServerId =>
  • createProduct =>
Clone this wiki locally