All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| customerCustomerMetadataV1GetAllAttributesMetadataGet | GET /V1/attributeMetadata/customer | |
| customerCustomerMetadataV1GetAttributeMetadataGet | GET /V1/attributeMetadata/customer/attribute/{attributeCode} | |
| customerCustomerMetadataV1GetAttributesGet | GET /V1/attributeMetadata/customer/form/{formCode} | |
| customerCustomerMetadataV1GetCustomAttributesMetadataGet | GET /V1/attributeMetadata/customer/custom |
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[] customerCustomerMetadataV1GetAllAttributesMetadataGet()
Get all attribute metadata.
<?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\CustomerCustomerMetadataV1Api(
// 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
);
try {
$result = $apiInstance->customerCustomerMetadataV1GetAllAttributesMetadataGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerCustomerMetadataV1Api->customerCustomerMetadataV1GetAllAttributesMetadataGet: ', $e->getMessage(), PHP_EOL;
}
?>This endpoint does not need any parameter.
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface customerCustomerMetadataV1GetAttributeMetadataGet($attributeCode)
Retrieve attribute metadata.
<?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\CustomerCustomerMetadataV1Api(
// 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
);
$attributeCode = "attributeCode_example"; // string |
try {
$result = $apiInstance->customerCustomerMetadataV1GetAttributeMetadataGet($attributeCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerCustomerMetadataV1Api->customerCustomerMetadataV1GetAttributeMetadataGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| attributeCode | string |
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[] customerCustomerMetadataV1GetAttributesGet($formCode)
Retrieve all attributes filtered by form code
<?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\CustomerCustomerMetadataV1Api(
// 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
);
$formCode = "formCode_example"; // string |
try {
$result = $apiInstance->customerCustomerMetadataV1GetAttributesGet($formCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerCustomerMetadataV1Api->customerCustomerMetadataV1GetAttributesGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| formCode | string |
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[] customerCustomerMetadataV1GetCustomAttributesMetadataGet($dataInterfaceName)
Get custom attributes metadata for the given data interface.
<?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\CustomerCustomerMetadataV1Api(
// 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
);
$dataInterfaceName = "dataInterfaceName_example"; // string |
try {
$result = $apiInstance->customerCustomerMetadataV1GetCustomAttributesMetadataGet($dataInterfaceName);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerCustomerMetadataV1Api->customerCustomerMetadataV1GetCustomAttributesMetadataGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| dataInterfaceName | string | [optional] |
\Krak\MagentoApiClient\Model\CustomerDataAttributeMetadataInterface[]
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]