Addition of the Asset manager end-points:
- Get an asset family
- Get a list of asset families
- Upsert an asset family
- Get an asset family attribute
- Get a list of asset family attributes
- Upsert an asset family attribute
- Get an asset family attribute option
- Get a list of asset family attribute options
- Upsert an asset family attribute option
- Upsert an asset
- Upsert a list of assets
- Delete an asset
Use PSR-7, PSR-17 and PSR-18 instead of HttpPlug.
- Change the type of the first parameter of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientBuilder::setHttpClient
fromHttp\Client\HttpClient
toPsr\Http\Client\ClientInterface
- Change the type of the first parameter of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientBuilder::setRequestFactory
fromHttp\Message\RequestFactory
toPsr\Http\Message\RequestFactoryInterface
- Change the type of the first parameter of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientBuilder::setStreamFactory
fromHttp\Message\StreamFactory
toPsr\Http\Message\StreamFactoryInterface
Factory implementations are necessary as dependency. For example, with Guzzle:
$ php composer.phar require akeneo/api-php-client-ee php-http/guzzle6-adapter:^2.0 http-interop/http-factory-guzzle:^1.0
- Add support for PHP 7.1
- Remove Upsert a list of reference entities (the method was doing nothing and doesn't exist in the API)
## Improvements
Addition of the reference entity end-points:
- Get a single reference entity
- Get a list of reference entities
- Upsert a single reference entity
- Upsert a list of reference entities
- Get a single reference entity record
- Get a list of reference entity records
- Upsert a single reference entity record
- Upsert a list of reference entity records
- Get a single reference entity attribute
- Get a list of reference entity attributes
- Upsert a single reference entity attribute
- Get a single reference entity attribute option
- Get a list of reference entity attribute options
- Upsert a single reference entity attribute option
- Download a reference entity media file
- Create a reference entity media file
-
Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getReferenceEntityApi
-
Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ReferenceEntityApiInterface
-
Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getReferenceEntityRecordApi
-
Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ReferenceEntityRecordApiInterface
-
Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getReferenceEntityAttributeApi
-
Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ReferenceEntityAttributeApiInterface
-
Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getReferenceEntityAttributeOptionApi
-
Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ReferenceEntityAttributeOptionApiInterface
-
Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getReferenceEntityMediaFileApi
-
Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ReferenceEntityMediaFileApiInterface
-
Change the response type from
Psr\Http\Message\StreamInterface
toPsr\Http\Message\ResponseInterface
forAkeneo\Pim\ApiClient\Api\MediaFileApiInterface::download
-
Change the response type from
Psr\Http\Message\StreamInterface
toPsr\Http\Message\ResponseInterface
forAkeneo\PimEnterprise\ApiClient\Api\AssetVariationFileApiInterface::downloadFromLocalizableAsset
-
Change the response type from
Psr\Http\Message\StreamInterface
toPsr\Http\Message\ResponseInterface
forAkeneo\PimEnterprise\ApiClient\Api\AssetVariationFileApiInterface::downloadFromNotLocalizableAsset
-
Change the response type from
Psr\Http\Message\StreamInterface
toPsr\Http\Message\ResponseInterface
forAkeneo\PimEnterprise\ApiClient\Api\AssetReferenceFileApiInterface::downloadFromNotLocalizableAsset
-
Change the response type from
Psr\Http\Message\StreamInterface
toPsr\Http\Message\ResponseInterface
forAkeneo\PimEnterprise\ApiClient\Api\AssetReferenceFileApiInterface::downloadFromLocalizableAsset
It allows to get the filename from the response, and also the Mime type.
To get the content you can do $response->getBody()->getContent()
(previously $response->getContent()
.
Drop support for PHP 5.6, PHP 7.0 and PHP 7.1
- API-602: Get a draft of product model and submit it for approval
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getProductModelDraftApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\ProductModelDraftApiInterface
- API-466: Get a single asset category
- API-468: Get a list of asset categories
- API-472: upsert a single asset category
- API-474: upsert a list of asset categories
- API-470: Create an asset category
- API-534-531: Get and upsert an asset tag
- API-538: Get a list of asset tags
- API-477: Get a single asset
- API-480: Get a list of assets
- API-482: Create an asset
- API-484: Upsert a single asset
- API-486: Upsert a list of assets
- API-560: Get and upload an asset reference file
- API-560: handle asset reference file upload response errors
- API-560: download an asset reference file
- API-561: Get and upload an asset variation file
- API-561: download an asset variation file
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getAssetCategoryApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\AssetCategoryApiInterface
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getAssetTagApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\AssetTagApiInterface
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getAssetApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\AssetApiInterface
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getAssetReferenceFileApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\AssetReferenceFileApiInterface
- Add method
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface::getAssetVariationFileApi
- Change the constructor of
Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClient
to addAkeneo\PimEnterprise\ApiClient\Api\AssetVariationFileApiInterface