All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
deleteMaterialItem | DELETE /api/materials/{id} | Removes the Material resource. |
getMaterialCollection | GET /api/materials | Retrieves the collection of Material resources. |
getMaterialItem | GET /api/materials/{id} | Retrieves a Material resource. |
postMaterialCollection | POST /api/materials | Creates a Material resource. |
deleteMaterialItem($id)
Removes the Material resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
$config = CoverServiceUpload\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new CoverServiceUpload\Api\MaterialApi(
// 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 |
try {
$apiInstance->deleteMaterialItem($id);
} catch (Exception $e) {
echo 'Exception when calling MaterialApi->deleteMaterialItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\CoverServiceUpload\Model\MaterialRead[] getMaterialCollection()
Retrieves the collection of Material resources.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
$config = CoverServiceUpload\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new CoverServiceUpload\Api\MaterialApi(
// 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->getMaterialCollection();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MaterialApi->getMaterialCollection: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\CoverServiceUpload\Model\MaterialRead[]
- Content-Type: Not defined
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\CoverServiceUpload\Model\MaterialRead getMaterialItem($id)
Retrieves a Material resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
$config = CoverServiceUpload\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new CoverServiceUpload\Api\MaterialApi(
// 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 |
try {
$result = $apiInstance->getMaterialItem($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MaterialApi->getMaterialItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\CoverServiceUpload\Model\MaterialRead
- Content-Type: Not defined
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\CoverServiceUpload\Model\MaterialRead postMaterialCollection($body)
Creates a Material resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
$config = CoverServiceUpload\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new CoverServiceUpload\Api\MaterialApi(
// 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
);
$body = new \CoverServiceUpload\Model\MaterialWrite(); // \CoverServiceUpload\Model\MaterialWrite | The new Material resource
try {
$result = $apiInstance->postMaterialCollection($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MaterialApi->postMaterialCollection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \CoverServiceUpload\Model\MaterialWrite | The new Material resource | [optional] |
\CoverServiceUpload\Model\MaterialRead
- Content-Type: application/json, text/html
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]