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

Commit

Permalink
add 'Signin' pseudo-service URLs for building auth consent form URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbuckman committed Oct 26, 2015
1 parent 8b98389 commit 2bbf4bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ exports.buildRequestUrl = function(options) {
else url = "https://svcs.ebay.com/MerchandisingService";
break;

// this is not a real service, it's more of a meta-service. the name is made up here.
// it's also not really an API - it's used for HTML consent pages -
// but other URLs for eBay's systems are here, so including this here too.
// @see http://developer.ebay.com/devzone/guides/ebayfeatures/Basics/Tokens-MultipleUsers.html
case 'Signin':
if (options.sandbox) url = 'https://signin.sandbox.ebay.com/ws/eBayISAPI.dll';
else url = 'https://signin.ebay.com/ws/eBayISAPI.dll';
break;

default:
if (options.sandbox) {
throw new Error("Sandbox endpoint for " + serviceName + " service not yet implemented. Please add.");
Expand Down

0 comments on commit 2bbf4bf

Please sign in to comment.