PHP code example of edos-engineering / reverb-marketplace
1. Go to this page and download the library: Download edos-engineering/reverb-marketplace 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/ */
edos-engineering / reverb-marketplace example snippets
use Edos\ReverbMarketplace\Environment;
use Edos\ReverbMarketplace\Facades\ReverbMarketplace;
$live = ReverbMarketplace::usingEnvironment(Environment::Production)->usingToken($productionToken);
use Edos\ReverbMarketplace\Webhooks\WebhookReceived;
Event::listen(function (WebhookReceived $event) {
// The payload is unsigned. Use it to learn which order changed, then
// read the truth back before acting on any amount or status.
$order = ReverbMarketplace::orders()->find($event->orderNumber());
});
use Edos\ReverbMarketplace\ReverbClient;
$reverb = ReverbClient::make($token, 'production');
$reverb->listings()->mine(['state' => 'all']);