File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33Ebay 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?
3655All test files are present inside test folder. You can run using
You can’t perform that action at this time.
0 commit comments