Skip to content

Commit e5d0f10

Browse files
committed
updaing readme with new command and adding codeDepot
1 parent 8d12e57 commit e5d0f10

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,7 @@ For a list of code examples that use the Web Forms API, see the [How-to guides o
131131

132132
#### Multiple code examples, Authorization Code Grant, and JWT Grant:
133133
1. $ `cd <Quickstart folder>`
134-
1. $ `mvn package -Dmaven.test.skip=true`
135-
1. $ `java -Dspring.profiles.active=dev -jar target/code-examples-java-1.0-SNAPSHOT.war`
136-
For Windows:
137-
1. $ `mvn package -D"maven.test.skip"="true"`
138-
1. $ `java -D"spring.profiles.active"="dev" -jar target/code-examples-java-1.0-SNAPSHOT.war`
134+
1. $ `mvn spring-boot:run`
139135

140136
#### Authorization Code Grant embedded signing example:
141137

src/main/java/com/docusign/controller/webForms/services/CreateRemoteInstanceService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public static WebFormSummaryList getFormsByName(
3030
ApiClient apiClient,
3131
String userAccessToken,
3232
String name) throws ApiException {
33+
//ds-snippet-start:WebForms2Step3
3334
FormManagementApi formManagementApi = new FormManagementApi(apiClient);
3435
var option = formManagementApi.new ListFormsOptions();
3536
option.setSearch(name);
3637

3738
return formManagementApi.listForms(userAccessToken, option);
39+
//ds-snippet-end:WebForms2Step3
3840
}
3941

4042
public static void addTemplateIdToForm(String fileName, String templateId) {
@@ -59,6 +61,7 @@ public static WebFormInstance createInstance(
5961
String formId,
6062
String signerEmail,
6163
String signerName) throws ApiException {
64+
//ds-snippet-start:WebForms2Step4
6265
WebFormValues formValues = new WebFormValues();
6366
formValues.putAll(Map.of(
6467
"PhoneNumber", "555-555-5555",
@@ -75,8 +78,11 @@ public static WebFormInstance createInstance(
7578
.sendOption(SendOption.NOW)
7679
.formValues(formValues)
7780
.recipients(List.of(recipient));
81+
//ds-snippet-end:WebForms2Step4
7882

83+
//ds-snippet-start:WebForms2Step5
7984
return new FormInstanceManagementApi(apiClient).createInstance(accountId, formId, options);
85+
//ds-snippet-end:WebForms2Step5
8086
}
8187

8288
public static EnvelopeTemplate prepareEnvelopeTemplate(String templateName, String documentPdf) throws IOException {

0 commit comments

Comments
 (0)