Releases: wildlink/wildlink-api-php
Releases · wildlink/wildlink-api-php
New features: resendCommissionCallback() and DisabledMerchantList object
- New DisabledMerchantList object allows you to fetch a list of all disabled merchants (to assist in syncing your local data store of merchants with Wildlink's
- New resendCommissionCallback($commission_id) method allows you to re-send a specific commission record (for use in development/testing your callback receiver)
Update device creation based on API changes
Device creation now returns:
- a "device_key" property instead of a UUID (same value as before, used in the same way)
- a "device_id" is now also returned and should be stored for later references (i.e. getting all commissions for your app will return device ID references in the return data, NOT device_keys)
New method: Get all commissions across devices
New in this version is the ability to getAppCommissionsSince() which takes a "modified since" date. This method is useful for syncing your backend to Wildfire's and should be seen as a complement to the Commission Callback feature.
bug fix
Added methods for getting all merchants
- New object for MerchantList to iterate through all enabled merchants
- Added getCurrentMerchant, hasNextMerchant, getNextMerchant methods to MerchantList
Example
$merchantList = new MerchantList($wfClient);
$merchantCounter = 0;
while ($merchant = $merchantList->getCurrentMerchant()){
out($merchantCounter);
out($merchant);
$merchantCounter++;
if ($merchantList->hasNextMerchant()){
$merchantList->getNextMerchant();
} else {
break;
}
}
Updates for v2 of REST web service
- Added support for getClicksBy[Day|Month|Year] and getVanityUrl
- Removed UUID local storage
Initial release
Initial release with support for taking app_id and secret via object instantiation.