Skip to content

Commit 844ffda

Browse files
authored
included travis build status and updated readme
1 parent 348517e commit 844ffda

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Ebay API Client for node js.
44

5+
6+
[![npm version](https://badge.fury.io/js/ebay-node-api.svg)](https://badge.fury.io/js/ebay-node-api)
7+
[![Build Status](https://travis-ci.org/ajay2507/ebay-node-api.svg?branch=master)](https://travis-ci.org/ajay2507/ebay-node-api)
8+
59
# Installing
610

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

38+
#### Example
39+
## FetchItemsByKeyword
40+
```javascript
41+
const Ebay = require("ebay-node-api");
42+
43+
let ebay = new Ebay({
44+
clientID: "-- Client APP ID ----",
45+
limit: 6
46+
});
47+
ebay.findItemsByKeywords("iphone").then((data) => {
48+
console.log(data); // fetches top 6 results in form of JSON.
49+
}, (error) => {
50+
console.log(error);
51+
});
52+
```
3453

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

0 commit comments

Comments
 (0)