Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Support ProfilesManagementService API #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,14 @@ exports.getDefaultHeaders = function(options) {
'X-EBAY-API-DEV-NAME': options.devId,
'X-EBAY-API-CERT-NAME': options.certId,
};

case 'ProfilesManagement':
return {
'X-EBAY-SOA-SECURITY-APPNAME': options.appId ? options.appId : null,
'X-EBAY-SOA-SECURITY-TOKEN': options.authToken,
'X-EBAY-SOA-GLOBAL-ID': options.globalId ? options.globalId : 'EBAY-US',
'X-EBAY-SOA-SERVICE-VERSION': options.version ? options.version : '1.0.0',
'X-EBAY-SOA-OPERATION-NAME': options.opType
};
}
};
5 changes: 5 additions & 0 deletions lib/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ exports.buildRequestUrl = function(options) {
else url = 'https://signin.ebay.com/ws/eBayISAPI.dll';
break;

case 'ProfilesManagement':
if (options.sandbox) url = 'http://svcs.sandbox.ebay.com/services/selling/v1/SellerProfilesManagementService';
else url = "https://svcs.ebay.com/services/selling/v1/SellerProfilesManagementService";
break;

default:
if (options.sandbox) {
throw new Error("Sandbox endpoint for " + serviceName + " service not yet implemented. Please add.");
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ebay-api",
"description": "eBay API Client",
"version": "1.12.0",
"version": "1.3.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the package.json changes, they don't belong in a PR. Thank you.

"homepage": "https://github.com/benbuckman/nodejs-ebay-api",
"author": "Ben Buckman",
"repository": {
"url": "git://github.com/benbuckman/nodejs-ebay-api.git"
"url": "git://github.com/yanivah/nodejs-ebay-api.git"
},
"main": "index.js",
"dependencies": {
Expand Down
37 changes: 37 additions & 0 deletions package.json.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn't be here.

"name": "ebay-api",
"description": "eBay API Client",
<<<<<<< HEAD
"version": "1.3.0",
"homepage": "https://github.com/newleafdigital/nodejs-ebay-api",
"author": "Ben Buckman <[email protected]> (http://newleafdigital.com)",
=======
"version": "1.12.0",
"homepage": "https://github.com/benbuckman/nodejs-ebay-api",
"author": "Ben Buckman",
>>>>>>> b721ac38e9ff41fb18645b201d74cadffc3459c3
"repository": {
"url": "git://github.com/benbuckman/nodejs-ebay-api.git"
},
"main": "index.js",
"dependencies": {
"async": "^1.4.2",
"debug": "^2.2.0",
"lodash": "^3.10.1",
"request": "^2.65.0",
"xml": "^1.0.0",
"xml2js": "^0.4.12"
},
"devDependencies": {
"chai": "^3.3.0",
"mocha": "^2.3.3",
"sinon": "^1.17.1",
"sinon-chai": "^2.8.0"
},
"scripts": {
"test": "mocha"
},
"engines": {
"node": ">= 0.10"
}
}