ByCloud Docs
GuidesCLIAPISDK

PHP SDK

Pricing

Public price catalog for all billable resources

2 methods

GET

listPrices()

List all prices

Parameters

service

string

- Filter by service

resource_type

string

- Filter by resource type

active_only

boolean

- Only return active prices

Example

<?php
use ByCloud\SDK\ByCloud;
$client = new ByCloud(["token" => "YOUR_ACCESS_TOKEN"]);
$result = $client->pricing->listPrices();
print_r($result);
GET

getPrice()

Get price by SKU

Parameters

sku

string

required

- SKU identifier

Example

<?php
use ByCloud\SDK\ByCloud;
$client = new ByCloud(["token" => "YOUR_ACCESS_TOKEN"]);
$result = $client->pricing->getPrice([
'sku' => 'example'
]);
print_r($result);