nodejs-ebay-api icon indicating copy to clipboard operation
nodejs-ebay-api copied to clipboard

Bulk data file transfer

Open andreaperizzato opened this issue 9 years ago • 3 comments

  • added support for BulkDataExchange and FileTransfer API
  • added zip parser with extracts the zip data from a downloadFile response
  • tests of BulkDataExchange and FileTransfer requests
  • tests of the zip parser using a real response obtained from the sandbox server

andreaperizzato avatar Feb 23 '16 16:02 andreaperizzato

@andreaperizzato Thank you for submitting this. Is it possible to make the tests pass? I'd like to merge it at that point. Thank you (and sorry for the very long delay in reviewing).

benbuckman avatar Oct 04 '16 15:10 benbuckman

Hi,

Did anyone manage to get this solution to work? Any report I try to download from ebay just says 'Error occurred while loading the archive' so I think the issue is with the parseResponseZip function because if I just save the result using browser save it works but not through the code after parsing. Any ideas?

Meteor.call("ebay.downloadFile",args, function(err, result){
        console.log("response ", err, result); --> this gives me exactly what it should 
        var zip = parseResponseZip(result);
        blob = new Blob([zip], {type: "octet/stream"});
        saveAs(blob, "report.zip";);
    })

Thanks in advance for your help.

boboci9 avatar May 29 '17 13:05 boboci9

Hi @boboci9, i've been using this PR in production on node for a while and it works well. What is the zip object on your code? Where does it fail?

andreaperizzato avatar May 30 '17 10:05 andreaperizzato