All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| rmaCommentManagementV1AddCommentPost | POST /V1/returns/{id}/comments | |
| rmaCommentManagementV1CommentsListGet | GET /V1/returns/{id}/comments |
bool rmaCommentManagementV1AddCommentPost($id, $rmaCommentManagementV1AddCommentPostBody)
Add comment
<?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\RmaCommentManagementV1Api(
// 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 = "id_example"; // string |
$rmaCommentManagementV1AddCommentPostBody = new \Krak\MagentoApiClient\Model\RmaCommentManagementV1AddCommentPostBody(); // \Krak\MagentoApiClient\Model\RmaCommentManagementV1AddCommentPostBody |
try {
$result = $apiInstance->rmaCommentManagementV1AddCommentPost($id, $rmaCommentManagementV1AddCommentPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaCommentManagementV1Api->rmaCommentManagementV1AddCommentPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| rmaCommentManagementV1AddCommentPostBody | \Krak\MagentoApiClient\Model\RmaCommentManagementV1AddCommentPostBody | [optional] |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\RmaDataCommentSearchResultInterface rmaCommentManagementV1CommentsListGet($id)
Comments list
<?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\RmaCommentManagementV1Api(
// 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->rmaCommentManagementV1CommentsListGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaCommentManagementV1Api->rmaCommentManagementV1CommentsListGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
\Krak\MagentoApiClient\Model\RmaDataCommentSearchResultInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]