Comments (9)
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.
Yes i tried an array with multiple MessageMedia object but still it constructs only a single MessageMedia...
from ebayr.
Weird. Can you post some code?
from ebayr.
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.
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.
@neilturner77 - this test checks for that, and it's passing. Got some code?
from ebayr.
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.
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.
@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)
- Paginate results
- How do Ebayr.call and Ebayr::Request.new collaborate? HOT 2
- xml attributes are not returned HOT 6
- really need a serious xml builder HOT 6
- RuntimeError: entity expansion has grown too large HOT 1
- Results as Objects HOT 1
- Allow more than one instance of the Ebay API connection HOT 8
- Not able to add attributes on tags HOT 7
- Not Able to add PictureURL for AddFixedPriceItem HOT 8
- Support ActiveSupport v5.x HOT 3
- listing fails if the title attribute has an ampersand (&) on it.
- How can I sumbit multi node in a same name? HOT 5
- Bump version? HOT 3
- License missing from gemspec HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebayr.