From 12ab69b60fe34f58a40accebbe206dfdb1c8fe29 Mon Sep 17 00:00:00 2001 From: Pierce Harmon Date: Tue, 8 Sep 2020 16:11:23 -0500 Subject: [PATCH] W.I.P. --- src/core/api-client/resources/sellers.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/core/api-client/resources/sellers.ts b/src/core/api-client/resources/sellers.ts index 562d346..afbfe9c 100644 --- a/src/core/api-client/resources/sellers.ts +++ b/src/core/api-client/resources/sellers.ts @@ -20,4 +20,17 @@ export default class Sellers { return response; } + + /** + * Gets the sellers for an application scoped to the given API key. + * @returns {Promise} Promise that resolves to an Seller. + */ + async createSeller(appId: string): Promise { + const response = await this.client.call({ + endpoint: `apps/${appId}/sellers`, + method: "GET", + }); + + return response; + } }