PHP SDK
Pricing
Public price catalog for all billable resources
2 methods
GET
listPrices()
List all prices
Parameters
servicestring
- Filter by service
resource_typestring
- Filter by resource type
active_onlyboolean
- Only return active prices
Example
<?phpuse ByCloud\SDK\ByCloud;$client = new ByCloud(["token" => "YOUR_ACCESS_TOKEN"]);$result = $client->pricing->listPrices();print_r($result);
GET
getPrice()
Get price by SKU
Parameters
skustring
required- SKU identifier
Example
<?phpuse ByCloud\SDK\ByCloud;$client = new ByCloud(["token" => "YOUR_ACCESS_TOKEN"]);$result = $client->pricing->getPrice(['sku' => 'example']);print_r($result);