Skip to content

Commit b421e8f

Browse files
aggiunte marca ed analisi a MarcheTemporali
1 parent c583e27 commit b421e8f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Services/MarcheTemporali.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ export class MarcheTemporali implements Service {
7474
return (availability >= amount);
7575
}
7676

77-
77+
async mark(username: string, password: string, file: string, type: 'infocert' | 'aruba' , mime = false) {
78+
return await (await this.client.post(this.url + '/marca', JSON.stringify({username, password, file, mime, type}))).data.data;
79+
}
80+
81+
async analyze(file: string) {
82+
return await (await this.client.post(this.url + '/analisi', JSON.stringify({file}))).data.data;
83+
}
7884

7985
get url() {
8086
return getBaseUrl(this.environment, this.baseUrl)

0 commit comments

Comments
 (0)