Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.51 KB

BillingCatalogApi.md

File metadata and controls

51 lines (32 loc) · 1.51 KB

Hostinger\BillingCatalogApi

All URIs are relative to https://developers.hostinger.com, except if the operation defines another base path.

Method HTTP request Description
getCatalogItemListV1() GET /api/billing/v1/catalog Get catalog item list

getCatalogItemListV1()

getCatalogItemListV1(): \Hostinger\Model\BillingV1CatalogCatalogItemResource[]

Get catalog item list

This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float 17.99 is displayed as integer 1799.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: apiToken
$config = Hostinger\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Hostinger\Api\BillingCatalogApi(config: $config);

try {
    $result = $apiInstance->getCatalogItemListV1();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingCatalogApi->getCatalogItemListV1: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\Hostinger\Model\BillingV1CatalogCatalogItemResource[]

[Back to top] [Back to API list] [Back to Model list] [Back to README]