/**
 * The namespaces provided by the SDK.
 */
use DTS\eBaySDK\Constants;
use DTS\eBaySDK\FileTransfer;
use DTS\eBaySDK\BulkDataExchange;
use DTS\eBaySDK\MerchantData;
/**
 * Create the service objects.
 *
 * This example uses both the File Transfer and Bulk Data Exchange services.
 *
 * For more information about creating a service object, see:
 * http://devbay.net/sdk/guides/getting-started/#service-object
 */
$exchangeService = new BulkDataExchange\Services\BulkDataExchangeService(array('authToken' => $config['sandbox']['userToken'], 'sandbox' => true));
$transferService = new FileTransfer\Services\FileTransferService(array('authToken' => $config['sandbox']['userToken'], 'sandbox' => true));
$merchantDataService = new MerchantData\Services\MerchantDataService();
/**
 * Before anything can be uploaded a request needs to be made to obtain a job ID and file reference ID.
 * eBay needs to know the job type and a way to identify it.
 */
$createUploadJobRequest = new BulkDataExchange\Types\CreateUploadJobRequest();
$createUploadJobRequest->uploadJobType = 'ReviseInventoryStatus';
$createUploadJobRequest->UUID = uniqid();
/**
 * Send the request to the createUploadJob service operation.
 *
 * For more information about calling a service operation, see:
 * http://devbay.net/sdk/guides/getting-started/#service-operation
 */
 * http://devbay.net/sdk/guides/application-keys/
 */
$config = (require __DIR__ . '/../configuration.php');
/**
 * The namespaces provided by the SDK.
 */
use DTS\eBaySDK\Constants;
use DTS\eBaySDK\BulkDataExchange\Services;
use DTS\eBaySDK\BulkDataExchange\Types;
/**
 * Create the service object.
 *
 * For more information about creating a service object, see:
 * http://devbay.net/sdk/guides/getting-started/#service-object
 */
$service = new Services\BulkDataExchangeService(array('authToken' => $config['sandbox']['userToken'], 'sandbox' => true));
/**
 * Create the request object.
 *
 * For more information about creating a request object, see:
 * http://devbay.net/sdk/guides/getting-started/#request-object
 */
$request = new Types\GetJobsRequest();
/**
 * Send the request to the getJobs service operation.
 *
 * For more information about calling a service operation, see:
 * http://devbay.net/sdk/guides/getting-started/#service-operation
 */
$response = $service->getJobs($request);
/**