Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.14 KB

sign-templates.md

File metadata and controls

41 lines (28 loc) · 1.14 KB

Sign Templates

Get sign template by ID

Gets a sign template by ID signTemplates.getById(options, callback) method.

const sr = await client.signTemplates.getById({
	template_id: 12345,
});
console.log(
	`Sign template id ${sr.id} contains ${sr.source_files.length} files`
);

List sign templates

Gets sign templates created by a user signTemplates.getAll(options, callback) method.

const result = await client.signTemplates.getAll();
console.log(`There are ${result.count} sign templates`);