question

surf2ship avatar image
0 Likes"
surf2ship asked ·

My api retun very small images

Hello guys we are using ebay shopping api to find items and we are having a small issue . When we fetch products from the same code some products output very small images (something like 70x50) But some products out put quality images. Im not clear what is the wrong. For anyone refernces ill add my code here and if anyone could find the error please let me know. Im using Laraval -5.5 guzzlehttp . 6.3 This is the code we use to fetch items via ebay api $ebayAppId = env ( "EBAY_APP_ID" ) ; //FETCH KEY FROM THE ENV FILE $api = new Client() ; $res = $api -> get ( " http://open.api.ebay.com/shopping?"; . "callname=GetSingleItem&" . "IncludeSelector=Description,ItemSpecifics,Details&" . "ItemID=" . $listing -> platform_key . '&' . "appid=$ebayAppId&" . "version=567" ) ; $xml = simplexml_load_string ( $res -> getBody () ) ; $json = json_encode ( $xml ) ; $jsRes = json_decode ( $json , TRUE ) ; $ebayArray[ "Ebay_galleryImages" ] = $jsRes[ "Item" ][ "galleryImages" ] ; } Amazing thing is if I use Laravel dd method as below $jsRes[ "Item" ][ "galleryImages" ] It out put all the images in the browser But when I pass this as a json array return $ebayArray; And when I use this variable in the view there is only one image and its in very low quality Thanks
ebay-apiapi callimage-thumbnails
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
eram_developersupport avatar image
0 Likes"
eram_developersupport answered ·
Hi @surf2ship, Please go through this documentation: https://ebaydts.com/eBayKBDetails?KBid=2068 Hope the document will help you. Best Regards eBay Developer Support
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.