All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getProduct | GET /api/v1/products/{id} | Get all Products |
getProductGroups | GET /api/v1/products/groups | Get all ProductGroups |
getProducts | GET /api/v1/products | Get all Products |
getProductsByProductGroup | GET /api/v1/products/group/{productGroupId}/products | Get all Products |
\Membercare\Client\Model\Product getProduct($id, $token)
Get all Products
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\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()
);
$id = 789; // int |
$token = "token_example"; // string | access token
try {
$result = $apiInstance->getProduct($id, $token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->getProduct: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
token | string | access token |
\Membercare\Client\Model\Product
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\ProductGroup[] getProductGroups($token, $page, $page_size)
Get all ProductGroups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\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()
);
$token = "token_example"; // string | access token
$page = 1; // int |
$page_size = 50; // int |
try {
$result = $apiInstance->getProductGroups($token, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->getProductGroups: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
page | int | [optional] [default to 1] | |
page_size | int | [optional] [default to 50] |
\Membercare\Client\Model\ProductGroup[]
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\ProductPagedResult getProducts($token, $page, $page_size)
Get all Products
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\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()
);
$token = "token_example"; // string | access token
$page = 1; // int |
$page_size = 50; // int |
try {
$result = $apiInstance->getProducts($token, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->getProducts: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
token | string | access token | |
page | int | [optional] [default to 1] | |
page_size | int | [optional] [default to 50] |
\Membercare\Client\Model\ProductPagedResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Membercare\Client\Model\ProductPagedResult getProductsByProductGroup($product_group_id, $token, $page, $page_size)
Get all Products
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Membercare\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_group_id = 56; // int |
$token = "token_example"; // string | access token
$page = 1; // int |
$page_size = 50; // int |
try {
$result = $apiInstance->getProductsByProductGroup($product_group_id, $token, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->getProductsByProductGroup: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_group_id | int | ||
token | string | access token | |
page | int | [optional] [default to 1] | |
page_size | int | [optional] [default to 50] |
\Membercare\Client\Model\ProductPagedResult
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]