File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Ebay API Client for node js.
4
4
5
+ The intent is to simplify the request process by handling the tedious logic. It's a thin wrapper around eBay Api.
5
6
6
7
[ ![ npm version] ( https://badge.fury.io/js/ebay-node-api.svg )] ( https://badge.fury.io/js/ebay-node-api )
7
8
[ ![ Build Status] ( https://travis-ci.org/ajay2507/ebay-node-api.svg?branch=master )] ( https://travis-ci.org/ajay2507/ebay-node-api )
@@ -36,6 +37,26 @@ Register your app here https://go.developer.ebay.com/quick-start-guide.
36
37
- ` details ` - optional(` Boolean ` ) - Get User Details functionality - true, if you need details about the user.
37
38
38
39
#### Example
40
+
41
+ ## GetAccessToken
42
+
43
+ ``` javascript
44
+ const Ebay = require (' ../src/index' );
45
+
46
+ let ebay = new Ebay ({
47
+ clientID: " --Client Id----" ,
48
+ clientSecret: ' -- Client Secret --' ,
49
+ body: {
50
+ grant_type: " client_credentials"
51
+ }
52
+ });
53
+ ebay .getAccessToken ().then ((data ) => {
54
+ console .log (data); // data.access_token
55
+ }, (error ) => {
56
+ console .log (error);
57
+ });
58
+ ```
59
+
39
60
## FetchItemsByKeyword
40
61
``` javascript
41
62
const Ebay = require (" ebay-node-api" );
@@ -57,6 +78,8 @@ All test files are present inside test folder. You can run using
57
78
``` javascript
58
79
npm run test
59
80
```
81
+ ## Issues:
82
+ If you are facing any issues, you can create the issues [ here] ( https://github.com/ajay2507/ebay-node-api/issues ) .
60
83
61
84
62
85
## Examples:
You can’t perform that action at this time.
0 commit comments