question

johnbarlow1981 avatar image
0 Likes"
johnbarlow1981 asked

Python will only upload the last image using JSON

{ "Item":{ "PictureDetails": [ {"PictureURL": " https://static.pexels.com/photos/8700/wall-animal-dog-pet.jpg"}, {"PictureURL": " https://www.planwallpaper.com/static/images/desktop-year-of-the-tiger-images-wallpaper.jpg"}, {"PictureURL": " https://cdn.pixabay.com/photo/2017/05/19/07/34/teacup-2325722__340.jpg"} ], } } I don't understand why this does not work.. I have followed ebays api instructions and normally have no problem with most things. This is the first thing to not work.. no errors and always uploads the last image no problem.. weather it be 1, 6, or 12.. Am i missing something from ebay? is it me?
pythonjson
10 |600

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

1 Answer

·
brpar_6985 avatar image
0 Likes"
brpar_6985 answered

I believe the correct format is:

"PictureDetails": {"PictureURL": ["https://foo", "https://bar"]}
10 |600

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.