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

Use this: Generate and Download API SDKs for eBay #275

Closed CreateWithCoding closed 4 years ago

CreateWithCoding commented 4 years ago

Use this to download whatever eBay API you desire: https://sdk.intradesys.com/ebay_api_sdk_online_generator You are welcome!

michabbb commented 4 years ago

https://github.com/WsdlToPhp/PackageGenerator

perfectly works: and i don't make myself dependent on a company or a single person again

ChangePlaces commented 4 years ago

@michabbb I can't see any examples of making a simple call with it. This just gives an error "The web service eBayAPI is not properly configured or not found and is disabled."

        $options = array(
            \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => '/path/to/1131.wsdl',
            \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
            \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CACHE_WSDL => WSDL_CACHE_BOTH,
      );

        $gete = new \EbaySdk\ServiceType\Gete($options);
        $requestCredentials = new CustomSecurityHeaderType();
        $requestCredentials->setEBayAuthToken($token);
        $gete->setSoapHeaderRequesterCredentials($requestCredentials);
        $r = new GeteBayOfficialTimeRequestType();
        if ($gete->GeteBayOfficialTime($r) !== false) {
            print_r($gete->getResult());
        } else {
            print_r($gete->getLastError());
        }
michabbb commented 4 years ago

@ChangePlaces

https://github.com/michabbb/php-ebay-sdk/blob/php5/test.php