channelape-sdk
Version:
A client for interacting with ChannelApe's API
19 lines (18 loc) • 720 B
TypeScript
import RequestClientWrapper from '../../../RequestClientWrapper';
import ApiAccount from '../model/ApiAccount';
export default class ApiAccountsService {
private readonly client;
constructor(client: RequestClientWrapper);
/**
* Do Not Use. This is for internal use only
*
*/
getById(apiAccountId: string): Promise<ApiAccount>;
get(businessId: string, apiAccountId?: string): Promise<ApiAccount | ApiAccount[]>;
delete(businessId: string, apiAccountId: string): Promise<ApiAccount>;
create(name: string, businessId: string): Promise<ApiAccount>;
private mapApiAccountPromise;
private mapApiAccountPromises;
private formatApiAccounts;
private formatApiAccount;
}