https://github.com/michabbb/php-ebay-upload-images
a little helper to upload images in parallel to ebays EPS (eBay Picture Services)
https://github.com/michabbb/php-ebay-upload-images
ebay eps images parallel php sdk upload uploadsitehostedpictures
Last synced: over 1 year ago
JSON representation
a little helper to upload images in parallel to ebays EPS (eBay Picture Services)
- Host: GitHub
- URL: https://github.com/michabbb/php-ebay-upload-images
- Owner: michabbb
- License: mit
- Created: 2019-05-28T11:20:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T15:15:06.000Z (almost 6 years ago)
- Last Synced: 2024-04-25T13:02:07.481Z (about 2 years ago)
- Topics: ebay, eps, images, parallel, php, sdk, upload, uploadsitehostedpictures
- Language: PHP
- Homepage: https://twitter.com/michabbb
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# php-ebay-upload-images
### usage
```php
$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](https://developer.ebay.com/devzone/xml/docs/reference/ebay/UploadSiteHostedPictures.html#Request.ExtensionInDays))
### You need help with the Ebay API?
**hire me:** `info@macropage.de`
[](https://twitter.com/michabbb)
[](https://www.linkedin.com/in/macropage/)
[](https://xing.com/profile/Michael_Bladowski/cv)