-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support sign template and new sign status (#1197)
- Loading branch information
1 parent
d291878
commit e37c0dc
Showing
12 changed files
with
1,040 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Sign Templates | ||
================== | ||
|
||
Box Sign enables you to create templates so you can automatically add the same fields and formatting to requests for signature. With templates, you don't need to repetitively add the same fields to each request every time you send a new document for signature. | ||
|
||
Making and testing a template takes a few minutes, but when done it makes working with Box Sign easier and faster. | ||
|
||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
|
||
- [Get all Sign Templates](#get-all-sign-templates) | ||
- [Get Sign Template by ID](#get-sign-template-by-id) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
|
||
Get All Sign Templates | ||
------------------------ | ||
|
||
Calling the static [`getAll(BoxAPIConnection api)`][get-all-sign-templates] | ||
will return an iterable that will page through all the Sign Templates. | ||
|
||
The static | ||
[`getAll(BoxAPIConnection api, int limit)`][get-all-sign-templates-with-limit] | ||
method offers `limit` parameter. The `limit` parameter specifies the maximum number of items to be returned in a single response. | ||
|
||
<!-- sample get_sign_templates --> | ||
```java | ||
Iterable<BoxSignTemplate.Info> signTemplates = BoxSignTemplate.getAll(api); | ||
for (BoxSignTemplate.Info signTemplateInfo : signTemplates) { | ||
// Do something with each `signTemplateInfo`. | ||
} | ||
``` | ||
|
||
[get-all-sign-templates]: http://opensource.box.com/box-java-sdk/javadoc/com/box/sdk/BoxSignTemplate.html#getAll-com.box.sdk.BoxAPIConnection- | ||
[get-all-sign-templates-with-limit]: http://opensource.box.com/box-java-sdk/javadoc/com/box/sdk/BoxSignTemplate.html#getAll-com.box.sdk.BoxAPIConnection-int- | ||
|
||
Get Sign Template by ID | ||
------------------------ | ||
|
||
Calling [`getInfo()`][get-sign-template-by-id] will return a [`BoxSignTemplate.Info`][box-sign-template-info] object | ||
containing information about the Sign Template. | ||
|
||
|
||
<!-- sample get_sign_templates_id --> | ||
```java | ||
BoxSignTemplate signTemplate = new BoxSignTemplate(api, id); | ||
BoxSignTemplate.Info signTemplateInfo = signTemplate.getInfo(); | ||
``` | ||
|
||
[get-sign-template-by-id]:http://opensource.box.com/box-java-sdk/javadoc/com/box/sdk/BoxSignTemplate.html#getInfo- | ||
[box-sign-template-info]:http://opensource.box.com/box-java-sdk/javadoc/com/box/sdk/BoxSignTemplate.Info.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.