Closed webdev36 closed 7 years ago
Hi
So... any ideas about this? We need multiple PictureURL's, but a Hash can't have duplicate keys. If I try an array like:
PictureURL: ['url1', 'url2']
you have it doing:
<PictureURL>url1url2</PictureURL>
What we need is
<PictureURL>url1</PictureURL><PictureURL>url2</PictureURL>
Ah. I found a solution using Hash#compare_by_identity to allow duplicate keys.
Hi.I also encountered the same problem. That's the following manner, it will become a type error.
"PictureDetails"=> [{"GalleryType"=>["Gallery"], "GalleryURL"=>["http://i.ebayimg.com/00/s/NDM2WDUwMA==/z/TIsAAOSwHMJYHCQc/$_3.JPG"], "PictureURL"=>[{"url"=>"http://i.ebayimg.com/00/s/NTAwWDMzNw==/z/06EAAOSw5cNYHCQd/$_3.JPG", "url2"=>"http://i.ebayimg.com/00/s/NTAwWDMzNA==/z/lNMAAOSwKOJYHCQl/$_3.JPG"}]}]}]
Hi @neverender, @yasuhisa1984 (sorry about the late response), is this still an issue for you folks?
@bjjb I am still suffering. If there is a solution, I am glad.
I solved it using compare_by_identity. (Hash#compare_by_identity) I should change object.id. Thank you.
Good job, @neverender .
In this function requires like this "PictureDetails
How can I add this PicturURL on calling apis option?