Skip to content

Commit

Permalink
included travis build status and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaydev authored Mar 25, 2018
1 parent 348517e commit 844ffda
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Ebay API Client for node js.


[![npm version](https://badge.fury.io/js/ebay-node-api.svg)](https://badge.fury.io/js/ebay-node-api)
[![Build Status](https://travis-ci.org/ajay2507/ebay-node-api.svg?branch=master)](https://travis-ci.org/ajay2507/ebay-node-api)

# Installing

```shell
Expand Down Expand Up @@ -31,6 +35,21 @@ Register your app here https://go.developer.ebay.com/quick-start-guide.
- `limit` - optional(`Number`) - fetch items functionality - Number that limits the number of data you need in response.
- `details` - optional(`Boolean`) - Get User Details functionality - true, if you need details about the user.

#### Example
## FetchItemsByKeyword
```javascript
const Ebay = require("ebay-node-api");

let ebay = new Ebay({
clientID: "-- Client APP ID ----",
limit: 6
});
ebay.findItemsByKeywords("iphone").then((data) => {
console.log(data); // fetches top 6 results in form of JSON.
}, (error) => {
console.log(error);
});
```

## How do I run the tests?
All test files are present inside test folder. You can run using
Expand Down

0 comments on commit 844ffda

Please sign in to comment.