Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
ebay-promised
Advanced tools
This module provides a succint, verbose way to build requests with the eBay API.
Currently it works in production applications with the eBay XML POST Trading API, and I have not properly fleshed out the other eBay services.
Most of the other services are GET based and query string driven.
# Basic Setup
config =
ruName : 'example123'
cert : 'exampleCert123'
devName : 'exampleDevName'
authToken : 'accesstoken123'
sandbox : true
epoc : 1000 # MS
callsPerEpoc : 1 # number of requests per epoc
Ebay = require 'ebay-promised'
ebay = new Ebay(config) # you can pass in configuration in initializiation
# or call it down the line
ebay = (new Ebay)
.ruName(config.ruName)
.cert(config.cert)
.devName(config.devName)
.sandbox(config.sandbox) # will now use the eBay sandbox site
.authToken(config.authToken) # the user token to authenticate with against the API
.serviceName('Trading') # the service to use
Now let's set up a call
ebay
.getCategories() # a call from the Ebay trading API (http://developer.ebay.com/devzone/xml/docs/reference/ebay/getcategories.html)
.detailLevel('ReturnAll') # an option for the getCategories call
.levelLimit(1) # another option
.invoke() # says you are done building the request, and makes it to ebay returns a Q promise
.fail(handleError) # what to do if your request fails
.then(handleCategories) # what to do when your request succeeds
All calls that are currently defined live in ebay-promised/definitions/src/calls if you find a call that is missing, feel free to open an issue so it can be addressed, or make a pull request
ebay-promised handles rate-limiting internally, with a default limit of 3 calls per second.
To override these settings you can pass in the config.epoc and a config.callsPerEpoc options
Internally ebay-promised will attempt to detect when a request is paginated and go ahead and grab the subsequent pages for you and concatenate the results
Ebay#respondsTo
Ebay#reset
Ebay#build
Pull requests are welcome.
FAQs
promise wrapped Ebay requests with sensible response parsers
We found that ebay-promised demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.