Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
get org license apis
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jul 17, 2018
1 parent 9c0b4b8 commit 4228277
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/abstractions/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export abstract class ApiService {

getOrganization: (id: string) => Promise<OrganizationResponse>;
getOrganizationBilling: (id: string) => Promise<OrganizationBillingResponse>;
getOrganizationLicense: (id: string, installationId: string) => Promise<any>;
postOrganization: (request: OrganizationCreateRequest) => Promise<OrganizationResponse>;
putOrganization: (id: string, request: OrganizationUpdateRequest) => Promise<OrganizationResponse>;
postLeaveOrganization: (id: string) => Promise<any>;
Expand Down
5 changes: 5 additions & 0 deletions src/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,11 @@ export class ApiService implements ApiServiceAbstraction {
return new OrganizationBillingResponse(r);
}

async getOrganizationLicense(id: string, installationId: string): Promise<any> {
return this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId,
null, true, true);
}

async postOrganization(request: OrganizationCreateRequest): Promise<OrganizationResponse> {
const r = await this.send('POST', '/organizations', request, true, true);
return new OrganizationResponse(r);
Expand Down

0 comments on commit 4228277

Please sign in to comment.