ebay-api
Version:
eBay API for Node and Browser
21 lines (20 loc) • 577 B
JavaScript
import Restful from '../../index.js';
/**
* Retrieves the authenticated user's account profile information.
*/
export default class Identity extends Restful {
get basePath() {
return '/commerce/identity/v1';
}
get subdomain() {
return 'apiz';
}
/**
* This method retrieves the account profile information for an authenticated user, which requires a User access
* token. What is returned is controlled by the scopes.
*/
getUser() {
return this.get(`/user/`);
}
}
Identity.id = 'Identity';