macropage-sdk / ebay-trading-upload-images
a little helper to upload images to ebays EPS (eBay Picture Services)
Installs: 2 703
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- kint-php/kint: ^3.2
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-10-30 14:19:45 UTC
README
usage
$images[] = file_get_contents('/tmp/img1.png'); $images[] = file_get_contents('/tmp/img2.png'); //$images[] = 'this should not work'; <-- test this so see how things fail $EbayUploadImages = new upload_images([ 'app-name' => 'xxxxxxxx', 'cert-name' => 'xxxxxxxx', 'dev-name' => 'xxxxxxxx', 'siteid' => 77, 'auth-token' => 'xxxxxxxx' ]); $responses = $EbayUploadImages->upload($images); d($responses);
notice: siteid
needs to be numbers, if you use letters you might get very strange SSL errors!
what you (should) get
state
should cover the result of all uploads, if one failed, it will show you FALSE
with an array key error
.
some more config keys you can use:
- concurrency (number of parallel uploads)
- comp-level (X-EBAY-API-COMPATIBILITY-LEVEL)
- ExtensionInDays (see ebay docu)
You need help with the Ebay API?
hire me: info@macropage.de