Giter VIP home page Giter VIP logo

ql.io-ebay-mp-apis's People

Contributors

hochang avatar mtipnis avatar shimonchayim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ql.io-ebay-mp-apis's Issues

Getting started docs, setting site id

The readme is pretty thin on getting started details, so I tried as described, to run ./bin/start.sh. That fails promptly with Error: Cannot find module './node_modules/.bin/ql.io.app' so I ran npm install. That tried to install dependencies, but failed miserably, outputting a looong list of random errors whatnot. Server wouldn't started, so I ran npm install again, this time trying to capture the log output. That didn't work, but somehow npm install finished without an error, and I could even start the server.

Next I even managed to find a QL snippet to test, though the reference to the test directory isn't great, since there's a lot of testing code surrounding the interesting snippets.

After editing config/dev.json I even got a finding request working.

Something I haven't figured out yet: How do I set the site id to search only EBAY-DE? There's a property under the trading key, but I haven't set any of those properties yet, since I'm currently only using the finding API.

Routes for Trading API

Is there any reason why there aren't any routes for the trading API in this repository? I'm putting together routes for a few trading calls and can contribute them back, if there's interest.

Inconsistent config keys: appname vs appid

Finding and trading configs use "appname", shopping uses "appid". Debugging a copy&paste error where shopping requests fails because I only had "appname" wasn't much fun.

Would help to make those properties consistent. The eBay developer account page uses "AppID" as the label, so should probably use "appid" everywhere.

Fix `Transfer-Encoding:chunked`

Currently http responses (e.g. /ebay/finding/version) are returned with Transfer-Encoding:chunked, that causes issues when proxiny ql.io, e.g. nginx.

I actually managed to get nginx to proxy it anyway, using these directives:

location /ebay {
    proxy_pass http://localhost:3000;
    proxy_redirect off;
    proxy_buffering off;
    chunked_transfer_encoding off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

Afaik ql.io uses node's http module, which enables Transfer-Encoding:chunked when no Content-Length header is set.

Finding routes and item filters

Try to use the finding API routes, I've hit a roadblock due to the lack of support for item filters. findItemsAdvanced doesn't take itemFilter into account at all, while findItemsByKeywords only supports a single itemFilter, instead of the 1-n that the actual Finding API supports, e.g. itemFilter(0).name=HideDuplicateItems&itemFilter(0).value=true&itemFilter(1).name=ListingType&itemFilter(1).value=Auction&itemFilter(2).name=MaxDistance&itemFilter(2).value=10.

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.