All URIs are relative to https://api.billit.be
Method | HTTP request | Description |
---|---|---|
productGetProduct | GET /v1/products/{productID} | Get a specific product |
productGetProducts | GET /v1/products | Get a list of products |
productPostProduct | POST /v1/products | Create a new product of update an existing product |
\Swagger\Client\Model\Product productGetProduct($product_id)
Get a specific product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProductApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$product_id = 56; // int |
try {
$result = $apiInstance->productGetProduct($product_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->productGetProduct: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Product[] productGetProducts()
Get a list of products
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProductApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
try {
$result = $apiInstance->productGetProducts();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->productGetProducts: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\Product[]
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int productPostProduct($product)
Create a new product of update an existing product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProductApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$product = new \Swagger\Client\Model\Product(); // \Swagger\Client\Model\Product |
try {
$result = $apiInstance->productPostProduct($product);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->productPostProduct: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product | \Swagger\Client\Model\Product |
int
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]