PHP code example of oilstone / bynder-php-sdk
1. Go to this page and download the library: Download oilstone/bynder-php-sdk library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oilstone / bynder-php-sdk example snippets
$bynder = new BynderClient(new Configuration(
$bynderDomain,
$redirectUri,
$clientId,
$clientSecret
));
$requestOptions = ['proxy' => 'http://MY-PROXY.URL:PORT_NUM'];
$bynderApi = BynderClient(new Configuration(
...,
$requestOptions
));
$assetBankManager = $bynder->getAssetBankManager();
$mediaList = $assetBankManager->getMediaList();
$mediaList = $assetBankManager->getMediaList(
[
'limit' => 2,
'type' => 'image'
]
);
getAssetBankManager();
getAuthorizationUrl();
getAccessToken();
getUsers();
getUser($userId, $query);
getCurrentUser();
getSecurityProfile($profileId);
getBrands();
getMediaList($query);
getMediaInfo($mediaId, $versions);
getMetaproperties();
getMetaproperty($propertyId);
getMetapropertyDependencies($propertyId);
getMetapropertyOptions($query);
getMetapropetryGlobalOptionDependencies();
getMetapropertyOptionDependencies($propertyId);
getMetapropertySpecificOptionDependencies($propertyId, $optionId, $query);
getTags();
getCategories();
getSmartfilters();
uploadFileAsync($data);
deleteMedia($mediaId);
modifyMedia($mediaId, array $data);
getDerivatives();
getMediaDownloadLocation($mediaId, $type = 'original');
getMediaDownloadLocationByVersion($mediaId, $version);
getMediaDownloadLocationForAssetItem($mediaId, $itemId, $hash = false);
createUsage($query);
getUsage($query);
deleteUsage($query);
getCollections($query);
getCollectionAssets($collectionId);
https://packagist.org/packages/bynder/bynder-php-sdk
bash
composer
bash
docker build -t bynder-php-sdk-tests
bash
docker run bynder-php-sdk-tests
bash
./vendor/bin/phpunit tests/UtilTest.php