Git Product home page Git Product logo

Comments (9)

bjjb avatar bjjb commented on August 23, 2024

Did you try an array with multiple MessageMedia objects? With your call above, the second reference simply overwrites the first. You could try playing around with the method here and see whether the test checks your requirements.

from ebayr.

sathishceg avatar sathishceg commented on August 23, 2024

Yes i tried an array with multiple MessageMedia object but still it constructs only a single MessageMedia...

from ebayr.

bjjb avatar bjjb commented on August 23, 2024

Weird. Can you post some code?

from ebayr.

neilturner77 avatar neilturner77 commented on August 23, 2024

Was this ever fixed? I'm running into the same problem with the :PaymentMethods option (it's repeatable) but obviously you can't have 2 hash keys the same.

from ebayr.

neilturner77 avatar neilturner77 commented on August 23, 2024

Oh, and if I try passing an array as the argument for :PaymentMethods it concats the two values into a single string i.e. <PaymentMethods>CreditCardPayPal</PaymentMethods>

from ebayr.

bjjb avatar bjjb commented on August 23, 2024

@neilturner77 - this test checks for that, and it's passing. Got some code?

from ebayr.

sathishceg avatar sathishceg commented on August 23, 2024

Hi can you please give a sample on how to build multiple xml nodes for the outout selector.I am unable to build multiple OutputSelector...

Here is the code which i am using:

Ebayr.call(:GetItem, :DetailLevel => "ReturnAll", :ItemID => "ID", :OutputSelector => "PrimaryCategory",:OutputSelector => "SellingStatus")

Please provide a sample for the above...

from ebayr.

SpeerJ avatar SpeerJ commented on August 23, 2024

hey bjjb i think the problem is that your test onlys check that self.xml can return a correct xml string. Whats happening here is that we are unable to insert a array dirrectly into the option hash eg({foo: 1, bar: 2, [{media: 1}, {media: 2}]}). If we pass it only an array, delete can't select the hashes out of the array.

from ebayr.

SpeerJ avatar SpeerJ commented on August 23, 2024

@sathishceg @neilturner77 if you want to try my proposed patch you can get it with:
git clone https://github.com/SpeerJ/ebayr.git --branch patch-1 --single-branch
then enter the folder and build with:
gem build ebayr.gemspec
then install with:
gem install ebayr*.gem

the syntax is Ebayr.call(:call_name, :any_keywords, input: [{any_xml: xml_value}, {any_xml: xml_value}])

for example sathishceg's call would be Ebayr.call(:GetItem, input: [{:DetailLevel => "ReturnAll"}, {:ItemID => "ID"},{:OutputSelector => "PrimaryCategory"},{:OutputSelector => "SellingStatus"}])

from ebayr.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.