const apiToken: string = "YOUR TOKEN";
const docToken: string = "ORIGINAL DOCUMENT TOKEN";
async function exempleDetailDoc() {
try {
docResponse: DocResponse = await new DocRequests(apiToken).detailDoc(docToken);
jsonDocResponse: string = new JsonConverter().docResponseToJson(docResponse);
console.log(jsonDocResponse);
} catch(Err) {
console.log(Err);
}
}
import DocRequests from "sdk-node-typescript-zapsign/src/docs/DocRequests";
import { JsonConverter } from "sdk-node-typescript-zapsign/src/services/JsonConverter";
const apiToken: string = "YOUR TOKEN";
const docToken: string = "ORIGINAL DOCUMENT TOKEN";
async function exempleDetailDoc() {
try {
const docResponse: DocResponse = await new DocRequests(apiToken).detailDoc(docToken);
const jsonDocResponse: string = new JsonConverter().docResponseToJson(docResponse);
console.log(jsonDocResponse);
} catch(Err) {
console.log(Err);
}
}