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

Commit

Permalink
premium api
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jun 29, 2018
1 parent 3aebe1a commit 93edd27
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -62,6 +62,7 @@ export abstract class ApiService {
getAccountRevisionDate: () => Promise<number>;
postPasswordHint: (request: PasswordHintRequest) => Promise<any>;
postRegister: (request: RegisterRequest) => Promise<any>;
postPremium: (data: FormData) => Promise<any>;
postFolder: (request: FolderRequest) => Promise<FolderResponse>;
putFolder: (id: string, request: FolderRequest) => Promise<FolderResponse>;
deleteFolder: (id: string) => Promise<any>;
Expand Down
4 changes: 4 additions & 0 deletions src/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('POST', '/accounts/register', request, false, false);
}

postPremium(data: FormData): Promise<any> {
return this.send('POST', '/accounts/premium', data, true, true);
}

// Folder APIs

async postFolder(request: FolderRequest): Promise<FolderResponse> {
Expand Down

0 comments on commit 93edd27

Please sign in to comment.