All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getCoverCollection | GET /api/covers | Retrieves the collection of Cover resources. |
getCoverItem | GET /api/covers/{id} | Retrieves a Cover resource. |
postCoverCollection | POST /api/covers | Creates a Cover resource. |
\CoverServiceUpload\Model\CoverRead[] getCoverCollection()
Retrieves the collection of Cover 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\CoverApi(
// 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->getCoverCollection();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CoverApi->getCoverCollection: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\CoverServiceUpload\Model\CoverRead[]
- 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\CoverRead getCoverItem($id)
Retrieves a Cover 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\CoverApi(
// 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->getCoverItem($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CoverApi->getCoverItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\CoverServiceUpload\Model\CoverRead
- 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\CoverRead postCoverCollection($cover)
Creates a Cover 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\CoverApi(
// 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
);
$cover = "cover_example"; // string |
try {
$result = $apiInstance->postCoverCollection($cover);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CoverApi->postCoverCollection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cover | string****string | [optional] |
\CoverServiceUpload\Model\CoverRead
- Content-Type: multipart/form-data
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]