Skip to content

Latest commit

 

History

History
170 lines (115 loc) · 5.35 KB

File metadata and controls

170 lines (115 loc) · 5.35 KB

Krak\MagentoApiClient\CustomerGroupManagementV1Api

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

customerGroupManagementV1GetDefaultGroupGet

\Krak\MagentoApiClient\Model\CustomerDataGroupInterface customerGroupManagementV1GetDefaultGroupGet($storeId)

Get default customer group.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
storeId int

Return type

\Krak\MagentoApiClient\Model\CustomerDataGroupInterface

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

customerGroupManagementV1GetDefaultGroupGet_0

\Krak\MagentoApiClient\Model\CustomerDataGroupInterface customerGroupManagementV1GetDefaultGroupGet_0($storeId)

Get default customer group.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
storeId int [optional]

Return type

\Krak\MagentoApiClient\Model\CustomerDataGroupInterface

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

customerGroupManagementV1IsReadonlyGet

bool customerGroupManagementV1IsReadonlyGet($id)

Check if customer group can be deleted.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int

Return type

bool

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]