ebay-api
Version:
eBay API for Node and Browser
43 lines (42 loc) • 1.44 kB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_js_1 = __importDefault(require("../../index.js"));
/**
* This method retrieves the call limit and utilization data for an application.
*/
class KeyManagement extends index_js_1.default {
get subdomain() {
return 'apiz';
}
get basePath() {
return '/developer/key_management/v1';
}
/**
* This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
* and metadata for all keypairs associated with the application key making the call.
*/
getSigningKeys() {
return this.get(`/signing_key`);
}
/**
* This method creates keypairs.
*/
createSigningKey(signingKeyCipher) {
return this.post(`/signing_key`, {
signingKeyCipher
});
}
/**
* This method returns the <b>Public Key</b>, <b>Public Key as JWE</b>,
* and metadata for a specified <code>signingKeyId</code> associated with the application key making the call.
* @param signingKeyId the signin key
*/
getSigningKey(signingKeyId) {
return this.get(`/signing_key/${signingKeyId}`);
}
}
exports.default = KeyManagement;
KeyManagement.id = 'KeyManagement';
;