davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
349 stars 341 forks source link

Site ID not working #183

Closed doralb closed 6 years ago

doralb commented 6 years ago

Hello, I want to make a FindItemsByKeywordsRequest but it doesn't applies the given siteID. The current request is done like this

public function FindItemsByKeywordsRequest($keywords, $siteId){
        $service = new \DTS\eBaySDK\Finding\Services\FindingService([
            'credentials'=>[
                'appId'=>$this->appData['EBAY_APPNAME'],
                'certId'=>$this->appData['EBAY_CERTNAME'],
                'devId'=>$this->appData['EBAY_DEVNAME']
            ],
            'siteId'=> $siteId
        ]);

        $request = new \DTS\eBaySDK\Finding\Types\FindItemsAdvancedRequest();

        $response = $service->FindItemsAdvanced($request);
        $response = $response->toArray();
           return $response;
 }
michabbb commented 6 years ago

seems like people love to switch globalid with siteid 🤔

doralb commented 6 years ago

Thank you @michabbb :)