From 82faada4c888e86f204a4057d6c612145edde60a Mon Sep 17 00:00:00 2001 From: yanivah Date: Thu, 3 Dec 2015 23:41:05 +0200 Subject: [PATCH 1/2] Support ProfilesManagementService API --- lib/defaults.js | 9 +++++++++ lib/urls.js | 5 +++++ package.json | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/defaults.js b/lib/defaults.js index 971557c..defdfd5 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -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 + }; } }; \ No newline at end of file diff --git a/lib/urls.js b/lib/urls.js index 5fa052e..0a38824 100644 --- a/lib/urls.js +++ b/lib/urls.js @@ -40,6 +40,11 @@ exports.buildRequestUrl = function(options) { else url = "https://svcs.ebay.com/MerchandisingService"; 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."); diff --git a/package.json b/package.json index 8c0d884..ef62635 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ebay-api", "description": "eBay API Client", - "version": "1.2.0", + "version": "1.3.0", "homepage": "https://github.com/newleafdigital/nodejs-ebay-api", "author": "Ben Buckman (http://newleafdigital.com)", "repository": { From 2e331a624956e122c17e64a4442018884e12f522 Mon Sep 17 00:00:00 2001 From: yanivah Date: Tue, 15 Dec 2015 21:17:29 +0200 Subject: [PATCH 2/2] Merge branch 'master' of git://github.com/benbuckman/nodejs-ebay-api # Conflicts: # lib/urls.js # package.json --- package.json | 3 +-- package.json.orig | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 package.json.orig diff --git a/package.json b/package.json index f06ea9e..d8bb780 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,10 @@ "name": "ebay-api", "description": "eBay API Client", "version": "1.3.0", - "version": "1.12.0", "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": { diff --git a/package.json.orig b/package.json.orig new file mode 100644 index 0000000..7c64e97 --- /dev/null +++ b/package.json.orig @@ -0,0 +1,37 @@ +{ + "name": "ebay-api", + "description": "eBay API Client", +<<<<<<< HEAD + "version": "1.3.0", + "homepage": "https://github.com/newleafdigital/nodejs-ebay-api", + "author": "Ben Buckman (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" + } +}