All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| customerGroupManagementV1GetDefaultGroupGet | GET /V1/customerGroups/default/{storeId} | |
| customerGroupManagementV1GetDefaultGroupGet_0 | GET /V1/customerGroups/default | |
| customerGroupManagementV1IsReadonlyGet | GET /V1/customerGroups/{id}/permissions |
\Krak\MagentoApiClient\Model\CustomerDataGroupInterface customerGroupManagementV1GetDefaultGroupGet($storeId)
Get default customer group.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\CustomerGroupManagementV1Api(
// 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(),
$config
);
$storeId = 56; // int |
try {
$result = $apiInstance->customerGroupManagementV1GetDefaultGroupGet($storeId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerGroupManagementV1Api->customerGroupManagementV1GetDefaultGroupGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int |
\Krak\MagentoApiClient\Model\CustomerDataGroupInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\CustomerDataGroupInterface customerGroupManagementV1GetDefaultGroupGet_0($storeId)
Get default customer group.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\CustomerGroupManagementV1Api(
// 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(),
$config
);
$storeId = 56; // int |
try {
$result = $apiInstance->customerGroupManagementV1GetDefaultGroupGet_0($storeId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerGroupManagementV1Api->customerGroupManagementV1GetDefaultGroupGet_0: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| storeId | int | [optional] |
\Krak\MagentoApiClient\Model\CustomerDataGroupInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool customerGroupManagementV1IsReadonlyGet($id)
Check if customer group can be deleted.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\CustomerGroupManagementV1Api(
// 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(),
$config
);
$id = 56; // int |
try {
$result = $apiInstance->customerGroupManagementV1IsReadonlyGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerGroupManagementV1Api->customerGroupManagementV1IsReadonlyGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]