Open 1mike12 opened 8 years ago
so looks like the culprit is inside the default json parser in json-parser.js. There's a flattening function that destroys the data inside the UserDeliveryPreferences array.
made a fix that now FINALLY gets this api call working. https://github.com/benbuckman/nodejs-ebay-api/pull/38 . hopefully the maintainer can get this in there
Also PS , if this call also doesn't work if you're in sandbox mode, go figure...... #justebaythings
{
"$": {
"xmlns": "urn:ebay:apis:eBLBaseComponents"
},
"Timestamp": "2016-10-03T03:58:53.722Z",
"Ack": "Success",
"Version": "967",
"Build": "E967_CORE_APINOTIFY_18003059_R1",
"UserDeliveryPreferences": [
{
"EventType": "EndOfAuction",
"EventEnable": "Disable"
},
{
"EventType": "AuctionCheckoutComplete",
"EventEnable": "Enable"
},
{
"EventType": "Feedback",
"EventEnable": "Disable"
},
{
"EventType": "FixedPriceTransaction",
"EventEnable": "Enable"
},
{
"EventType": "ItemListed",
"EventEnable": "Disable"
},
{
"EventType": "MyMessagesM2MMessage",
"EventEnable": "Disable"
},
{
"EventType": "BidReceived",
"EventEnable": "Disable"
},
{
"EventType": "FeedbackReceived",
"EventEnable": "Enable"
}
]
}
Thank you @1mike12 , I left some comments on the PR.
I put a breakpoint on xml-converter.js, and the xmlBody is passed in correctly, but somewhere it will drop all the notificationEnable entries
raw xml received from ebay
after conversion