*/
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 = 'AddFixedPriceItem';
$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
 */
print 'Requesting job Id from eBay...';
$createUploadJobResponse = $exchangeService->createUploadJob($createUploadJobRequest);
 */
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
 */
print 'Requesting job Id from eBay...';
$createUploadJobResponse = $exchangeService->createUploadJob($createUploadJobRequest);
 */
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 = 'SetShipmentTrackingInfo';
$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
 */
print 'Requesting job Id from eBay...';
$createUploadJobResponse = $exchangeService->createUploadJob($createUploadJobRequest);