diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index 1046c5f..d906a48 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -40,7 +40,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.x
+ dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ${SOLUTION}.sln
diff --git a/.gitignore b/.gitignore
index 02e0c34..78294d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -361,6 +361,8 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd
+git_push.sh
+global.json
vendor
/api
.openapi-generator
diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore
index 77ed52e..7484ee5 100644
--- a/.openapi-generator-ignore
+++ b/.openapi-generator-ignore
@@ -21,7 +21,3 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
-
-git_push.sh
-**/Model/*AllOf*
-docs/*AllOf*
diff --git a/Dropbox.Sign.sln b/Dropbox.Sign.sln
old mode 100755
new mode 100644
diff --git a/README.md b/README.md
index f792b19..aec7a58 100644
--- a/README.md
+++ b/README.md
@@ -23,8 +23,8 @@ directory that corresponds to the file you want updated.
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 3.0.0
-- SDK version: 1.8.0
-- Generator version: 7.8.0
+- SDK version: 2.0.0
+- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
### Building
@@ -49,7 +49,7 @@ this command.
## Dependencies
-- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later
+- [RestSharp](https://www.nuget.org/packages/RestSharp) - 112.0.0 or later
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later
- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later
@@ -82,36 +82,39 @@ c.Proxy = webProxy;
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class AccountCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountCreateRequest(
+ var accountCreateRequest = new AccountCreateRequest(
emailAddress: "newuser@dropboxsign.com"
);
try
{
- var result = accountApi.AccountCreate(data);
- Console.WriteLine(result);
+ var response = new AccountApi(config).AccountCreate(
+ accountCreateRequest: accountCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling AccountApi#AccountCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -142,7 +145,7 @@ Class | Method | HTTP request | Description
*EmbeddedApi* | [**EmbeddedEditUrl**](docs/EmbeddedApi.md#embeddedediturl) | **POST** /embedded/edit_url/{template_id} | Get Embedded Template Edit URL
*EmbeddedApi* | [**EmbeddedSignUrl**](docs/EmbeddedApi.md#embeddedsignurl) | **GET** /embedded/sign_url/{signature_id} | Get Embedded Sign URL
*FaxApi* | [**FaxDelete**](docs/FaxApi.md#faxdelete) | **DELETE** /fax/{fax_id} | Delete Fax
-*FaxApi* | [**FaxFiles**](docs/FaxApi.md#faxfiles) | **GET** /fax/files/{fax_id} | List Fax Files
+*FaxApi* | [**FaxFiles**](docs/FaxApi.md#faxfiles) | **GET** /fax/files/{fax_id} | Download Fax Files
*FaxApi* | [**FaxGet**](docs/FaxApi.md#faxget) | **GET** /fax/{fax_id} | Get Fax
*FaxApi* | [**FaxList**](docs/FaxApi.md#faxlist) | **GET** /fax/list | Lists Faxes
*FaxApi* | [**FaxSend**](docs/FaxApi.md#faxsend) | **POST** /fax/send | Send Fax
@@ -161,6 +164,10 @@ Class | Method | HTTP request | Description
*SignatureRequestApi* | [**SignatureRequestCancel**](docs/SignatureRequestApi.md#signaturerequestcancel) | **POST** /signature_request/cancel/{signature_request_id} | Cancel Incomplete Signature Request
*SignatureRequestApi* | [**SignatureRequestCreateEmbedded**](docs/SignatureRequestApi.md#signaturerequestcreateembedded) | **POST** /signature_request/create_embedded | Create Embedded Signature Request
*SignatureRequestApi* | [**SignatureRequestCreateEmbeddedWithTemplate**](docs/SignatureRequestApi.md#signaturerequestcreateembeddedwithtemplate) | **POST** /signature_request/create_embedded_with_template | Create Embedded Signature Request with Template
+*SignatureRequestApi* | [**SignatureRequestEdit**](docs/SignatureRequestApi.md#signaturerequestedit) | **PUT** /signature_request/edit/{signature_request_id} | Edit Signature Request
+*SignatureRequestApi* | [**SignatureRequestEditEmbedded**](docs/SignatureRequestApi.md#signaturerequesteditembedded) | **PUT** /signature_request/edit_embedded/{signature_request_id} | Edit Embedded Signature Request
+*SignatureRequestApi* | [**SignatureRequestEditEmbeddedWithTemplate**](docs/SignatureRequestApi.md#signaturerequesteditembeddedwithtemplate) | **PUT** /signature_request/edit_embedded_with_template/{signature_request_id} | Edit Embedded Signature Request with Template
+*SignatureRequestApi* | [**SignatureRequestEditWithTemplate**](docs/SignatureRequestApi.md#signaturerequesteditwithtemplate) | **PUT** /signature_request/edit_with_template/{signature_request_id} | Edit Signature Request With Template
*SignatureRequestApi* | [**SignatureRequestFiles**](docs/SignatureRequestApi.md#signaturerequestfiles) | **GET** /signature_request/files/{signature_request_id} | Download Files
*SignatureRequestApi* | [**SignatureRequestFilesAsDataUri**](docs/SignatureRequestApi.md#signaturerequestfilesasdatauri) | **GET** /signature_request/files_as_data_uri/{signature_request_id} | Download Files as Data Uri
*SignatureRequestApi* | [**SignatureRequestFilesAsFileUrl**](docs/SignatureRequestApi.md#signaturerequestfilesasfileurl) | **GET** /signature_request/files_as_file_url/{signature_request_id} | Download Files as File Url
@@ -265,6 +272,10 @@ Class | Method | HTTP request | Description
- [Model.SignatureRequestBulkSendWithTemplateRequest](docs/SignatureRequestBulkSendWithTemplateRequest.md)
- [Model.SignatureRequestCreateEmbeddedRequest](docs/SignatureRequestCreateEmbeddedRequest.md)
- [Model.SignatureRequestCreateEmbeddedWithTemplateRequest](docs/SignatureRequestCreateEmbeddedWithTemplateRequest.md)
+ - [Model.SignatureRequestEditEmbeddedRequest](docs/SignatureRequestEditEmbeddedRequest.md)
+ - [Model.SignatureRequestEditEmbeddedWithTemplateRequest](docs/SignatureRequestEditEmbeddedWithTemplateRequest.md)
+ - [Model.SignatureRequestEditRequest](docs/SignatureRequestEditRequest.md)
+ - [Model.SignatureRequestEditWithTemplateRequest](docs/SignatureRequestEditWithTemplateRequest.md)
- [Model.SignatureRequestGetResponse](docs/SignatureRequestGetResponse.md)
- [Model.SignatureRequestListResponse](docs/SignatureRequestListResponse.md)
- [Model.SignatureRequestRemindRequest](docs/SignatureRequestRemindRequest.md)
diff --git a/VERSION b/VERSION
index 27f9cd3..227cea2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.8.0
+2.0.0
diff --git a/bin/copy-constants.php b/bin/copy-constants.php
new file mode 100755
index 0000000..8853805
--- /dev/null
+++ b/bin/copy-constants.php
@@ -0,0 +1,64 @@
+#!/usr/bin/env php
+run();
\ No newline at end of file
diff --git a/bin/dotnet b/bin/dotnet
index f1b73ac..b3e5c44 100755
--- a/bin/dotnet
+++ b/bin/dotnet
@@ -12,4 +12,4 @@ docker run --rm \
-v "${ROOT_DIR}:${WORKING_DIR}" \
-w "${WORKING_DIR}" \
-u root:root \
- mcr.microsoft.com/dotnet/sdk:6.0 "$@"
+ mcr.microsoft.com/dotnet/sdk:8.0 "$@"
diff --git a/docs/AccountApi.md b/docs/AccountApi.md
index 897f4d2..f62f833 100644
--- a/docs/AccountApi.md
+++ b/docs/AccountApi.md
@@ -20,36 +20,39 @@ Creates a new Dropbox Sign Account that is associated with the specified `email_
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class AccountCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountCreateRequest(
+ var accountCreateRequest = new AccountCreateRequest(
emailAddress: "newuser@dropboxsign.com"
);
try
{
- var result = accountApi.AccountCreate(data);
- Console.WriteLine(result);
+ var response = new AccountApi(config).AccountCreate(
+ accountCreateRequest: accountCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling AccountApi#AccountCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -117,32 +120,33 @@ Returns the properties and settings of your Account.
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class AccountGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = accountApi.AccountGet(null, "jack@example.com");
- Console.WriteLine(result);
+ var response = new AccountApi(config).AccountGet();
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling AccountApi#AccountGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -211,36 +215,40 @@ Updates the properties and settings of your Account. Currently only allows for u
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class AccountUpdateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountUpdateRequest(
- callbackUrl: "https://www.example.com/callback"
+ var accountUpdateRequest = new AccountUpdateRequest(
+ callbackUrl: "https://www.example.com/callback",
+ locale: "en-US"
);
try
{
- var result = accountApi.AccountUpdate(data);
- Console.WriteLine(result);
+ var response = new AccountApi(config).AccountUpdate(
+ accountUpdateRequest: accountUpdateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling AccountApi#AccountUpdate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -308,36 +316,39 @@ Verifies whether an Dropbox Sign Account exists for the given email address.
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class AccountVerifyExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountVerifyRequest(
+ var accountVerifyRequest = new AccountVerifyRequest(
emailAddress: "some_user@dropboxsign.com"
);
try
{
- var result = accountApi.AccountVerify(data);
- Console.WriteLine(result);
+ var response = new AccountApi(config).AccountVerify(
+ accountVerifyRequest: accountVerifyRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling AccountApi#AccountVerify: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/ApiAppApi.md b/docs/ApiAppApi.md
index e587a69..e94d26a 100644
--- a/docs/ApiAppApi.md
+++ b/docs/ApiAppApi.md
@@ -23,29 +23,28 @@ Creates a new API App.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ApiAppCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
var oauth = new SubOAuth(
callbackUrl: "https://example.com/oauth",
- scopes: new List() {
+ scopes: [
SubOAuth.ScopesEnum.BasicAccountInfo,
- SubOAuth.ScopesEnum.RequestSignature
- }
+ SubOAuth.ScopesEnum.RequestSignature,
+ ]
);
var whiteLabelingOptions = new SubWhiteLabelingOptions(
@@ -53,27 +52,30 @@ public class Example
primaryButtonTextColor: "#ffffff"
);
- var customLogoFile = new FileStream(
- "CustomLogoFile.png",
- FileMode.Open
- );
-
- var data = new ApiAppCreateRequest(
+ var apiAppCreateRequest = new ApiAppCreateRequest(
name: "My Production App",
- domains: new List(){"example.com"},
+ domains: [
+ "example.com",
+ ],
+ customLogoFile: new FileStream(
+ path: "CustomLogoFile.png",
+ mode: FileMode.Open
+ ),
oauth: oauth,
- whiteLabelingOptions: whiteLabelingOptions,
- customLogoFile: customLogoFile
+ whiteLabelingOptions: whiteLabelingOptions
);
try
{
- var result = apiAppApi.ApiAppCreate(data);
- Console.WriteLine(result);
+ var response = new ApiAppApi(config).ApiAppCreate(
+ apiAppCreateRequest: apiAppCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -143,32 +145,31 @@ Deletes an API App. Can only be invoked for apps you own.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ApiAppDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- apiAppApi.ApiAppDelete(clientId);
+ new ApiAppApi(config).ApiAppDelete(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -233,34 +234,35 @@ Returns an object with information about an API App.
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ApiAppGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = apiAppApi.ApiAppGet(clientId);
- Console.WriteLine(result);
+ var response = new ApiAppApi(config).ApiAppGet(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -328,35 +330,36 @@ Returns a list of API Apps that are accessible by you. If you are on a team with
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ApiAppListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var page = 1;
- var pageSize = 2;
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = apiAppApi.ApiAppList(page, pageSize);
- Console.WriteLine(result);
+ var response = new ApiAppApi(config).ApiAppList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -427,29 +430,28 @@ Updates an existing API App. Can only be invoked for apps you own. Only the fiel
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ApiAppUpdateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
var oauth = new SubOAuth(
callbackUrl: "https://example.com/oauth",
- scopes: new List() {
+ scopes: [
SubOAuth.ScopesEnum.BasicAccountInfo,
- SubOAuth.ScopesEnum.RequestSignature
- }
+ SubOAuth.ScopesEnum.RequestSignature,
+ ]
);
var whiteLabelingOptions = new SubWhiteLabelingOptions(
@@ -457,29 +459,32 @@ public class Example
primaryButtonTextColor: "#ffffff"
);
- var customLogoFile = new FileStream(
- "CustomLogoFile.png",
- FileMode.Open
- );
-
- var data = new ApiAppUpdateRequest(
- name: "My Production App",
- domains: new List(){"example.com"},
+ var apiAppUpdateRequest = new ApiAppUpdateRequest(
+ callbackUrl: "https://example.com/dropboxsign",
+ name: "New Name",
+ domains: [
+ "example.com",
+ ],
+ customLogoFile: new FileStream(
+ path: "CustomLogoFile.png",
+ mode: FileMode.Open
+ ),
oauth: oauth,
- whiteLabelingOptions: whiteLabelingOptions,
- customLogoFile: customLogoFile
+ whiteLabelingOptions: whiteLabelingOptions
);
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
-
try
{
- var result = apiAppApi.ApiAppUpdate(clientId, data);
- Console.WriteLine(result);
+ var response = new ApiAppApi(config).ApiAppUpdate(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9",
+ apiAppUpdateRequest: apiAppUpdateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppUpdate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/BulkSendJobApi.md b/docs/BulkSendJobApi.md
index 050257d..46b2626 100644
--- a/docs/BulkSendJobApi.md
+++ b/docs/BulkSendJobApi.md
@@ -20,33 +20,35 @@ Returns the status of the BulkSendJob and its SignatureRequests specified by the
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class BulkSendJobGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var bulkSendJobApi = new BulkSendJobApi(config);
-
- var bulkSendJobId = "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = bulkSendJobApi.BulkSendJobGet(bulkSendJobId);
- Console.WriteLine(result);
+ var response = new BulkSendJobApi(config).BulkSendJobGet(
+ bulkSendJobId: "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling BulkSendJobApi#BulkSendJobGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -118,34 +120,34 @@ Returns a list of BulkSendJob that you can access.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class BulkSendJobListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var bulkSendJobApi = new BulkSendJobApi(config);
-
- var page = 1;
- var pageSize = 20;
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = bulkSendJobApi.BulkSendJobList(page, pageSize);
- Console.WriteLine(result);
+ var response = new BulkSendJobApi(config).BulkSendJobList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling BulkSendJobApi#BulkSendJobList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/EmbeddedApi.md b/docs/EmbeddedApi.md
index 39c38b4..473f3df 100644
--- a/docs/EmbeddedApi.md
+++ b/docs/EmbeddedApi.md
@@ -20,38 +20,43 @@ Retrieves an embedded object containing a template url that can be opened in an
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class EmbeddedEditUrlExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var embeddedApi = new EmbeddedApi(config);
+ var mergeFields = new List();
- var data = new EmbeddedEditUrlRequest(
- ccRoles: new List(){""},
- mergeFields: new List()
+ var embeddedEditUrlRequest = new EmbeddedEditUrlRequest(
+ ccRoles: [
+ "",
+ ],
+ mergeFields: mergeFields
);
- var templateId = "5de8179668f2033afac48da1868d0093bf133266";
-
try
{
- var result = embeddedApi.EmbeddedEditUrl(templateId, data);
- Console.WriteLine(result);
+ var response = new EmbeddedApi(config).EmbeddedEditUrl(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ embeddedEditUrlRequest: embeddedEditUrlRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling EmbeddedApi#EmbeddedEditUrl: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -122,33 +127,33 @@ Retrieves an embedded object containing a signature url that can be opened in an
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class EmbeddedSignUrlExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var embeddedApi = new EmbeddedApi(config);
-
- var signatureId = "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = embeddedApi.EmbeddedSignUrl(signatureId);
- Console.WriteLine(result);
+ var response = new EmbeddedApi(config).EmbeddedSignUrl(
+ signatureId: "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling EmbeddedApi#EmbeddedSignUrl: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/FaxApi.md b/docs/FaxApi.md
index 303d4ef..41349a4 100644
--- a/docs/FaxApi.md
+++ b/docs/FaxApi.md
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
| Method | HTTP request | Description |
|--------|--------------|-------------|
| [**FaxDelete**](FaxApi.md#faxdelete) | **DELETE** /fax/{fax_id} | Delete Fax |
-| [**FaxFiles**](FaxApi.md#faxfiles) | **GET** /fax/files/{fax_id} | List Fax Files |
+| [**FaxFiles**](FaxApi.md#faxfiles) | **GET** /fax/files/{fax_id} | Download Fax Files |
| [**FaxGet**](FaxApi.md#faxget) | **GET** /fax/{fax_id} | Get Fax |
| [**FaxList**](FaxApi.md#faxlist) | **GET** /fax/list | Lists Faxes |
| [**FaxSend**](FaxApi.md#faxsend) | **POST** /fax/send | Send Fax |
@@ -16,33 +16,37 @@ All URIs are relative to *https://api.hellosign.com/v3*
Delete Fax
-Deletes the specified Fax from the system.
+Deletes the specified Fax from the system
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
try
{
- faxApi.FaxDelete("fa5c8a0b0f492d768749333ad6fcc214c111e967");
+ new FaxApi(config).FaxDelete(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -100,41 +104,43 @@ void (empty response body)
# **FaxFiles**
> System.IO.Stream FaxFiles (string faxId)
-List Fax Files
+Download Fax Files
-Returns list of fax files
+Downloads files associated with a Fax
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxFilesExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
- var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
try
{
- var result = faxApi.FaxFiles(faxId);
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
+ var response = new FaxApi(config).FaxFiles(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
fileStream.Close();
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxFiles: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -149,7 +155,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
- // List Fax Files
+ // Download Fax Files
ApiResponse response = apiInstance.FaxFilesWithHttpInfo(faxId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
@@ -197,36 +203,39 @@ catch (ApiException e)
Get Fax
-Returns information about fax
+Returns information about a Fax
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
- var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
try
{
- var result = faxApi.FaxGet(faxId);
- Console.WriteLine(result);
+ var response = new FaxApi(config).FaxGet(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -289,37 +298,40 @@ catch (ApiException e)
Lists Faxes
-Returns properties of multiple faxes
+Returns properties of multiple Faxes
### Example
```csharp
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
- var page = 1;
- var pageSize = 2;
-
try
{
- var result = faxApi.FaxList(page, pageSize);
- Console.WriteLine(result);
+ var response = new FaxApi(config).FaxList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -352,8 +364,8 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **page** | **int?** | Page | [optional] [default to 1] |
-| **pageSize** | **int?** | Page size | [optional] [default to 20] |
+| **page** | **int?** | Which page number of the Fax List to return. Defaults to `1`. | [optional] [default to 1] |
+| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] |
### Return type
@@ -383,54 +395,56 @@ catch (ApiException e)
Send Fax
-Action to prepare and send a fax
+Creates and sends a new Fax with the submitted file(s)
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxSendExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
- var files = new List {
- new FileStream(
- "./example_fax.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new FaxSendRequest(
- files: files,
- testMode: true,
+ var faxSendRequest = new FaxSendRequest(
recipient: "16690000001",
sender: "16690000000",
+ testMode: true,
coverPageTo: "Jill Fax",
- coverPageMessage: "I'm sending you a fax!",
coverPageFrom: "Faxer Faxerson",
+ coverPageMessage: "I'm sending you a fax!",
title: "This is what the fax is about!",
+ files: new List
+ {
+ new FileStream(
+ path: "./example_fax.pdf",
+ mode: FileMode.Open
+ ),
+ }
);
try
{
- var result = faxApi.FaxSend(data);
- Console.WriteLine(result);
+ var response = new FaxApi(config).FaxSend(
+ faxSendRequest: faxSendRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxSend: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/FaxLineAddUserRequest.md b/docs/FaxLineAddUserRequest.md
index f89c0de..705c9d9 100644
--- a/docs/FaxLineAddUserRequest.md
+++ b/docs/FaxLineAddUserRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Number** | **string** | The Fax Line number. | **AccountId** | **string** | Account ID | [optional] **EmailAddress** | **string** | Email address | [optional]
+**Number** | **string** | The Fax Line number | **AccountId** | **string** | Account ID | [optional] **EmailAddress** | **string** | Email address | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FaxLineApi.md b/docs/FaxLineApi.md
index 9fdd09b..42ebfe8 100644
--- a/docs/FaxLineApi.md
+++ b/docs/FaxLineApi.md
@@ -25,32 +25,37 @@ Grants a user access to the specified Fax Line.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineAddUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineAddUserRequest(
+ var faxLineAddUserRequest = new FaxLineAddUserRequest(
number: "[FAX_NUMBER]",
emailAddress: "member@dropboxsign.com"
);
try
{
- var result = faxLineApi.FaxLineAddUser(data);
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineAddUser(
+ faxLineAddUserRequest: faxLineAddUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineAddUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -113,34 +118,39 @@ catch (ApiException e)
Get Available Fax Line Area Codes
-Returns a response with the area codes available for a given state/provice and city.
+Returns a list of available area codes for a given state/province and city
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineAreaCodeGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
try
{
- var result = faxLineApi.FaxLineAreaCodeGet("US", "CA");
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineAreaCodeGet(
+ country: "US"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineAreaCodeGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -173,10 +183,10 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **country** | **string** | Filter area codes by country. | |
-| **state** | **string?** | Filter area codes by state. | [optional] |
-| **province** | **string?** | Filter area codes by province. | [optional] |
-| **city** | **string?** | Filter area codes by city. | [optional] |
+| **country** | **string** | Filter area codes by country | |
+| **state** | **string?** | Filter area codes by state | [optional] |
+| **province** | **string?** | Filter area codes by province | [optional] |
+| **city** | **string?** | Filter area codes by city | [optional] |
### Return type
@@ -206,39 +216,44 @@ catch (ApiException e)
Purchase Fax Line
-Purchases a new Fax Line.
+Purchases a new Fax Line
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineCreateRequest(
+ var faxLineCreateRequest = new FaxLineCreateRequest(
areaCode: 209,
- country: "US"
+ country: FaxLineCreateRequest.CountryEnum.US
);
try
{
- var result = faxLineApi.FaxLineCreate(data);
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineCreate(
+ faxLineCreateRequest: faxLineCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -308,30 +323,34 @@ Deletes the specified Fax Line from the subscription.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineDeleteRequest(
+ var faxLineDeleteRequest = new FaxLineDeleteRequest(
number: "[FAX_NUMBER]"
);
try
{
- faxLineApi.FaxLineDelete(data);
+ new FaxLineApi(config).FaxLineDelete(
+ faxLineDeleteRequest: faxLineDeleteRequest
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -398,27 +417,32 @@ Returns the properties and settings of a Fax Line.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
try
{
- var result = faxLineApi.FaxLineGet("[FAX_NUMBER]");
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineGet(
+ number: "123-123-1234"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -451,7 +475,7 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **number** | **string** | The Fax Line number. | |
+| **number** | **string** | The Fax Line number | |
### Return type
@@ -488,27 +512,34 @@ Returns the properties and settings of multiple Fax Lines.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
try
{
- var result = faxLineApi.FaxLineList();
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineList(
+ accountId: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -542,9 +573,9 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **accountId** | **string?** | Account ID | [optional] |
-| **page** | **int?** | Page | [optional] [default to 1] |
-| **pageSize** | **int?** | Page size | [optional] [default to 20] |
-| **showTeamLines** | **bool?** | Show team lines | [optional] |
+| **page** | **int?** | Which page number of the Fax Line List to return. Defaults to `1`. | [optional] [default to 1] |
+| **pageSize** | **int?** | Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. | [optional] [default to 20] |
+| **showTeamLines** | **bool?** | Include Fax Lines belonging to team members in the list | [optional] |
### Return type
@@ -574,39 +605,44 @@ catch (ApiException e)
Remove Fax Line Access
-Removes a user's access to the specified Fax Line.
+Removes a user's access to the specified Fax Line
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineRemoveUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineRemoveUserRequest(
+ var faxLineRemoveUserRequest = new FaxLineRemoveUserRequest(
number: "[FAX_NUMBER]",
emailAddress: "member@dropboxsign.com"
);
try
{
- var result = faxLineApi.FaxLineRemoveUser(data);
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineRemoveUser(
+ faxLineRemoveUserRequest: faxLineRemoveUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineRemoveUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/FaxLineCreateRequest.md b/docs/FaxLineCreateRequest.md
index 21d3ffc..d8bf8c4 100644
--- a/docs/FaxLineCreateRequest.md
+++ b/docs/FaxLineCreateRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**AreaCode** | **int** | Area code | **Country** | **string** | Country | **City** | **string** | City | [optional] **AccountId** | **string** | Account ID | [optional]
+**AreaCode** | **int** | Area code of the new Fax Line | **Country** | **string** | Country of the area code | **City** | **string** | City of the area code | [optional] **AccountId** | **string** | Account ID of the account that will be assigned this new Fax Line | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FaxLineDeleteRequest.md b/docs/FaxLineDeleteRequest.md
index 673880d..1d8885b 100644
--- a/docs/FaxLineDeleteRequest.md
+++ b/docs/FaxLineDeleteRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Number** | **string** | The Fax Line number. |
+**Number** | **string** | The Fax Line number |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FaxLineRemoveUserRequest.md b/docs/FaxLineRemoveUserRequest.md
index 0d73414..3be0e7b 100644
--- a/docs/FaxLineRemoveUserRequest.md
+++ b/docs/FaxLineRemoveUserRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Number** | **string** | The Fax Line number. | **AccountId** | **string** | Account ID | [optional] **EmailAddress** | **string** | Email address | [optional]
+**Number** | **string** | The Fax Line number | **AccountId** | **string** | Account ID of the user to remove access | [optional] **EmailAddress** | **string** | Email address of the user to remove access | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FaxSendRequest.md b/docs/FaxSendRequest.md
index b02d7f0..371c7c0 100644
--- a/docs/FaxSendRequest.md
+++ b/docs/FaxSendRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Recipient** | **string** | Fax Send To Recipient | **Sender** | **string** | Fax Send From Sender (used only with fax number) | [optional] **Files** | **List<System.IO.Stream>** | Fax File to Send | [optional] **FileUrls** | **List<string>** | Fax File URL to Send | [optional] **TestMode** | **bool** | API Test Mode Setting | [optional] [default to false]**CoverPageTo** | **string** | Fax Cover Page for Recipient | [optional] **CoverPageFrom** | **string** | Fax Cover Page for Sender | [optional] **CoverPageMessage** | **string** | Fax Cover Page Message | [optional] **Title** | **string** | Fax Title | [optional]
+**Recipient** | **string** | Recipient of the fax Can be a phone number in E.164 format or email address | **Sender** | **string** | Fax Send From Sender (used only with fax number) | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to fax
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Fax download the file(s) to fax
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **TestMode** | **bool** | API Test Mode Setting | [optional] [default to false]**CoverPageTo** | **string** | Fax cover page recipient information | [optional] **CoverPageFrom** | **string** | Fax cover page sender information | [optional] **CoverPageMessage** | **string** | Fax Cover Page Message | [optional] **Title** | **string** | Fax Title | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/OAuthApi.md b/docs/OAuthApi.md
index c80ee27..2918ea9 100644
--- a/docs/OAuthApi.md
+++ b/docs/OAuthApi.md
@@ -20,33 +20,39 @@ Once you have retrieved the code from the user callback, you will need to exchan
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class OauthTokenGenerateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- var oAuthApi = new OAuthApi(config);
-
- var data = new OAuthTokenGenerateRequest(
- state: "900e06e2",
- code: "1b0d28d90c86c141",
+ var oAuthTokenGenerateRequest = new OAuthTokenGenerateRequest(
clientId: "cc91c61d00f8bb2ece1428035716b",
- clientSecret: "1d14434088507ffa390e6f5528465"
+ clientSecret: "1d14434088507ffa390e6f5528465",
+ code: "1b0d28d90c86c141",
+ state: "900e06e2",
+ grantType: "authorization_code"
);
try
{
- var result = oAuthApi.OauthTokenGenerate(data);
- Console.WriteLine(result);
+ var response = new OAuthApi(config).OauthTokenGenerate(
+ oAuthTokenGenerateRequest: oAuthTokenGenerateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling OAuthApi#OauthTokenGenerate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -116,30 +122,36 @@ Access tokens are only valid for a given period of time (typically one hour) for
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class OauthTokenRefreshExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- var oAuthApi = new OAuthApi(config);
-
- var data = new OAuthTokenRefreshRequest(
+ var oAuthTokenRefreshRequest = new OAuthTokenRefreshRequest(
+ grantType: "refresh_token",
refreshToken: "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"
);
try
{
- var result = oAuthApi.OauthTokenRefresh(data);
- Console.WriteLine(result);
+ var response = new OAuthApi(config).OauthTokenRefresh(
+ oAuthTokenRefreshRequest: oAuthTokenRefreshRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling OAuthApi#OauthTokenRefresh: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/ReportApi.md b/docs/ReportApi.md
index 9ea9879..324902c 100644
--- a/docs/ReportApi.md
+++ b/docs/ReportApi.md
@@ -19,40 +19,41 @@ Request the creation of one or more report(s). When the report(s) have been gen
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ReportCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var reportApi = new ReportApi(config);
-
- var data = new ReportCreateRequest(
+ var reportCreateRequest = new ReportCreateRequest(
startDate: "09/01/2020",
endDate: "09/01/2020",
- reportType: new List() {
+ reportType: [
ReportCreateRequest.ReportTypeEnum.UserActivity,
ReportCreateRequest.ReportTypeEnum.DocumentStatus,
- }
+ ]
);
try
{
- var result = reportApi.OauthCreate(data);
- Console.WriteLine(result);
+ var response = new ReportApi(config).ReportCreate(
+ reportCreateRequest: reportCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ReportApi#ReportCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/SignatureRequestApi.md b/docs/SignatureRequestApi.md
index a507cc0..fe084fa 100644
--- a/docs/SignatureRequestApi.md
+++ b/docs/SignatureRequestApi.md
@@ -9,6 +9,10 @@ All URIs are relative to *https://api.hellosign.com/v3*
| [**SignatureRequestCancel**](SignatureRequestApi.md#signaturerequestcancel) | **POST** /signature_request/cancel/{signature_request_id} | Cancel Incomplete Signature Request |
| [**SignatureRequestCreateEmbedded**](SignatureRequestApi.md#signaturerequestcreateembedded) | **POST** /signature_request/create_embedded | Create Embedded Signature Request |
| [**SignatureRequestCreateEmbeddedWithTemplate**](SignatureRequestApi.md#signaturerequestcreateembeddedwithtemplate) | **POST** /signature_request/create_embedded_with_template | Create Embedded Signature Request with Template |
+| [**SignatureRequestEdit**](SignatureRequestApi.md#signaturerequestedit) | **PUT** /signature_request/edit/{signature_request_id} | Edit Signature Request |
+| [**SignatureRequestEditEmbedded**](SignatureRequestApi.md#signaturerequesteditembedded) | **PUT** /signature_request/edit_embedded/{signature_request_id} | Edit Embedded Signature Request |
+| [**SignatureRequestEditEmbeddedWithTemplate**](SignatureRequestApi.md#signaturerequesteditembeddedwithtemplate) | **PUT** /signature_request/edit_embedded_with_template/{signature_request_id} | Edit Embedded Signature Request with Template |
+| [**SignatureRequestEditWithTemplate**](SignatureRequestApi.md#signaturerequesteditwithtemplate) | **PUT** /signature_request/edit_with_template/{signature_request_id} | Edit Signature Request With Template |
| [**SignatureRequestFiles**](SignatureRequestApi.md#signaturerequestfiles) | **GET** /signature_request/files/{signature_request_id} | Download Files |
| [**SignatureRequestFilesAsDataUri**](SignatureRequestApi.md#signaturerequestfilesasdatauri) | **GET** /signature_request/files_as_data_uri/{signature_request_id} | Download Files as Data Uri |
| [**SignatureRequestFilesAsFileUrl**](SignatureRequestApi.md#signaturerequestfilesasfileurl) | **GET** /signature_request/files_as_file_url/{signature_request_id} | Download Files as File Url |
@@ -34,80 +38,114 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestBulkCreateEmbeddedWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
+ var signerList2CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "123 LLC"
+ );
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signerList2CustomFields = new List
+ {
+ signerList2CustomFields1,
+ };
- var signerList1Signer = new SubSignatureRequestTemplateSigner(
+ var signerList2Signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- name: "George",
- emailAddress: "george@example.com",
- pin: "d79a3td"
+ name: "Mary",
+ emailAddress: "mary@example.com",
+ pin: "gd9as5b"
);
- var signerList1CustomFields = new SubBulkSignerListCustomField(
+ var signerList2Signers = new List
+ {
+ signerList2Signers1,
+ };
+
+ var signerList1CustomFields1 = new SubBulkSignerListCustomField(
name: "company",
value: "ABC Corp"
);
- var signerList1 = new SubBulkSignerList(
- signers: new List(){signerList1Signer},
- customFields: new List(){signerList1CustomFields}
- );
+ var signerList1CustomFields = new List
+ {
+ signerList1CustomFields1,
+ };
- var signerList2Signer = new SubSignatureRequestTemplateSigner(
+ var signerList1Signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- name: "Mary",
- emailAddress: "mary@example.com",
- pin: "gd9as5b"
+ name: "George",
+ emailAddress: "george@example.com",
+ pin: "d79a3td"
);
- var signerList2CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "123 Corp"
+ var signerList1Signers = new List
+ {
+ signerList1Signers1,
+ };
+
+ var signerList1 = new SubBulkSignerList(
+ customFields: signerList1CustomFields,
+ signers: signerList1Signers
);
var signerList2 = new SubBulkSignerList(
- signers: new List(){signerList2Signer},
- customFields: new List(){signerList2CustomFields}
+ customFields: signerList2CustomFields,
+ signers: signerList2Signers
);
- var cc1 = new SubCC(
+ var signerList = new List
+ {
+ signerList1,
+ signerList2,
+ };
+
+ var ccs1 = new SubCC(
role: "Accounting",
- emailAddress: "accouting@email.com"
+ emailAddress: "accounting@example.com"
);
- var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var signatureRequestBulkCreateEmbeddedWithTemplateRequest = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
clientId: "1a659d9ad95bccd307ecad78d72192f8",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
message: "Glad we could come to an agreement.",
- signerList: new List(){signerList1, signerList2},
- ccs: new List(){cc1},
- testMode: true
+ subject: "Purchase Order",
+ testMode: true,
+ signerList: signerList,
+ ccs: ccs
);
try
{
- var result = signatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestBulkCreateEmbeddedWithTemplate(
+ signatureRequestBulkCreateEmbeddedWithTemplateRequest: signatureRequestBulkCreateEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestBulkCreateEmbeddedWithTemplate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -177,79 +215,629 @@ Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestBulkSendWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
+ var signerList2CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "123 LLC"
+ );
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signerList2CustomFields = new List
+ {
+ signerList2CustomFields1,
+ };
- var signerList1Signer = new SubSignatureRequestTemplateSigner(
+ var signerList2Signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- name: "George",
- emailAddress: "george@example.com",
- pin: "d79a3td"
+ name: "Mary",
+ emailAddress: "mary@example.com",
+ pin: "gd9as5b"
);
- var signerList1CustomFields = new SubBulkSignerListCustomField(
+ var signerList2Signers = new List
+ {
+ signerList2Signers1,
+ };
+
+ var signerList1CustomFields1 = new SubBulkSignerListCustomField(
name: "company",
value: "ABC Corp"
);
+ var signerList1CustomFields = new List
+ {
+ signerList1CustomFields1,
+ };
+
+ var signerList1Signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com",
+ pin: "d79a3td"
+ );
+
+ var signerList1Signers = new List
+ {
+ signerList1Signers1,
+ };
+
var signerList1 = new SubBulkSignerList(
- signers: new List(){signerList1Signer},
- customFields: new List(){signerList1CustomFields}
+ customFields: signerList1CustomFields,
+ signers: signerList1Signers
);
- var signerList2Signer = new SubSignatureRequestTemplateSigner(
+ var signerList2 = new SubBulkSignerList(
+ customFields: signerList2CustomFields,
+ signers: signerList2Signers
+ );
+
+ var signerList = new List
+ {
+ signerList1,
+ signerList2,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
+ );
+
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var signatureRequestBulkSendWithTemplateRequest = new SignatureRequestBulkSendWithTemplateRequest(
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signerList: signerList,
+ ccs: ccs
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestBulkSendWithTemplate(
+ signatureRequestBulkSendWithTemplateRequest: signatureRequestBulkSendWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestBulkSendWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
+
+```
+
+#### Using the SignatureRequestBulkSendWithTemplateWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Bulk Send with Template
+ ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestBulkSendWithTemplateWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | |
+
+### Return type
+
+[**BulkSendJobSendResponse**](BulkSendJobSendResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, multipart/form-data
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
|
+| **4XX** | failed_operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **SignatureRequestCancel**
+> void SignatureRequestCancel (string signatureRequestId)
+
+Cancel Incomplete Signature Request
+
+Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`.
+
+### Example
+```csharp
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCancelExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ new SignatureRequestApi(config).SignatureRequestCancel(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCancel: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
+
+```
+
+#### Using the SignatureRequestCancelWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Cancel Incomplete Signature Request
+ apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCancelWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **signatureRequestId** | **string** | The id of the incomplete SignatureRequest to cancel. | |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
|
+| **4XX** | failed_operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **SignatureRequestCreateEmbedded**
+> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest)
+
+Create Embedded Signature Request
+
+Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign.
+
+### Example
+```csharp
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCreateEmbeddedExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
+
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
+
+ var signatureRequestCreateEmbeddedRequest = new SignatureRequestCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestCreateEmbedded(
+ signatureRequestCreateEmbeddedRequest: signatureRequestCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCreateEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
+
+```
+
+#### Using the SignatureRequestCreateEmbeddedWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Create Embedded Signature Request
+ ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCreateEmbeddedWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | |
+
+### Return type
+
+[**SignatureRequestGetResponse**](SignatureRequestGetResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, multipart/form-data
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
|
+| **4XX** | failed_operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **SignatureRequestCreateEmbeddedWithTemplate**
+> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest)
+
+Create Embedded Signature Request with Template
+
+Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign.
+
+### Example
+```csharp
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCreateEmbeddedWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- name: "Mary",
- emailAddress: "mary@example.com",
- pin: "gd9as5b"
+ name: "George",
+ emailAddress: "george@example.com"
+ );
+
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var signatureRequestCreateEmbeddedWithTemplateRequest = new SignatureRequestCreateEmbeddedWithTemplateRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestCreateEmbeddedWithTemplate(
+ signatureRequestCreateEmbeddedWithTemplateRequest: signatureRequestCreateEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCreateEmbeddedWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
+
+```
+
+#### Using the SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Create Embedded Signature Request with Template
+ ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | |
+
+### Return type
+
+[**SignatureRequestGetResponse**](SignatureRequestGetResponse.md)
+
+### Authorization
+
+[api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, multipart/form-data
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | successful operation | * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
|
+| **4XX** | failed_operation | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **SignatureRequestEdit**
+> SignatureRequestGetResponse SignatureRequestEdit (string signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest)
+
+Edit Signature Request
+
+Edits and sends a SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. **NOTE:** Edit and resend *will* deduct your signature request quota.
+
+### Example
+```csharp
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
);
- var signerList2CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "123 Corp"
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
);
- var signerList2 = new SubBulkSignerList(
- signers: new List(){signerList2Signer},
- customFields: new List(){signerList2CustomFields}
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
);
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@email.com"
- );
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
- var data = new SignatureRequestBulkSendWithTemplateRequest(
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signerList: new List(){signerList1, signerList2},
- ccs: new List(){cc1},
- testMode: true
+ var signatureRequestEditRequest = new SignatureRequestEditRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
+ signingOptions: signingOptions,
+ signers: signers
);
try
{
- var result = signatureRequestApi.SignatureRequestBulkSendWithTemplate(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestEdit(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditRequest: signatureRequestEditRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEdit: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -258,21 +846,21 @@ public class Example
```
-#### Using the SignatureRequestBulkSendWithTemplateWithHttpInfo variant
+#### Using the SignatureRequestEditWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- // Bulk Send with Template
- ApiResponse response = apiInstance.SignatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest);
+ // Edit Signature Request
+ ApiResponse response = apiInstance.SignatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestBulkSendWithTemplateWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestEditWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -282,11 +870,12 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **signatureRequestBulkSendWithTemplateRequest** | [**SignatureRequestBulkSendWithTemplateRequest**](SignatureRequestBulkSendWithTemplateRequest.md) | | |
+| **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | |
+| **signatureRequestEditRequest** | [**SignatureRequestEditRequest**](SignatureRequestEditRequest.md) | | |
### Return type
-[**BulkSendJobSendResponse**](BulkSendJobSendResponse.md)
+[**SignatureRequestGetResponse**](SignatureRequestGetResponse.md)
### Authorization
@@ -306,45 +895,94 @@ catch (ApiException e)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **SignatureRequestCancel**
-> void SignatureRequestCancel (string signatureRequestId)
+
+# **SignatureRequestEditEmbedded**
+> SignatureRequestGetResponse SignatureRequestEditEmbedded (string signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest)
-Cancel Incomplete Signature Request
+Edit Embedded Signature Request
-Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`.
+Edits a SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Edit and resend *will* deduct your signature request quota.
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditEmbeddedExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
+ var signatureRequestEditEmbeddedRequest = new SignatureRequestEditEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ signingOptions: signingOptions,
+ signers: signers
+ );
try
{
- signatureRequestApi.SignatureRequestCancel(signatureRequestId);
+ var response = new SignatureRequestApi(config).SignatureRequestEditEmbedded(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditEmbeddedRequest: signatureRequestEditEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditEmbedded: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -353,18 +991,21 @@ public class Example
```
-#### Using the SignatureRequestCancelWithHttpInfo variant
+#### Using the SignatureRequestEditEmbeddedWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- // Cancel Incomplete Signature Request
- apiInstance.SignatureRequestCancelWithHttpInfo(signatureRequestId);
+ // Edit Embedded Signature Request
+ ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest);
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCancelWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestEditEmbeddedWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -374,11 +1015,12 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **signatureRequestId** | **string** | The id of the incomplete SignatureRequest to cancel. | |
+| **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | |
+| **signatureRequestEditEmbeddedRequest** | [**SignatureRequestEditEmbeddedRequest**](SignatureRequestEditEmbeddedRequest.md) | | |
### Return type
-void (empty response body)
+[**SignatureRequestGetResponse**](SignatureRequestGetResponse.md)
### Authorization
@@ -386,7 +1028,7 @@ void (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
+ - **Content-Type**: application/json, multipart/form-data
- **Accept**: application/json
@@ -398,85 +1040,78 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **SignatureRequestCreateEmbedded**
-> SignatureRequestGetResponse SignatureRequestCreateEmbedded (SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest)
+
+# **SignatureRequestEditEmbeddedWithTemplate**
+> SignatureRequestGetResponse SignatureRequestEditEmbeddedWithTemplate (string signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest)
-Create Embedded Signature Request
+Edit Embedded Signature Request with Template
-Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign.
+Edits a SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Edit and resend *will* deduct your signature request quota.
### Example
```csharp
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditEmbeddedWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
draw: true,
+ phone: false,
type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com"
);
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
+ var signers = new List
+ {
+ signers1,
};
- var data = new SignatureRequestCreateEmbeddedRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- title: "NDA with Acme Co.",
- subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
+ var signatureRequestEditEmbeddedWithTemplateRequest = new SignatureRequestEditEmbeddedWithTemplateRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
signingOptions: signingOptions,
- testMode: true
+ signers: signers
);
try
{
- var result = signatureRequestApi.SignatureRequestCreateEmbedded(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestEditEmbeddedWithTemplate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditEmbeddedWithTemplateRequest: signatureRequestEditEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditEmbeddedWithTemplate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -485,21 +1120,21 @@ public class Example
```
-#### Using the SignatureRequestCreateEmbeddedWithHttpInfo variant
+#### Using the SignatureRequestEditEmbeddedWithTemplateWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- // Create Embedded Signature Request
- ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest);
+ // Edit Embedded Signature Request with Template
+ ApiResponse response = apiInstance.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCreateEmbeddedWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestEditEmbeddedWithTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -509,7 +1144,8 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **signatureRequestCreateEmbeddedRequest** | [**SignatureRequestCreateEmbeddedRequest**](SignatureRequestCreateEmbeddedRequest.md) | | |
+| **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | |
+| **signatureRequestEditEmbeddedWithTemplateRequest** | [**SignatureRequestEditEmbeddedWithTemplateRequest**](SignatureRequestEditEmbeddedWithTemplateRequest.md) | | |
### Return type
@@ -533,66 +1169,101 @@ catch (ApiException e)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **SignatureRequestCreateEmbeddedWithTemplate**
-> SignatureRequestGetResponse SignatureRequestCreateEmbeddedWithTemplate (SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest)
+
+# **SignatureRequestEditWithTemplate**
+> SignatureRequestGetResponse SignatureRequestEditWithTemplate (string signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest)
-Create Embedded Signature Request with Template
+Edit Signature Request With Template
-Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign.
+Edits and sends a SignatureRequest based off of the Template(s) specified with the template_ids parameter. **NOTE:** Edit and resend *will* deduct your signature request quota.
### Example
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
- var signer1 = new SubSignatureRequestTemplateSigner(
+ var signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- name: "George"
+ name: "George",
+ emailAddress: "george@example.com"
);
- var subSigningOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
);
- var data = new SignatureRequestCreateEmbeddedWithTemplateRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var customFields1 = new SubCustomField(
+ name: "Cost",
+ editor: "Client",
+ required: true,
+ value: "$20,000"
+ );
+
+ var customFields = new List
+ {
+ customFields1,
+ };
+
+ var signatureRequestEditWithTemplateRequest = new SignatureRequestEditWithTemplateRequest(
+ templateIds: [
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- signingOptions: subSigningOptions,
- testMode: true
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers,
+ ccs: ccs,
+ customFields: customFields
);
try
{
- var result = signatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestEditWithTemplate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditWithTemplateRequest: signatureRequestEditWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditWithTemplate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -601,21 +1272,21 @@ public class Example
```
-#### Using the SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo variant
+#### Using the SignatureRequestEditWithTemplateWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- // Create Embedded Signature Request with Template
- ApiResponse response = apiInstance.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest);
+ // Edit Signature Request With Template
+ ApiResponse response = apiInstance.SignatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestCreateEmbeddedWithTemplateWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling SignatureRequestApi.SignatureRequestEditWithTemplateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -625,7 +1296,8 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **signatureRequestCreateEmbeddedWithTemplateRequest** | [**SignatureRequestCreateEmbeddedWithTemplateRequest**](SignatureRequestCreateEmbeddedWithTemplateRequest.md) | | |
+| **signatureRequestId** | **string** | The id of the SignatureRequest to edit. | |
+| **signatureRequestEditWithTemplateRequest** | [**SignatureRequestEditWithTemplateRequest**](SignatureRequestEditWithTemplateRequest.md) | | |
### Return type
@@ -661,37 +1333,37 @@ Obtain a copy of the current documents specified by the `signature_request_id` p
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestFiles(signatureRequestId, "pdf");
-
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
+ var response = new SignatureRequestApi(config).SignatureRequestFiles(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ fileType: "pdf"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
fileStream.Close();
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFiles: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -761,33 +1433,34 @@ Obtain a copy of the current documents specified by the `signature_request_id` p
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesAsDataUriExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestFilesAsDataUri(signatureRequestId);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestFilesAsDataUri(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFilesAsDataUri: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -856,33 +1529,35 @@ Obtain a copy of the current documents specified by the `signature_request_id` p
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesAsFileUrlExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestFilesAsFileUrl(signatureRequestId);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestFilesAsFileUrl(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ forceDownload: 1
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFilesAsFileUrl: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -952,33 +1627,34 @@ Returns the status of the SignatureRequest specified by the `signature_request_i
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestGet(signatureRequestId);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestGet(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1047,33 +1723,35 @@ Returns a list of SignatureRequests that you can access. This includes Signature
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var accountId = "accountId";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestList(accountId);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1145,33 +1823,34 @@ Releases a held SignatureRequest that was claimed and prepared from an [Unclaime
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestReleaseHoldExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = signatureRequestApi.SignatureRequestReleaseHold(signatureRequestId);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestReleaseHold(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestReleaseHold: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1240,37 +1919,39 @@ Sends an email to the signer reminding them to sign the signature request. You c
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestRemindExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var data = new SignatureRequestRemindRequest(
+ var signatureRequestRemindRequest = new SignatureRequestRemindRequest(
emailAddress: "john@example.com"
);
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
try
{
- var result = signatureRequestApi.SignatureRequestRemind(signatureRequestId, data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestRemind(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestRemindRequest: signatureRequestRemindRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestRemind: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1340,32 +2021,31 @@ Removes your access to a completed signature request. This action is **not rever
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestRemoveExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
try
{
- signatureRequestApi.SignatureRequestRemove(signatureRequestId);
+ new SignatureRequestApi(config).SignatureRequestRemove(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestRemove: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1432,83 +2112,90 @@ Creates and sends a new SignatureRequest with the submitted documents. If `form_
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestSendExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
+ var signers1 = new SubSignatureRequestSigner(
name: "Jack",
+ emailAddress: "jack@example.com",
order: 0
);
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
+ var signers2 = new SubSignatureRequestSigner(
name: "Jill",
+ emailAddress: "jill@example.com",
order: 1
);
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var metadata = new Dictionary()
+ var signers = new List
{
- ["custom_id"] = 1234,
- ["custom_text"] = "NDA #9"
+ signers1,
+ signers2,
};
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new SignatureRequestSendRequest(
- title: "NDA with Acme Co.",
+ var signatureRequestSendRequest = new SignatureRequestSendRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- metadata: metadata,
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
signingOptions: signingOptions,
- fieldOptions: subFieldOptions,
- testMode: true
+ signers: signers
);
try
{
- var result = signatureRequestApi.SignatureRequestSend(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestSend(
+ signatureRequestSendRequest: signatureRequestSendRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestSend: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1577,68 +2264,88 @@ Creates and sends a new SignatureRequest based off of the Template(s) specified
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestSendWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
- var signer1 = new SubSignatureRequestTemplateSigner(
+ var signers1 = new SubSignatureRequestTemplateSigner(
role: "Client",
- emailAddress: "george@example.com",
- name: "George"
+ name: "George",
+ emailAddress: "george@example.com"
);
- var cc1 = new SubCC(
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var ccs1 = new SubCC(
role: "Accounting",
- emailAddress: "accouting@emaple.com"
+ emailAddress: "accounting@example.com"
);
- var customField1 = new SubCustomField(
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var customFields1 = new SubCustomField(
name: "Cost",
- value: "$20,000",
editor: "Client",
- required: true
+ required: true,
+ value: "$20,000"
);
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
+ var customFields = new List
+ {
+ customFields1,
+ };
- var data = new SignatureRequestSendWithTemplateRequest(
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
+ var signatureRequestSendWithTemplateRequest = new SignatureRequestSendWithTemplateRequest(
+ templateIds: [
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- ccs: new List(){cc1},
- customFields: new List(){customField1},
+ subject: "Purchase Order",
+ testMode: true,
signingOptions: signingOptions,
- testMode: true
+ signers: signers,
+ ccs: ccs,
+ customFields: customFields
);
try
{
- var result = signatureRequestApi.SignatureRequestSendWithTemplate(data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestSendWithTemplate(
+ signatureRequestSendWithTemplateRequest: signatureRequestSendWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestSendWithTemplate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1707,38 +2414,40 @@ Updates the email address and/or the name for a given signer on a signature requ
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestUpdateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- var data = new SignatureRequestUpdateRequest(
- emailAddress: "john@example.com",
- signatureId: "78caf2a1d01cd39cea2bc1cbb340dac3"
+ var signatureRequestUpdateRequest = new SignatureRequestUpdateRequest(
+ signatureId: "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f",
+ emailAddress: "john@example.com"
);
try
{
- var result = signatureRequestApi.SignatureRequestUpdate(signatureRequestId, data);
- Console.WriteLine(result);
+ var response = new SignatureRequestApi(config).SignatureRequestUpdate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestUpdateRequest: signatureRequestUpdateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestUpdate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/SignatureRequestEditEmbeddedRequest.md b/docs/SignatureRequestEditEmbeddedRequest.md
new file mode 100644
index 0000000..3d7e417
--- /dev/null
+++ b/docs/SignatureRequestEditEmbeddedRequest.md
@@ -0,0 +1,10 @@
+# Dropbox.Sign.Model.SignatureRequestEditEmbeddedRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.
This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.
This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.
**NOTE:** Only available for Premium plan. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.
Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.
For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)
**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.
* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.
**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.
Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false]**PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.
**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SignatureRequestEditEmbeddedWithTemplateRequest.md b/docs/SignatureRequestEditEmbeddedWithTemplateRequest.md
new file mode 100644
index 0000000..8be8d1b
--- /dev/null
+++ b/docs/SignatureRequestEditEmbeddedWithTemplateRequest.md
@@ -0,0 +1,10 @@
+# Dropbox.Sign.Model.SignatureRequestEditEmbeddedWithTemplateRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **ClientId** | **string** | Client id of the app you're using to create this embedded signature request. Used for security purposes. | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.
Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **PopulateAutoFillFields** | **bool** | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing.
**NOTE:** Keep your signer's information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | [optional] [default to false]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SignatureRequestEditRequest.md b/docs/SignatureRequestEditRequest.md
new file mode 100644
index 0000000..20f2164
--- /dev/null
+++ b/docs/SignatureRequestEditRequest.md
@@ -0,0 +1,10 @@
+# Dropbox.Sign.Model.SignatureRequestEditRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **Signers** | [**List<SubSignatureRequestSigner>**](SubSignatureRequestSigner.md) | Add Signers to your Signature Request.
This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **GroupedSigners** | [**List<SubSignatureRequestGroupedSigners>**](SubSignatureRequestGroupedSigners.md) | Add Grouped Signers to your Signature Request.
This endpoint requires either **signers** or **grouped_signers**, but not both. | [optional] **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**AllowReassign** | **bool** | Allows signers to reassign their signature requests to other signers if set to `true`. Defaults to `false`.
**NOTE:** Only available for Premium plan and higher. | [optional] [default to false]**Attachments** | [**List<SubAttachment>**](SubAttachment.md) | A list describing the attachments | [optional] **CcEmailAddresses** | **List<string>** | The email addresses that should be CCed. | [optional] **ClientId** | **string** | The client id of the API App you want to associate with this request. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.
Pre-filled data can be used with "send-once" signature requests by adding merge fields with `form_fields_per_document` or [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) while passing values back with `custom_fields` together in one API call.
For using pre-filled on repeatable signature requests, merge fields are added to templates in the Dropbox Sign UI or by calling [/template/create_embedded_draft](/api/reference/operation/templateCreateEmbeddedDraft) and then passing `custom_fields` on subsequent signature requests referencing that template. | [optional] **FieldOptions** | [**SubFieldOptions**](SubFieldOptions.md) | | [optional] **FormFieldGroups** | [**List<SubFormFieldGroup>**](SubFormFieldGroup.md) | Group information for fields defined in `form_fields_per_document`. String-indexed JSON array with `group_label` and `requirement` keys. `form_fields_per_document` must contain fields referencing a group defined in `form_field_groups`. | [optional] **FormFieldRules** | [**List<SubFormFieldRule>**](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | [optional] **FormFieldsPerDocument** | [**List<SubFormFieldsPerDocumentBase>**](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)
**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.
* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | [optional] **HideTextTags** | **bool** | Enables automatic Text Tag removal when set to true.
**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [optional] [default to false]**IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.
Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false]**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SignatureRequestEditWithTemplateRequest.md b/docs/SignatureRequestEditWithTemplateRequest.md
new file mode 100644
index 0000000..d9ac882
--- /dev/null
+++ b/docs/SignatureRequestEditWithTemplateRequest.md
@@ -0,0 +1,10 @@
+# Dropbox.Sign.Model.SignatureRequestEditWithTemplateRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TemplateIds** | **List<string>** | Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. | **Signers** | [**List<SubSignatureRequestTemplateSigner>**](SubSignatureRequestTemplateSigner.md) | Add Signers to your Templated-based Signature Request. | **AllowDecline** | **bool** | Allows signers to decline to sign a document if `true`. Defaults to `false`. | [optional] [default to false]**Ccs** | [**List<SubCC>**](SubCC.md) | Add CC email recipients. Required when a CC role exists for the Template. | [optional] **ClientId** | **string** | Client id of the app to associate with the signature request. Used to apply the branding and callback url defined for the app. | [optional] **CustomFields** | [**List<SubCustomField>**](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | [optional] **Files** | **List<System.IO.Stream>** | Use `files[]` to indicate the uploaded file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **FileUrls** | **List<string>** | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.
This endpoint requires either **files** or **file_urls[]**, but not both. | [optional] **IsEid** | **bool** | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [optional] [default to false]**Message** | **string** | The custom message in the email that will be sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.
Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | [optional] **SigningOptions** | [**SubSigningOptions**](SubSigningOptions.md) | | [optional] **SigningRedirectUrl** | **string** | The URL you want signers redirected to after they successfully sign. | [optional] **Subject** | **string** | The subject in the email that will be sent to the signers. | [optional] **TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/TeamApi.md b/docs/TeamApi.md
index 64d8dd5..2e5e878 100644
--- a/docs/TeamApi.md
+++ b/docs/TeamApi.md
@@ -27,35 +27,39 @@ Invites a user (specified using the `email_address` parameter) to your Team. If
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamAddMemberExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamAddMemberRequest(
+ var teamAddMemberRequest = new TeamAddMemberRequest(
emailAddress: "george@example.com"
);
try
{
- var result = teamApi.TeamAddMember(data);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamAddMember(
+ teamAddMemberRequest: teamAddMemberRequest,
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamAddMember: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -125,35 +129,38 @@ Creates a new Team and makes you a member. You must not currently belong to a Te
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamCreateRequest(
+ var teamCreateRequest = new TeamCreateRequest(
name: "New Team Name"
);
try
{
- var result = teamApi.TeamCreate(data);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamCreate(
+ teamCreateRequest: teamCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -222,30 +229,30 @@ Deletes your Team. Can only be invoked when you have a Team with only one member
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- teamApi.TeamDelete();
+ new TeamApi(config).TeamDelete();
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -307,31 +314,32 @@ Returns information about your Team as well as a list of its members. If you do
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = teamApi.TeamGet();
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamGet();
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -396,31 +404,34 @@ Provides information about a team.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamInfoExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = teamApi.TeamInfo();
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamInfo(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamInfo: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -489,32 +500,32 @@ Provides a list of team invites (and their roles).
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamInvitesExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var emailAddress = "user@dropboxsign.com";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = teamApi.TeamInvites(emailAddress);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamInvites();
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamInvites: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -583,32 +594,36 @@ Provides a paginated list of members (and their roles) that belong to a given te
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamMembersExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = teamApi.TeamMembers(teamId);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamMembers(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamMembers: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -679,36 +694,39 @@ Removes the provided user Account from your Team. If the Account had an outstand
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamRemoveMemberExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamRemoveMemberRequest(
+ var teamRemoveMemberRequest = new TeamRemoveMemberRequest(
emailAddress: "teammate@dropboxsign.com",
newOwnerEmailAddress: "new_teammate@dropboxsign.com"
);
try
{
- var result = teamApi.TeamRemoveMember(data);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamRemoveMember(
+ teamRemoveMemberRequest: teamRemoveMemberRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamRemoveMember: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -777,32 +795,36 @@ Provides a paginated list of sub teams that belong to a given team.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamSubTeamsExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = teamApi.TeamSubTeams(teamId);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamSubTeams(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamSubTeams: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -873,35 +895,38 @@ Updates the name of your Team.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamUpdateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamUpdateRequest(
+ var teamUpdateRequest = new TeamUpdateRequest(
name: "New Team Name"
);
try
{
- var result = teamApi.TeamUpdate(data);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamUpdate(
+ teamUpdateRequest: teamUpdateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamUpdate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md
index c51decd..f9c66e1 100644
--- a/docs/TemplateApi.md
+++ b/docs/TemplateApi.md
@@ -28,37 +28,39 @@ Gives the specified Account access to the specified Template. The specified Acco
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateAddUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- var data = new TemplateAddUserRequest(
+ var templateAddUserRequest = new TemplateAddUserRequest(
emailAddress: "george@dropboxsign.com"
);
try
{
- var result = templateApi.TemplateAddUser(templateId, data);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateAddUser(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateAddUserRequest: templateAddUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateAddUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -129,77 +131,127 @@ Creates a template that can then be used.
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
- var role1 = new SubTemplateRole(
+ var signerRoles1 = new SubTemplateRole(
name: "Client",
order: 0
);
- var role2 = new SubTemplateRole(
+ var signerRoles2 = new SubTemplateRole(
name: "Witness",
order: 1
);
- var mergeField1 = new SubMergeField(
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "1",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ placeholder: "",
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
name: "Full Name",
type: SubMergeField.TypeEnum.Text
);
- var mergeField2 = new SubMergeField(
+ var mergeFields2 = new SubMergeField(
name: "Is Registered?",
type: SubMergeField.TypeEnum.Checkbox
);
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
};
- var data = new TemplateCreateRequest(
+ var templateCreateRequest = new TemplateCreateRequest(
clientId: "37dee8d8440c66d54cfa05d92c160882",
- files: files,
- title: "Test Template",
- subject: "Please sign this document",
message: "For your approval",
- signerRoles: new List(){role1, role2},
- ccRoles: new List(){"Manager"},
- mergeFields: new List(){mergeField1, mergeField2},
- fieldOptions: subFieldOptions,
- testMode: true
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ ccRoles: [
+ "Manager",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ fieldOptions: fieldOptions,
+ signerRoles: signerRoles,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields
);
try
{
- var result = templateApi.TemplateCreate(data);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateCreate(
+ templateCreateRequest: templateCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -269,77 +321,90 @@ The first step in an embedded template workflow. Creates a draft template that c
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateEmbeddedDraftExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var role1 = new SubTemplateRole(
- name: "Client",
- order: 0
- );
-
- var role2 = new SubTemplateRole(
- name: "Witness",
- order: 1
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
);
- var mergeField1 = new SubMergeField(
+ var mergeFields1 = new SubMergeField(
name: "Full Name",
type: SubMergeField.TypeEnum.Text
);
- var mergeField2 = new SubMergeField(
+ var mergeFields2 = new SubMergeField(
name: "Is Registered?",
type: SubMergeField.TypeEnum.Checkbox
);
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
);
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
};
- var data = new TemplateCreateEmbeddedDraftRequest(
+ var templateCreateEmbeddedDraftRequest = new TemplateCreateEmbeddedDraftRequest(
clientId: "37dee8d8440c66d54cfa05d92c160882",
- files: files,
- title: "Test Template",
- subject: "Please sign this document",
message: "For your approval",
- signerRoles: new List(){role1, role2},
- ccRoles: new List(){"Manager"},
- mergeFields: new List(){mergeField1, mergeField2},
- fieldOptions: subFieldOptions,
- testMode: true
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ ccRoles: [
+ "Manager",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ fieldOptions: fieldOptions,
+ mergeFields: mergeFields,
+ signerRoles: signerRoles
);
try
{
- var result = templateApi.TemplateCreateEmbeddedDraft(data);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateCreateEmbeddedDraft(
+ templateCreateEmbeddedDraftRequest: templateCreateEmbeddedDraftRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreateEmbeddedDraft: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -408,32 +473,32 @@ Completely deletes the template specified from the account.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- templateApi.TemplateDelete(templateId);
+ new TemplateApi(config).TemplateDelete(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -499,37 +564,36 @@ Obtain a copy of the current documents specified by the `template_id` parameter.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = templateApi.TemplateFiles(templateId, "pdf");
-
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
+ var response = new TemplateApi(config).TemplateFiles(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
fileStream.Close();
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFiles: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -599,33 +663,34 @@ Obtain a copy of the current documents specified by the `template_id` parameter.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesAsDataUriExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = templateApi.TemplateFilesAsDataUri(templateId, "pdf", false, false);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateFilesAsDataUri(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFilesAsDataUri: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -694,33 +759,35 @@ Obtain a copy of the current documents specified by the `template_id` parameter.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesAsFileUrlExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = templateApi.TemplateFilesAsFileUrl(templateId, "pdf", false, false);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateFilesAsFileUrl(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ forceDownload: 1
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFilesAsFileUrl: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -790,33 +857,34 @@ Returns the Template specified by the `template_id` parameter.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = templateApi.TemplateGet(templateId);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateGet(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -885,33 +953,35 @@ Returns a list of the Templates that are accessible by you. Take a look at our
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var accountId = "f57db65d3f933b5316d398057a36176831451a35";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = templateApi.TemplateList(accountId, 1, 20, null);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -983,37 +1053,39 @@ Removes the specified Account's access to the specified Template.
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateRemoveUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var data = new TemplateRemoveUserRequest(
+ var templateRemoveUserRequest = new TemplateRemoveUserRequest(
emailAddress: "george@dropboxsign.com"
);
- var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536";
-
try
{
- var result = templateApi.TemplateRemoveUser(templateId, data);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateRemoveUser(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateRemoveUserRequest: templateRemoveUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateRemoveUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -1084,46 +1156,44 @@ Overlays a new file with the overlay of an existing template. The new file(s) mu
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TemplateUpdateFilesExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new TemplateUpdateFilesRequest(
- files: files
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var templateUpdateFilesRequest = new TemplateUpdateFilesRequest(
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ }
);
- var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536";
-
try
{
- var result = templateApi.TemplateUpdateFiles(templateId, data);
- Console.WriteLine(result);
+ var response = new TemplateApi(config).TemplateUpdateFiles(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateUpdateFilesRequest: templateUpdateFilesRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TemplateApi#TemplateUpdateFiles: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/docs/UnclaimedDraftApi.md b/docs/UnclaimedDraftApi.md
index 7d5a0e1..3bd6eda 100644
--- a/docs/UnclaimedDraftApi.md
+++ b/docs/UnclaimedDraftApi.md
@@ -22,83 +22,57 @@ Creates a new Draft that can be claimed using the claim URL. The first authentic
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
-
- var signer1 = new SubUnclaimedDraftSigner(
- emailAddress: "jack@example.com",
+ var signers1 = new SubUnclaimedDraftSigner(
name: "Jack",
+ emailAddress: "jack@example.com",
order: 0
);
- var signer2 = new SubUnclaimedDraftSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var subSigningOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
- );
-
- var metadata = new Dictionary()
+ var signers = new List
{
- ["custom_id"] = 1234,
- ["custom_text"] = "NDA #9"
- };
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
+ signers1,
};
- var data = new UnclaimedDraftCreateRequest(
- subject: "The NDA we talked about",
+ var unclaimedDraftCreateRequest = new UnclaimedDraftCreateRequest(
type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature,
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- metadata: metadata,
- signingOptions: subSigningOptions,
- fieldOptions: subFieldOptions,
- testMode: true
+ testMode: true,
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ signers: signers
);
try
{
- var result = unclaimedDraftApi.UnclaimedDraftCreate(data);
- Console.WriteLine(result);
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftCreate(
+ unclaimedDraftCreateRequest: unclaimedDraftCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -168,47 +142,46 @@ Creates a new Draft that can be claimed and used in an embedded iFrame. The firs
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateEmbeddedExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new UnclaimedDraftCreateEmbeddedRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- files: files,
+ var unclaimedDraftCreateEmbeddedRequest = new UnclaimedDraftCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
requesterEmailAddress: "jack@dropboxsign.com",
- testMode: true
+ testMode: true,
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ }
);
try
{
- var result = unclaimedDraftApi.UnclaimedDraftCreateEmbedded(data);
- Console.WriteLine(result);
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftCreateEmbedded(
+ unclaimedDraftCreateEmbeddedRequest: unclaimedDraftCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftCreateEmbedded: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -277,51 +250,66 @@ Creates a new Draft with a previously saved template(s) that can be claimed and
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateEmbeddedWithTemplateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@dropboxsign.com"
+ );
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
+ var ccs = new List
+ {
+ ccs1,
+ };
- var signer = new SubUnclaimedDraftTemplateSigner(
+ var signers1 = new SubUnclaimedDraftTemplateSigner(
role: "Client",
name: "George",
emailAddress: "george@example.com"
);
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@email.com"
- );
+ var signers = new List
+ {
+ signers1,
+ };
- var data = new UnclaimedDraftCreateEmbeddedWithTemplateRequest(
- clientId: "1a659d9ad95bccd307ecad78d72192f8",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
+ var unclaimedDraftCreateEmbeddedWithTemplateRequest = new UnclaimedDraftCreateEmbeddedWithTemplateRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
requesterEmailAddress: "jack@dropboxsign.com",
- signers: new List(){signer},
- ccs: new List(){cc1},
- testMode: true
+ templateIds: [
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ testMode: false,
+ ccs: ccs,
+ signers: signers
);
try
{
- var result = unclaimedDraftApi.UnclaimedDraftCreateEmbeddedWithTemplate(data);
- Console.WriteLine(result);
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftCreateEmbeddedWithTemplate(
+ unclaimedDraftCreateEmbeddedWithTemplateRequest: unclaimedDraftCreateEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftCreateEmbeddedWithTemplate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
@@ -390,38 +378,40 @@ Creates a new signature request from an embedded request that can be edited prio
```csharp
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftEditAndResendExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
-
- var data = new UnclaimedDraftEditAndResendRequest(
- clientId: "1a659d9ad95bccd307ecad78d72192f8",
- testMode: true
+ var unclaimedDraftEditAndResendRequest = new UnclaimedDraftEditAndResendRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ testMode: false
);
- var signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f";
-
try
{
- var result = unclaimedDraftApi.UnclaimedDraftEditAndResend(signatureRequestId, data);
- Console.WriteLine(result);
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftEditAndResend(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ unclaimedDraftEditAndResendRequest: unclaimedDraftEditAndResendRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftEditAndResend: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/AccountCreate.cs b/examples/AccountCreate.cs
deleted file mode 100644
index 360f775..0000000
--- a/examples/AccountCreate.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountCreateRequest(
- emailAddress: "newuser@dropboxsign.com"
- );
-
- try
- {
- var result = accountApi.AccountCreate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/AccountCreateExample.cs b/examples/AccountCreateExample.cs
new file mode 100644
index 0000000..373d6a2
--- /dev/null
+++ b/examples/AccountCreateExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class AccountCreateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var accountCreateRequest = new AccountCreateRequest(
+ emailAddress: "newuser@dropboxsign.com"
+ );
+
+ try
+ {
+ var response = new AccountApi(config).AccountCreate(
+ accountCreateRequest: accountCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling AccountApi#AccountCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/AccountCreateOauthExample.cs b/examples/AccountCreateOauthExample.cs
new file mode 100644
index 0000000..1976cb1
--- /dev/null
+++ b/examples/AccountCreateOauthExample.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class AccountCreateOauthExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var accountCreateRequest = new AccountCreateRequest(
+ emailAddress: "newuser@dropboxsign.com",
+ clientId: "cc91c61d00f8bb2ece1428035716b",
+ clientSecret: "1d14434088507ffa390e6f5528465"
+ );
+
+ try
+ {
+ var response = new AccountApi(config).AccountCreate(
+ accountCreateRequest: accountCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling AccountApi#AccountCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/AccountGet.cs b/examples/AccountGet.cs
deleted file mode 100644
index e6e35af..0000000
--- a/examples/AccountGet.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- try
- {
- var result = accountApi.AccountGet(null, "jack@example.com");
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/AccountGetExample.cs b/examples/AccountGetExample.cs
new file mode 100644
index 0000000..83d9471
--- /dev/null
+++ b/examples/AccountGetExample.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class AccountGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new AccountApi(config).AccountGet();
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling AccountApi#AccountGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/AccountUpdate.cs b/examples/AccountUpdate.cs
deleted file mode 100644
index 2261b47..0000000
--- a/examples/AccountUpdate.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountUpdateRequest(
- callbackUrl: "https://www.example.com/callback"
- );
-
- try
- {
- var result = accountApi.AccountUpdate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/AccountUpdateExample.cs b/examples/AccountUpdateExample.cs
new file mode 100644
index 0000000..f62bb11
--- /dev/null
+++ b/examples/AccountUpdateExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class AccountUpdateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var accountUpdateRequest = new AccountUpdateRequest(
+ callbackUrl: "https://www.example.com/callback",
+ locale: "en-US"
+ );
+
+ try
+ {
+ var response = new AccountApi(config).AccountUpdate(
+ accountUpdateRequest: accountUpdateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling AccountApi#AccountUpdate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/AccountVerify.cs b/examples/AccountVerify.cs
deleted file mode 100644
index 36aacd0..0000000
--- a/examples/AccountVerify.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var accountApi = new AccountApi(config);
-
- var data = new AccountVerifyRequest(
- emailAddress: "some_user@dropboxsign.com"
- );
-
- try
- {
- var result = accountApi.AccountVerify(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/AccountVerifyExample.cs b/examples/AccountVerifyExample.cs
new file mode 100644
index 0000000..cba5133
--- /dev/null
+++ b/examples/AccountVerifyExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class AccountVerifyExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var accountVerifyRequest = new AccountVerifyRequest(
+ emailAddress: "some_user@dropboxsign.com"
+ );
+
+ try
+ {
+ var response = new AccountApi(config).AccountVerify(
+ accountVerifyRequest: accountVerifyRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling AccountApi#AccountVerify: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ApiAppCreate.cs b/examples/ApiAppCreate.cs
deleted file mode 100644
index bc78c64..0000000
--- a/examples/ApiAppCreate.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var oauth = new SubOAuth(
- callbackUrl: "https://example.com/oauth",
- scopes: new List() {
- SubOAuth.ScopesEnum.BasicAccountInfo,
- SubOAuth.ScopesEnum.RequestSignature
- }
- );
-
- var whiteLabelingOptions = new SubWhiteLabelingOptions(
- primaryButtonColor: "#00b3e6",
- primaryButtonTextColor: "#ffffff"
- );
-
- var customLogoFile = new FileStream(
- "CustomLogoFile.png",
- FileMode.Open
- );
-
- var data = new ApiAppCreateRequest(
- name: "My Production App",
- domains: new List(){"example.com"},
- oauth: oauth,
- whiteLabelingOptions: whiteLabelingOptions,
- customLogoFile: customLogoFile
- );
-
- try
- {
- var result = apiAppApi.ApiAppCreate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/ApiAppCreateExample.cs b/examples/ApiAppCreateExample.cs
new file mode 100644
index 0000000..277e401
--- /dev/null
+++ b/examples/ApiAppCreateExample.cs
@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class ApiAppCreateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var oauth = new SubOAuth(
+ callbackUrl: "https://example.com/oauth",
+ scopes: [
+ SubOAuth.ScopesEnum.BasicAccountInfo,
+ SubOAuth.ScopesEnum.RequestSignature,
+ ]
+ );
+
+ var whiteLabelingOptions = new SubWhiteLabelingOptions(
+ primaryButtonColor: "#00b3e6",
+ primaryButtonTextColor: "#ffffff"
+ );
+
+ var apiAppCreateRequest = new ApiAppCreateRequest(
+ name: "My Production App",
+ domains: [
+ "example.com",
+ ],
+ customLogoFile: new FileStream(
+ path: "CustomLogoFile.png",
+ mode: FileMode.Open
+ ),
+ oauth: oauth,
+ whiteLabelingOptions: whiteLabelingOptions
+ );
+
+ try
+ {
+ var response = new ApiAppApi(config).ApiAppCreate(
+ apiAppCreateRequest: apiAppCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ApiAppDelete.cs b/examples/ApiAppDelete.cs
deleted file mode 100644
index 540adfe..0000000
--- a/examples/ApiAppDelete.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
-
- try
- {
- apiAppApi.ApiAppDelete(clientId);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/ApiAppDeleteExample.cs b/examples/ApiAppDeleteExample.cs
new file mode 100644
index 0000000..87235a6
--- /dev/null
+++ b/examples/ApiAppDeleteExample.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class ApiAppDeleteExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ new ApiAppApi(config).ApiAppDelete(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9"
+ );
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppDelete: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ApiAppGet.cs b/examples/ApiAppGet.cs
deleted file mode 100644
index 260e507..0000000
--- a/examples/ApiAppGet.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
-
- try
- {
- var result = apiAppApi.ApiAppGet(clientId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/ApiAppGetExample.cs b/examples/ApiAppGetExample.cs
new file mode 100644
index 0000000..8bbf80a
--- /dev/null
+++ b/examples/ApiAppGetExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class ApiAppGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new ApiAppApi(config).ApiAppGet(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ApiAppList.cs b/examples/ApiAppList.cs
deleted file mode 100644
index 094fb3b..0000000
--- a/examples/ApiAppList.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var page = 1;
- var pageSize = 2;
-
- try
- {
- var result = apiAppApi.ApiAppList(page, pageSize);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/ApiAppListExample.cs b/examples/ApiAppListExample.cs
new file mode 100644
index 0000000..be90602
--- /dev/null
+++ b/examples/ApiAppListExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class ApiAppListExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new ApiAppApi(config).ApiAppList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppList: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ApiAppUpdate.cs b/examples/ApiAppUpdate.cs
deleted file mode 100644
index 4bca7cc..0000000
--- a/examples/ApiAppUpdate.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiAppApi = new ApiAppApi(config);
-
- var oauth = new SubOAuth(
- callbackUrl: "https://example.com/oauth",
- scopes: new List() {
- SubOAuth.ScopesEnum.BasicAccountInfo,
- SubOAuth.ScopesEnum.RequestSignature
- }
- );
-
- var whiteLabelingOptions = new SubWhiteLabelingOptions(
- primaryButtonColor: "#00b3e6",
- primaryButtonTextColor: "#ffffff"
- );
-
- var customLogoFile = new FileStream(
- "CustomLogoFile.png",
- FileMode.Open
- );
-
- var data = new ApiAppUpdateRequest(
- name: "My Production App",
- domains: new List(){"example.com"},
- oauth: oauth,
- whiteLabelingOptions: whiteLabelingOptions,
- customLogoFile: customLogoFile
- );
-
- var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
-
- try
- {
- var result = apiAppApi.ApiAppUpdate(clientId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/ApiAppUpdateExample.cs b/examples/ApiAppUpdateExample.cs
new file mode 100644
index 0000000..3eb03a1
--- /dev/null
+++ b/examples/ApiAppUpdateExample.cs
@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class ApiAppUpdateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var oauth = new SubOAuth(
+ callbackUrl: "https://example.com/oauth",
+ scopes: [
+ SubOAuth.ScopesEnum.BasicAccountInfo,
+ SubOAuth.ScopesEnum.RequestSignature,
+ ]
+ );
+
+ var whiteLabelingOptions = new SubWhiteLabelingOptions(
+ primaryButtonColor: "#00b3e6",
+ primaryButtonTextColor: "#ffffff"
+ );
+
+ var apiAppUpdateRequest = new ApiAppUpdateRequest(
+ callbackUrl: "https://example.com/dropboxsign",
+ name: "New Name",
+ domains: [
+ "example.com",
+ ],
+ customLogoFile: new FileStream(
+ path: "CustomLogoFile.png",
+ mode: FileMode.Open
+ ),
+ oauth: oauth,
+ whiteLabelingOptions: whiteLabelingOptions
+ );
+
+ try
+ {
+ var response = new ApiAppApi(config).ApiAppUpdate(
+ clientId: "0dd3b823a682527788c4e40cb7b6f7e9",
+ apiAppUpdateRequest: apiAppUpdateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling ApiAppApi#ApiAppUpdate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/BulkSendJobGet.cs b/examples/BulkSendJobGet.cs
deleted file mode 100644
index 42a805c..0000000
--- a/examples/BulkSendJobGet.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var bulkSendJobApi = new BulkSendJobApi(config);
-
- var bulkSendJobId = "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174";
-
- try
- {
- var result = bulkSendJobApi.BulkSendJobGet(bulkSendJobId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/BulkSendJobGetExample.cs b/examples/BulkSendJobGetExample.cs
new file mode 100644
index 0000000..baa383c
--- /dev/null
+++ b/examples/BulkSendJobGetExample.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class BulkSendJobGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new BulkSendJobApi(config).BulkSendJobGet(
+ bulkSendJobId: "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling BulkSendJobApi#BulkSendJobGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/BulkSendJobList.cs b/examples/BulkSendJobList.cs
deleted file mode 100644
index 4bdbb0b..0000000
--- a/examples/BulkSendJobList.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var bulkSendJobApi = new BulkSendJobApi(config);
-
- var page = 1;
- var pageSize = 20;
-
- try
- {
- var result = bulkSendJobApi.BulkSendJobList(page, pageSize);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/BulkSendJobListExample.cs b/examples/BulkSendJobListExample.cs
new file mode 100644
index 0000000..d84e42e
--- /dev/null
+++ b/examples/BulkSendJobListExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class BulkSendJobListExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new BulkSendJobApi(config).BulkSendJobList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling BulkSendJobApi#BulkSendJobList: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/EmbeddedEditUrl.cs b/examples/EmbeddedEditUrl.cs
deleted file mode 100644
index 8747912..0000000
--- a/examples/EmbeddedEditUrl.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var embeddedApi = new EmbeddedApi(config);
-
- var data = new EmbeddedEditUrlRequest(
- ccRoles: new List(){""},
- mergeFields: new List()
- );
-
- var templateId = "5de8179668f2033afac48da1868d0093bf133266";
-
- try
- {
- var result = embeddedApi.EmbeddedEditUrl(templateId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/EmbeddedEditUrlExample.cs b/examples/EmbeddedEditUrlExample.cs
new file mode 100644
index 0000000..f951e17
--- /dev/null
+++ b/examples/EmbeddedEditUrlExample.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class EmbeddedEditUrlExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var mergeFields = new List();
+
+ var embeddedEditUrlRequest = new EmbeddedEditUrlRequest(
+ ccRoles: [
+ "",
+ ],
+ mergeFields: mergeFields
+ );
+
+ try
+ {
+ var response = new EmbeddedApi(config).EmbeddedEditUrl(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ embeddedEditUrlRequest: embeddedEditUrlRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling EmbeddedApi#EmbeddedEditUrl: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/EmbeddedSignUrl.cs b/examples/EmbeddedSignUrl.cs
deleted file mode 100644
index d8197bf..0000000
--- a/examples/EmbeddedSignUrl.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var embeddedApi = new EmbeddedApi(config);
-
- var signatureId = "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b";
-
- try
- {
- var result = embeddedApi.EmbeddedSignUrl(signatureId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/EmbeddedSignUrlExample.cs b/examples/EmbeddedSignUrlExample.cs
new file mode 100644
index 0000000..a800f0b
--- /dev/null
+++ b/examples/EmbeddedSignUrlExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class EmbeddedSignUrlExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new EmbeddedApi(config).EmbeddedSignUrl(
+ signatureId: "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling EmbeddedApi#EmbeddedSignUrl: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/EventCallback.cs b/examples/EventCallbackExample.cs
similarity index 91%
rename from examples/EventCallback.cs
rename to examples/EventCallbackExample.cs
index bc287ff..c8610a8 100644
--- a/examples/EventCallback.cs
+++ b/examples/EventCallbackExample.cs
@@ -1,10 +1,13 @@
+using System.Collections.Generic;
using Newtonsoft.Json;
using Dropbox.Sign.Model;
using Dropbox.Sign;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class EventCallbackExample
{
- public static void Main()
+ public static void Run()
{
// use your API key
var apiKey = "324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782";
diff --git a/examples/FaxLineDelete.cs b/examples/FaxDeleteExample.cs
similarity index 57%
rename from examples/FaxLineDelete.cs
rename to examples/FaxDeleteExample.cs
index 810e268..aa39f49 100644
--- a/examples/FaxLineDelete.cs
+++ b/examples/FaxDeleteExample.cs
@@ -1,30 +1,30 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineDeleteRequest(
- number: "[FAX_NUMBER]"
- );
-
try
{
- faxLineApi.FaxLineDelete(data);
+ new FaxApi(config).FaxDelete(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/FaxFiles.cs b/examples/FaxFiles.cs
deleted file mode 100644
index fbaf416..0000000
--- a/examples/FaxFiles.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- config.Username = "YOUR_API_KEY";
-
- var faxApi = new FaxApi(config);
-
- var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = faxApi.FaxFiles(faxId);
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
- fileStream.Close();
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxFilesExample.cs b/examples/FaxFilesExample.cs
new file mode 100644
index 0000000..278b90f
--- /dev/null
+++ b/examples/FaxFilesExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxFilesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ try
+ {
+ var response = new FaxApi(config).FaxFiles(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
+ fileStream.Close();
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxApi#FaxFiles: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxGet.cs b/examples/FaxGet.cs
deleted file mode 100644
index 6396e0c..0000000
--- a/examples/FaxGet.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- var faxApi = new FaxApi(config);
-
- var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = faxApi.FaxGet(faxId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxGetExample.cs b/examples/FaxGetExample.cs
new file mode 100644
index 0000000..8a15843
--- /dev/null
+++ b/examples/FaxGetExample.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ try
+ {
+ var response = new FaxApi(config).FaxGet(
+ faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxApi#FaxGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineAddUser.cs b/examples/FaxLineAddUserExample.cs
similarity index 53%
rename from examples/FaxLineAddUser.cs
rename to examples/FaxLineAddUserExample.cs
index de22f45..cb9c642 100644
--- a/examples/FaxLineAddUser.cs
+++ b/examples/FaxLineAddUserExample.cs
@@ -1,32 +1,37 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineAddUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineAddUserRequest(
+ var faxLineAddUserRequest = new FaxLineAddUserRequest(
number: "[FAX_NUMBER]",
emailAddress: "member@dropboxsign.com"
);
try
{
- var result = faxLineApi.FaxLineAddUser(data);
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineAddUser(
+ faxLineAddUserRequest: faxLineAddUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineAddUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/FaxLineAreaCodeGetExample.cs b/examples/FaxLineAreaCodeGetExample.cs
new file mode 100644
index 0000000..4035919
--- /dev/null
+++ b/examples/FaxLineAreaCodeGetExample.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxLineAreaCodeGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ try
+ {
+ var response = new FaxLineApi(config).FaxLineAreaCodeGet(
+ country: "US"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineAreaCodeGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineCreateExample.cs b/examples/FaxLineCreateExample.cs
new file mode 100644
index 0000000..802ea40
--- /dev/null
+++ b/examples/FaxLineCreateExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxLineCreateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ var faxLineCreateRequest = new FaxLineCreateRequest(
+ areaCode: 209,
+ country: FaxLineCreateRequest.CountryEnum.US
+ );
+
+ try
+ {
+ var response = new FaxLineApi(config).FaxLineCreate(
+ faxLineCreateRequest: faxLineCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineDeleteExample.cs b/examples/FaxLineDeleteExample.cs
new file mode 100644
index 0000000..42faed2
--- /dev/null
+++ b/examples/FaxLineDeleteExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxLineDeleteExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ var faxLineDeleteRequest = new FaxLineDeleteRequest(
+ number: "[FAX_NUMBER]"
+ );
+
+ try
+ {
+ new FaxLineApi(config).FaxLineDelete(
+ faxLineDeleteRequest: faxLineDeleteRequest
+ );
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineDelete: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineGetExample.cs b/examples/FaxLineGetExample.cs
new file mode 100644
index 0000000..690a653
--- /dev/null
+++ b/examples/FaxLineGetExample.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxLineGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ try
+ {
+ var response = new FaxLineApi(config).FaxLineGet(
+ number: "123-123-1234"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineList.cs b/examples/FaxLineList.cs
deleted file mode 100644
index 96d7f0c..0000000
--- a/examples/FaxLineList.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- config.Username = "YOUR_API_KEY";
-
- var faxLineApi = new FaxLineApi(config);
-
- try
- {
- var result = faxLineApi.FaxLineList();
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxLineListExample.cs b/examples/FaxLineListExample.cs
new file mode 100644
index 0000000..278eeea
--- /dev/null
+++ b/examples/FaxLineListExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class FaxLineListExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ try
+ {
+ var response = new FaxLineApi(config).FaxLineList(
+ accountId: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineList: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/FaxLineRemoveUser.cs b/examples/FaxLineRemoveUserExample.cs
similarity index 52%
rename from examples/FaxLineRemoveUser.cs
rename to examples/FaxLineRemoveUserExample.cs
index 1dd562e..809b89a 100644
--- a/examples/FaxLineRemoveUser.cs
+++ b/examples/FaxLineRemoveUserExample.cs
@@ -1,32 +1,37 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxLineRemoveUserExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineRemoveUserRequest(
+ var faxLineRemoveUserRequest = new FaxLineRemoveUserRequest(
number: "[FAX_NUMBER]",
emailAddress: "member@dropboxsign.com"
);
try
{
- var result = faxLineApi.FaxLineRemoveUser(data);
- Console.WriteLine(result);
+ var response = new FaxLineApi(config).FaxLineRemoveUser(
+ faxLineRemoveUserRequest: faxLineRemoveUserRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxLineApi#FaxLineRemoveUser: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/FaxList.cs b/examples/FaxList.cs
deleted file mode 100644
index f87d9b8..0000000
--- a/examples/FaxList.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- var faxApi = new FaxApi(config);
-
- var page = 1;
- var pageSize = 2;
-
- try
- {
- var result = faxApi.FaxList(page, pageSize);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxDelete.cs b/examples/FaxListExample.cs
similarity index 54%
rename from examples/FaxDelete.cs
rename to examples/FaxListExample.cs
index 88a6ed0..6445061 100644
--- a/examples/FaxDelete.cs
+++ b/examples/FaxListExample.cs
@@ -1,26 +1,33 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxListExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
try
{
- faxApi.FaxDelete("fa5c8a0b0f492d768749333ad6fcc214c111e967");
+ var response = new FaxApi(config).FaxList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxList: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/FaxSend.cs b/examples/FaxSendExample.cs
similarity index 54%
rename from examples/FaxSend.cs
rename to examples/FaxSendExample.cs
index 8e72a4f..e6a2270 100644
--- a/examples/FaxSend.cs
+++ b/examples/FaxSendExample.cs
@@ -1,47 +1,49 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class FaxSendExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxApi = new FaxApi(config);
-
- var files = new List {
- new FileStream(
- "./example_fax.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new FaxSendRequest(
- files: files,
- testMode: true,
+ var faxSendRequest = new FaxSendRequest(
recipient: "16690000001",
sender: "16690000000",
+ testMode: true,
coverPageTo: "Jill Fax",
- coverPageMessage: "I'm sending you a fax!",
coverPageFrom: "Faxer Faxerson",
+ coverPageMessage: "I'm sending you a fax!",
title: "This is what the fax is about!",
+ files: new List
+ {
+ new FileStream(
+ path: "./example_fax.pdf",
+ mode: FileMode.Open
+ ),
+ }
);
try
{
- var result = faxApi.FaxSend(data);
- Console.WriteLine(result);
+ var response = new FaxApi(config).FaxSend(
+ faxSendRequest: faxSendRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling FaxApi#FaxSend: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/OauthTokenGenerate.cs b/examples/OauthTokenGenerate.cs
deleted file mode 100644
index f76153b..0000000
--- a/examples/OauthTokenGenerate.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
-
- var oAuthApi = new OAuthApi(config);
-
- var data = new OAuthTokenGenerateRequest(
- state: "900e06e2",
- code: "1b0d28d90c86c141",
- clientId: "cc91c61d00f8bb2ece1428035716b",
- clientSecret: "1d14434088507ffa390e6f5528465"
- );
-
- try
- {
- var result = oAuthApi.OauthTokenGenerate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/OauthTokenGenerateExample.cs b/examples/OauthTokenGenerateExample.cs
new file mode 100644
index 0000000..7d8da2f
--- /dev/null
+++ b/examples/OauthTokenGenerateExample.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class OauthTokenGenerateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+
+ var oAuthTokenGenerateRequest = new OAuthTokenGenerateRequest(
+ clientId: "cc91c61d00f8bb2ece1428035716b",
+ clientSecret: "1d14434088507ffa390e6f5528465",
+ code: "1b0d28d90c86c141",
+ state: "900e06e2",
+ grantType: "authorization_code"
+ );
+
+ try
+ {
+ var response = new OAuthApi(config).OauthTokenGenerate(
+ oAuthTokenGenerateRequest: oAuthTokenGenerateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling OAuthApi#OauthTokenGenerate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/OauthTokenRefresh.cs b/examples/OauthTokenRefresh.cs
deleted file mode 100644
index 41f3235..0000000
--- a/examples/OauthTokenRefresh.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
-
- var oAuthApi = new OAuthApi(config);
-
- var data = new OAuthTokenRefreshRequest(
- refreshToken: "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"
- );
-
- try
- {
- var result = oAuthApi.OauthTokenRefresh(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/OauthTokenRefreshExample.cs b/examples/OauthTokenRefreshExample.cs
new file mode 100644
index 0000000..21c40d1
--- /dev/null
+++ b/examples/OauthTokenRefreshExample.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class OauthTokenRefreshExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+
+ var oAuthTokenRefreshRequest = new OAuthTokenRefreshRequest(
+ grantType: "refresh_token",
+ refreshToken: "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"
+ );
+
+ try
+ {
+ var response = new OAuthApi(config).OauthTokenRefresh(
+ oAuthTokenRefreshRequest: oAuthTokenRefreshRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling OAuthApi#OauthTokenRefresh: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/ReportCreate.cs b/examples/ReportCreateExample.cs
similarity index 53%
rename from examples/ReportCreate.cs
rename to examples/ReportCreateExample.cs
index 994169a..769bd3a 100644
--- a/examples/ReportCreate.cs
+++ b/examples/ReportCreateExample.cs
@@ -1,40 +1,41 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class ReportCreateExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var reportApi = new ReportApi(config);
-
- var data = new ReportCreateRequest(
+ var reportCreateRequest = new ReportCreateRequest(
startDate: "09/01/2020",
endDate: "09/01/2020",
- reportType: new List() {
+ reportType: [
ReportCreateRequest.ReportTypeEnum.UserActivity,
ReportCreateRequest.ReportTypeEnum.DocumentStatus,
- }
+ ]
);
try
{
- var result = reportApi.OauthCreate(data);
- Console.WriteLine(result);
+ var response = new ReportApi(config).ReportCreate(
+ reportCreateRequest: reportCreateRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling ReportApi#ReportCreate: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/SignatureRequestBulkCreateEmbeddedWithTemplate.cs b/examples/SignatureRequestBulkCreateEmbeddedWithTemplate.cs
deleted file mode 100644
index d87fd12..0000000
--- a/examples/SignatureRequestBulkCreateEmbeddedWithTemplate.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signerList1Signer = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "George",
- emailAddress: "george@example.com",
- pin: "d79a3td"
- );
-
- var signerList1CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "ABC Corp"
- );
-
- var signerList1 = new SubBulkSignerList(
- signers: new List(){signerList1Signer},
- customFields: new List(){signerList1CustomFields}
- );
-
- var signerList2Signer = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "Mary",
- emailAddress: "mary@example.com",
- pin: "gd9as5b"
- );
-
- var signerList2CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "123 Corp"
- );
-
- var signerList2 = new SubBulkSignerList(
- signers: new List(){signerList2Signer},
- customFields: new List(){signerList2CustomFields}
- );
-
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@email.com"
- );
-
- var data = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
- clientId: "1a659d9ad95bccd307ecad78d72192f8",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signerList: new List(){signerList1, signerList2},
- ccs: new List(){cc1},
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestBulkCreateEmbeddedWithTemplate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs
new file mode 100644
index 0000000..9fd344a
--- /dev/null
+++ b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.cs
@@ -0,0 +1,116 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestBulkCreateEmbeddedWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+
+ var signerList2CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "123 LLC"
+ );
+
+ var signerList2CustomFields = new List
+ {
+ signerList2CustomFields1,
+ };
+
+ var signerList2Signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "Mary",
+ emailAddress: "mary@example.com",
+ pin: "gd9as5b"
+ );
+
+ var signerList2Signers = new List
+ {
+ signerList2Signers1,
+ };
+
+ var signerList1CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "ABC Corp"
+ );
+
+ var signerList1CustomFields = new List
+ {
+ signerList1CustomFields1,
+ };
+
+ var signerList1Signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com",
+ pin: "d79a3td"
+ );
+
+ var signerList1Signers = new List
+ {
+ signerList1Signers1,
+ };
+
+ var signerList1 = new SubBulkSignerList(
+ customFields: signerList1CustomFields,
+ signers: signerList1Signers
+ );
+
+ var signerList2 = new SubBulkSignerList(
+ customFields: signerList2CustomFields,
+ signers: signerList2Signers
+ );
+
+ var signerList = new List
+ {
+ signerList1,
+ signerList2,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
+ );
+
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var signatureRequestBulkCreateEmbeddedWithTemplateRequest = new SignatureRequestBulkCreateEmbeddedWithTemplateRequest(
+ clientId: "1a659d9ad95bccd307ecad78d72192f8",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signerList: signerList,
+ ccs: ccs
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestBulkCreateEmbeddedWithTemplate(
+ signatureRequestBulkCreateEmbeddedWithTemplateRequest: signatureRequestBulkCreateEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestBulkCreateEmbeddedWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestBulkSendWithTemplate.cs b/examples/SignatureRequestBulkSendWithTemplate.cs
deleted file mode 100644
index bf1851b..0000000
--- a/examples/SignatureRequestBulkSendWithTemplate.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signerList1Signer = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "George",
- emailAddress: "george@example.com",
- pin: "d79a3td"
- );
-
- var signerList1CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "ABC Corp"
- );
-
- var signerList1 = new SubBulkSignerList(
- signers: new List(){signerList1Signer},
- customFields: new List(){signerList1CustomFields}
- );
-
- var signerList2Signer = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "Mary",
- emailAddress: "mary@example.com",
- pin: "gd9as5b"
- );
-
- var signerList2CustomFields = new SubBulkSignerListCustomField(
- name: "company",
- value: "123 Corp"
- );
-
- var signerList2 = new SubBulkSignerList(
- signers: new List(){signerList2Signer},
- customFields: new List(){signerList2CustomFields}
- );
-
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@email.com"
- );
-
- var data = new SignatureRequestBulkSendWithTemplateRequest(
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signerList: new List(){signerList1, signerList2},
- ccs: new List(){cc1},
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestBulkSendWithTemplate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestBulkSendWithTemplateExample.cs b/examples/SignatureRequestBulkSendWithTemplateExample.cs
new file mode 100644
index 0000000..3c95fdb
--- /dev/null
+++ b/examples/SignatureRequestBulkSendWithTemplateExample.cs
@@ -0,0 +1,116 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestBulkSendWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signerList2CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "123 LLC"
+ );
+
+ var signerList2CustomFields = new List
+ {
+ signerList2CustomFields1,
+ };
+
+ var signerList2Signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "Mary",
+ emailAddress: "mary@example.com",
+ pin: "gd9as5b"
+ );
+
+ var signerList2Signers = new List
+ {
+ signerList2Signers1,
+ };
+
+ var signerList1CustomFields1 = new SubBulkSignerListCustomField(
+ name: "company",
+ value: "ABC Corp"
+ );
+
+ var signerList1CustomFields = new List
+ {
+ signerList1CustomFields1,
+ };
+
+ var signerList1Signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com",
+ pin: "d79a3td"
+ );
+
+ var signerList1Signers = new List
+ {
+ signerList1Signers1,
+ };
+
+ var signerList1 = new SubBulkSignerList(
+ customFields: signerList1CustomFields,
+ signers: signerList1Signers
+ );
+
+ var signerList2 = new SubBulkSignerList(
+ customFields: signerList2CustomFields,
+ signers: signerList2Signers
+ );
+
+ var signerList = new List
+ {
+ signerList1,
+ signerList2,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
+ );
+
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var signatureRequestBulkSendWithTemplateRequest = new SignatureRequestBulkSendWithTemplateRequest(
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signerList: signerList,
+ ccs: ccs
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestBulkSendWithTemplate(
+ signatureRequestBulkSendWithTemplateRequest: signatureRequestBulkSendWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestBulkSendWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestCancel.cs b/examples/SignatureRequestCancel.cs
deleted file mode 100644
index cb9549f..0000000
--- a/examples/SignatureRequestCancel.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- signatureRequestApi.SignatureRequestCancel(signatureRequestId);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestCancelExample.cs b/examples/SignatureRequestCancelExample.cs
new file mode 100644
index 0000000..4d18209
--- /dev/null
+++ b/examples/SignatureRequestCancelExample.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCancelExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ new SignatureRequestApi(config).SignatureRequestCancel(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCancel: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestCreateEmbedded.cs b/examples/SignatureRequestCreateEmbedded.cs
deleted file mode 100644
index 1f587c9..0000000
--- a/examples/SignatureRequestCreateEmbedded.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new SignatureRequestCreateEmbeddedRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- title: "NDA with Acme Co.",
- subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- signingOptions: signingOptions,
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestCreateEmbedded(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestCreateEmbeddedExample.cs b/examples/SignatureRequestCreateEmbeddedExample.cs
new file mode 100644
index 0000000..7f9786c
--- /dev/null
+++ b/examples/SignatureRequestCreateEmbeddedExample.cs
@@ -0,0 +1,82 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCreateEmbeddedExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
+
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
+
+ var signatureRequestCreateEmbeddedRequest = new SignatureRequestCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestCreateEmbedded(
+ signatureRequestCreateEmbeddedRequest: signatureRequestCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCreateEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.cs b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.cs
new file mode 100644
index 0000000..40cbcbc
--- /dev/null
+++ b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.cs
@@ -0,0 +1,110 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCreateEmbeddedGroupedSignersExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var groupedSigners2Signers1 = new SubSignatureRequestSigner(
+ name: "Bob",
+ emailAddress: "bob@example.com"
+ );
+
+ var groupedSigners2Signers2 = new SubSignatureRequestSigner(
+ name: "Charlie",
+ emailAddress: "charlie@example.com"
+ );
+
+ var groupedSigners2Signers = new List
+ {
+ groupedSigners2Signers1,
+ groupedSigners2Signers2,
+ };
+
+ var groupedSigners1Signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com"
+ );
+
+ var groupedSigners1Signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com"
+ );
+
+ var groupedSigners1Signers = new List
+ {
+ groupedSigners1Signers1,
+ groupedSigners1Signers2,
+ };
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var groupedSigners1 = new SubSignatureRequestGroupedSigners(
+ group: "Group #1",
+ order: 0,
+ signers: groupedSigners1Signers
+ );
+
+ var groupedSigners2 = new SubSignatureRequestGroupedSigners(
+ group: "Group #2",
+ order: 1,
+ signers: groupedSigners2Signers
+ );
+
+ var groupedSigners = new List
+ {
+ groupedSigners1,
+ groupedSigners2,
+ };
+
+ var signatureRequestCreateEmbeddedRequest = new SignatureRequestCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ signingOptions: signingOptions,
+ groupedSigners: groupedSigners
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestCreateEmbedded(
+ signatureRequestCreateEmbeddedRequest: signatureRequestCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCreateEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestCreateEmbeddedWithTemplate.cs b/examples/SignatureRequestCreateEmbeddedWithTemplate.cs
deleted file mode 100644
index ff9da4a..0000000
--- a/examples/SignatureRequestCreateEmbeddedWithTemplate.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "George"
- );
-
- var subSigningOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var data = new SignatureRequestCreateEmbeddedWithTemplateRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- signingOptions: subSigningOptions,
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestCreateEmbeddedWithTemplate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs
new file mode 100644
index 0000000..d40f342
--- /dev/null
+++ b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestCreateEmbeddedWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com"
+ );
+
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var signatureRequestCreateEmbeddedWithTemplateRequest = new SignatureRequestCreateEmbeddedWithTemplateRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestCreateEmbeddedWithTemplate(
+ signatureRequestCreateEmbeddedWithTemplateRequest: signatureRequestCreateEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestCreateEmbeddedWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEdit.cs b/examples/SignatureRequestEdit.cs
deleted file mode 100644
index 02c197f..0000000
--- a/examples/SignatureRequestEdit.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var metadata = new Dictionary()
- {
- ["custom_id"] = 1234,
- ["custom_text"] = "NDA #9"
- };
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new SignatureRequestEditRequest(
- title: "NDA with Acme Co.",
- subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- metadata: metadata,
- signingOptions: signingOptions,
- fieldOptions: subFieldOptions,
- testMode: true
- );
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestEdit(signatureRequestId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestEditEmbedded.cs b/examples/SignatureRequestEditEmbedded.cs
deleted file mode 100644
index 87d7d73..0000000
--- a/examples/SignatureRequestEditEmbedded.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new SignatureRequestEditEmbeddedRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- title: "NDA with Acme Co.",
- subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- signingOptions: signingOptions,
- testMode: true
- );
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestEditEmbedded(
- signatureRequestId,
- data
- );
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestEditEmbeddedExample.cs b/examples/SignatureRequestEditEmbeddedExample.cs
new file mode 100644
index 0000000..356603b
--- /dev/null
+++ b/examples/SignatureRequestEditEmbeddedExample.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditEmbeddedExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
+
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
+
+ var signatureRequestEditEmbeddedRequest = new SignatureRequestEditEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEditEmbedded(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditEmbeddedRequest: signatureRequestEditEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.cs b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.cs
new file mode 100644
index 0000000..3be9c81
--- /dev/null
+++ b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.cs
@@ -0,0 +1,111 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditEmbeddedGroupedSignersExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var groupedSigners2Signers1 = new SubSignatureRequestSigner(
+ name: "Bob",
+ emailAddress: "bob@example.com"
+ );
+
+ var groupedSigners2Signers2 = new SubSignatureRequestSigner(
+ name: "Charlie",
+ emailAddress: "charlie@example.com"
+ );
+
+ var groupedSigners2Signers = new List
+ {
+ groupedSigners2Signers1,
+ groupedSigners2Signers2,
+ };
+
+ var groupedSigners1Signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com"
+ );
+
+ var groupedSigners1Signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com"
+ );
+
+ var groupedSigners1Signers = new List
+ {
+ groupedSigners1Signers1,
+ groupedSigners1Signers2,
+ };
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var groupedSigners1 = new SubSignatureRequestGroupedSigners(
+ group: "Group #1",
+ order: 0,
+ signers: groupedSigners1Signers
+ );
+
+ var groupedSigners2 = new SubSignatureRequestGroupedSigners(
+ group: "Group #2",
+ order: 1,
+ signers: groupedSigners2Signers
+ );
+
+ var groupedSigners = new List
+ {
+ groupedSigners1,
+ groupedSigners2,
+ };
+
+ var signatureRequestEditEmbeddedRequest = new SignatureRequestEditEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ signingOptions: signingOptions,
+ groupedSigners: groupedSigners
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEditEmbedded(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditEmbeddedRequest: signatureRequestEditEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEditEmbeddedWithTemplate.cs b/examples/SignatureRequestEditEmbeddedWithTemplate.cs
deleted file mode 100644
index 12a591d..0000000
--- a/examples/SignatureRequestEditEmbeddedWithTemplate.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestTemplateSigner(
- role: "Client",
- name: "George"
- );
-
- var subSigningOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var data = new SignatureRequestEditEmbeddedWithTemplateRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- signingOptions: subSigningOptions,
- testMode: true
- );
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestEditEmbeddedWithTemplate(
- signatureRequestId,
- data
- );
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestEditEmbeddedWithTemplateExample.cs b/examples/SignatureRequestEditEmbeddedWithTemplateExample.cs
new file mode 100644
index 0000000..fff755e
--- /dev/null
+++ b/examples/SignatureRequestEditEmbeddedWithTemplateExample.cs
@@ -0,0 +1,67 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditEmbeddedWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com"
+ );
+
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var signatureRequestEditEmbeddedWithTemplateRequest = new SignatureRequestEditEmbeddedWithTemplateRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ templateIds: [
+ "c26b8a16784a872da37ea946b9ddec7c1e11dff6",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEditEmbeddedWithTemplate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditEmbeddedWithTemplateRequest: signatureRequestEditEmbeddedWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditEmbeddedWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEditExample.cs b/examples/SignatureRequestEditExample.cs
new file mode 100644
index 0000000..b3542b7
--- /dev/null
+++ b/examples/SignatureRequestEditExample.cs
@@ -0,0 +1,93 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
+
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
+
+ var signatureRequestEditRequest = new SignatureRequestEditRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEdit(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditRequest: signatureRequestEditRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEdit: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEditGroupedSignersExample.cs b/examples/SignatureRequestEditGroupedSignersExample.cs
new file mode 100644
index 0000000..35a41af
--- /dev/null
+++ b/examples/SignatureRequestEditGroupedSignersExample.cs
@@ -0,0 +1,121 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditGroupedSignersExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var groupedSigners2Signers1 = new SubSignatureRequestSigner(
+ name: "Bob",
+ emailAddress: "bob@example.com"
+ );
+
+ var groupedSigners2Signers2 = new SubSignatureRequestSigner(
+ name: "Charlie",
+ emailAddress: "charlie@example.com"
+ );
+
+ var groupedSigners2Signers = new List
+ {
+ groupedSigners2Signers1,
+ groupedSigners2Signers2,
+ };
+
+ var groupedSigners1Signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com"
+ );
+
+ var groupedSigners1Signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com"
+ );
+
+ var groupedSigners1Signers = new List
+ {
+ groupedSigners1Signers1,
+ groupedSigners1Signers2,
+ };
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var groupedSigners1 = new SubSignatureRequestGroupedSigners(
+ group: "Group #1",
+ order: 0,
+ signers: groupedSigners1Signers
+ );
+
+ var groupedSigners2 = new SubSignatureRequestGroupedSigners(
+ group: "Group #2",
+ order: 1,
+ signers: groupedSigners2Signers
+ );
+
+ var groupedSigners = new List
+ {
+ groupedSigners1,
+ groupedSigners2,
+ };
+
+ var signatureRequestEditRequest = new SignatureRequestEditRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
+ signingOptions: signingOptions,
+ groupedSigners: groupedSigners
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEdit(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditRequest: signatureRequestEditRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEdit: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestEditWithTemplate.cs b/examples/SignatureRequestEditWithTemplate.cs
deleted file mode 100644
index 22038ee..0000000
--- a/examples/SignatureRequestEditWithTemplate.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestTemplateSigner(
- role: "Client",
- emailAddress: "george@example.com",
- name: "George"
- );
-
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@emaple.com"
- );
-
- var customField1 = new SubCustomField(
- name: "Cost",
- value: "$20,000",
- editor: "Client",
- required: true
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var data = new SignatureRequestEditWithTemplateRequest(
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- ccs: new List(){cc1},
- customFields: new List(){customField1},
- signingOptions: signingOptions,
- testMode: true
- );
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestEditWithTemplate(signatureRequestId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestEditWithTemplateExample.cs b/examples/SignatureRequestEditWithTemplateExample.cs
new file mode 100644
index 0000000..172f24b
--- /dev/null
+++ b/examples/SignatureRequestEditWithTemplateExample.cs
@@ -0,0 +1,90 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestEditWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com"
+ );
+
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
+ );
+
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var customFields1 = new SubCustomField(
+ name: "Cost",
+ editor: "Client",
+ required: true,
+ value: "$20,000"
+ );
+
+ var customFields = new List
+ {
+ customFields1,
+ };
+
+ var signatureRequestEditWithTemplateRequest = new SignatureRequestEditWithTemplateRequest(
+ templateIds: [
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers,
+ ccs: ccs,
+ customFields: customFields
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestEditWithTemplate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestEditWithTemplateRequest: signatureRequestEditWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestEditWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestFiles.cs b/examples/SignatureRequestFiles.cs
deleted file mode 100644
index d9ceb40..0000000
--- a/examples/SignatureRequestFiles.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestFiles(signatureRequestId, "pdf");
-
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
- fileStream.Close();
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestFilesAsDataUri.cs b/examples/SignatureRequestFilesAsDataUri.cs
deleted file mode 100644
index 5ca7ca5..0000000
--- a/examples/SignatureRequestFilesAsDataUri.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestFilesAsDataUri(signatureRequestId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestFilesAsDataUriExample.cs b/examples/SignatureRequestFilesAsDataUriExample.cs
new file mode 100644
index 0000000..60f8370
--- /dev/null
+++ b/examples/SignatureRequestFilesAsDataUriExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesAsDataUriExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestFilesAsDataUri(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFilesAsDataUri: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestFilesAsFileUrl.cs b/examples/SignatureRequestFilesAsFileUrl.cs
deleted file mode 100644
index b3e92ef..0000000
--- a/examples/SignatureRequestFilesAsFileUrl.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestFilesAsFileUrl(signatureRequestId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestFilesAsFileUrlExample.cs b/examples/SignatureRequestFilesAsFileUrlExample.cs
new file mode 100644
index 0000000..f3bfe66
--- /dev/null
+++ b/examples/SignatureRequestFilesAsFileUrlExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesAsFileUrlExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestFilesAsFileUrl(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ forceDownload: 1
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFilesAsFileUrl: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestFilesExample.cs b/examples/SignatureRequestFilesExample.cs
new file mode 100644
index 0000000..879127e
--- /dev/null
+++ b/examples/SignatureRequestFilesExample.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestFilesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestFiles(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ fileType: "pdf"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
+ fileStream.Close();
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestFiles: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestGet.cs b/examples/SignatureRequestGet.cs
deleted file mode 100644
index 33425be..0000000
--- a/examples/SignatureRequestGet.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestGet(signatureRequestId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestGetExample.cs b/examples/SignatureRequestGetExample.cs
new file mode 100644
index 0000000..388861f
--- /dev/null
+++ b/examples/SignatureRequestGetExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestGet(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestList.cs b/examples/SignatureRequestList.cs
deleted file mode 100644
index 5612947..0000000
--- a/examples/SignatureRequestList.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var accountId = "accountId";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestList(accountId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestListExample.cs b/examples/SignatureRequestListExample.cs
new file mode 100644
index 0000000..8092e53
--- /dev/null
+++ b/examples/SignatureRequestListExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestListExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestList: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestReleaseHold.cs b/examples/SignatureRequestReleaseHold.cs
deleted file mode 100644
index 5819bb9..0000000
--- a/examples/SignatureRequestReleaseHold.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestReleaseHold(signatureRequestId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestReleaseHoldExample.cs b/examples/SignatureRequestReleaseHoldExample.cs
new file mode 100644
index 0000000..9b64cd7
--- /dev/null
+++ b/examples/SignatureRequestReleaseHoldExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestReleaseHoldExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestReleaseHold(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestReleaseHold: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestRemind.cs b/examples/SignatureRequestRemind.cs
deleted file mode 100644
index 1dc8f6d..0000000
--- a/examples/SignatureRequestRemind.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var data = new SignatureRequestRemindRequest(
- emailAddress: "john@example.com"
- );
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- var result = signatureRequestApi.SignatureRequestRemind(signatureRequestId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestRemindExample.cs b/examples/SignatureRequestRemindExample.cs
new file mode 100644
index 0000000..bef1acb
--- /dev/null
+++ b/examples/SignatureRequestRemindExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestRemindExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signatureRequestRemindRequest = new SignatureRequestRemindRequest(
+ emailAddress: "john@example.com"
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestRemind(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestRemindRequest: signatureRequestRemindRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestRemind: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestRemove.cs b/examples/SignatureRequestRemove.cs
deleted file mode 100644
index f609683..0000000
--- a/examples/SignatureRequestRemove.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- try
- {
- signatureRequestApi.SignatureRequestRemove(signatureRequestId);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxLineCreate.cs b/examples/SignatureRequestRemoveExample.cs
similarity index 53%
rename from examples/FaxLineCreate.cs
rename to examples/SignatureRequestRemoveExample.cs
index 4d96ae5..f0b9cf8 100644
--- a/examples/FaxLineCreate.cs
+++ b/examples/SignatureRequestRemoveExample.cs
@@ -1,32 +1,30 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestRemoveExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
- var faxLineApi = new FaxLineApi(config);
-
- var data = new FaxLineCreateRequest(
- areaCode: 209,
- country: "US"
- );
-
try
{
- var result = faxLineApi.FaxLineCreate(data);
- Console.WriteLine(result);
+ new SignatureRequestApi(config).SignatureRequestRemove(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967"
+ );
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestRemove: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/SignatureRequestSend.cs b/examples/SignatureRequestSend.cs
deleted file mode 100644
index c1d45d1..0000000
--- a/examples/SignatureRequestSend.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubSignatureRequestSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: true,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var metadata = new Dictionary()
- {
- ["custom_id"] = 1234,
- ["custom_text"] = "NDA #9"
- };
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new SignatureRequestSendRequest(
- title: "NDA with Acme Co.",
- subject: "The NDA we talked about",
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- metadata: metadata,
- signingOptions: signingOptions,
- fieldOptions: subFieldOptions,
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestSend(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestSendExample.cs b/examples/SignatureRequestSendExample.cs
new file mode 100644
index 0000000..2958c26
--- /dev/null
+++ b/examples/SignatureRequestSendExample.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestSendExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com",
+ order: 0
+ );
+
+ var signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com",
+ order: 1
+ );
+
+ var signers = new List
+ {
+ signers1,
+ signers2,
+ };
+
+ var signatureRequestSendRequest = new SignatureRequestSendRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
+ signingOptions: signingOptions,
+ signers: signers
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestSend(
+ signatureRequestSendRequest: signatureRequestSendRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestSend: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestSendGroupedSignersExample.cs b/examples/SignatureRequestSendGroupedSignersExample.cs
new file mode 100644
index 0000000..8263d91
--- /dev/null
+++ b/examples/SignatureRequestSendGroupedSignersExample.cs
@@ -0,0 +1,120 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestSendGroupedSignersExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var groupedSigners2Signers1 = new SubSignatureRequestSigner(
+ name: "Bob",
+ emailAddress: "bob@example.com"
+ );
+
+ var groupedSigners2Signers2 = new SubSignatureRequestSigner(
+ name: "Charlie",
+ emailAddress: "charlie@example.com"
+ );
+
+ var groupedSigners2Signers = new List
+ {
+ groupedSigners2Signers1,
+ groupedSigners2Signers2,
+ };
+
+ var groupedSigners1Signers1 = new SubSignatureRequestSigner(
+ name: "Jack",
+ emailAddress: "jack@example.com"
+ );
+
+ var groupedSigners1Signers2 = new SubSignatureRequestSigner(
+ name: "Jill",
+ emailAddress: "jill@example.com"
+ );
+
+ var groupedSigners1Signers = new List
+ {
+ groupedSigners1Signers1,
+ groupedSigners1Signers2,
+ };
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var groupedSigners1 = new SubSignatureRequestGroupedSigners(
+ group: "Group #1",
+ order: 0,
+ signers: groupedSigners1Signers
+ );
+
+ var groupedSigners2 = new SubSignatureRequestGroupedSigners(
+ group: "Group #2",
+ order: 1,
+ signers: groupedSigners2Signers
+ );
+
+ var groupedSigners = new List
+ {
+ groupedSigners1,
+ groupedSigners2,
+ };
+
+ var signatureRequestSendRequest = new SignatureRequestSendRequest(
+ message: "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
+ subject: "The NDA we talked about",
+ testMode: true,
+ title: "NDA with Acme Co.",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccEmailAddresses: [
+ "lawyer1@dropboxsign.com",
+ "lawyer2@dropboxsign.com",
+ ],
+ metadata: JsonSerializer.Deserialize>("""
+ {
+ "custom_id": 1234,
+ "custom_text": "NDA #9"
+ }
+ """),
+ fieldOptions: fieldOptions,
+ signingOptions: signingOptions,
+ groupedSigners: groupedSigners
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestSend(
+ signatureRequestSendRequest: signatureRequestSendRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestSend: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestSendWithTemplate.cs b/examples/SignatureRequestSendWithTemplate.cs
deleted file mode 100644
index 7c78edc..0000000
--- a/examples/SignatureRequestSendWithTemplate.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signer1 = new SubSignatureRequestTemplateSigner(
- role: "Client",
- emailAddress: "george@example.com",
- name: "George"
- );
-
- var cc1 = new SubCC(
- role: "Accounting",
- emailAddress: "accouting@emaple.com"
- );
-
- var customField1 = new SubCustomField(
- name: "Cost",
- value: "$20,000",
- editor: "Client",
- required: true
- );
-
- var signingOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var data = new SignatureRequestSendWithTemplateRequest(
- templateIds: new List(){"c26b8a16784a872da37ea946b9ddec7c1e11dff6"},
- subject: "Purchase Order",
- message: "Glad we could come to an agreement.",
- signers: new List(){signer1},
- ccs: new List(){cc1},
- customFields: new List(){customField1},
- signingOptions: signingOptions,
- testMode: true
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestSendWithTemplate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestSendWithTemplateExample.cs b/examples/SignatureRequestSendWithTemplateExample.cs
new file mode 100644
index 0000000..024b92c
--- /dev/null
+++ b/examples/SignatureRequestSendWithTemplateExample.cs
@@ -0,0 +1,89 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestSendWithTemplateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signingOptions = new SubSigningOptions(
+ defaultType: SubSigningOptions.DefaultTypeEnum.Draw,
+ draw: true,
+ phone: false,
+ type: true,
+ upload: true
+ );
+
+ var signers1 = new SubSignatureRequestTemplateSigner(
+ role: "Client",
+ name: "George",
+ emailAddress: "george@example.com"
+ );
+
+ var signers = new List
+ {
+ signers1,
+ };
+
+ var ccs1 = new SubCC(
+ role: "Accounting",
+ emailAddress: "accounting@example.com"
+ );
+
+ var ccs = new List
+ {
+ ccs1,
+ };
+
+ var customFields1 = new SubCustomField(
+ name: "Cost",
+ editor: "Client",
+ required: true,
+ value: "$20,000"
+ );
+
+ var customFields = new List
+ {
+ customFields1,
+ };
+
+ var signatureRequestSendWithTemplateRequest = new SignatureRequestSendWithTemplateRequest(
+ templateIds: [
+ "61a832ff0d8423f91d503e76bfbcc750f7417c78",
+ ],
+ message: "Glad we could come to an agreement.",
+ subject: "Purchase Order",
+ testMode: true,
+ signingOptions: signingOptions,
+ signers: signers,
+ ccs: ccs,
+ customFields: customFields
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestSendWithTemplate(
+ signatureRequestSendWithTemplateRequest: signatureRequestSendWithTemplateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestSendWithTemplate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/SignatureRequestUpdate.cs b/examples/SignatureRequestUpdate.cs
deleted file mode 100644
index b8d73b2..0000000
--- a/examples/SignatureRequestUpdate.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var signatureRequestApi = new SignatureRequestApi(config);
-
- var signatureRequestId = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f";
-
- var data = new SignatureRequestUpdateRequest(
- emailAddress: "john@example.com",
- signatureId: "78caf2a1d01cd39cea2bc1cbb340dac3"
- );
-
- try
- {
- var result = signatureRequestApi.SignatureRequestUpdate(signatureRequestId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/SignatureRequestUpdateExample.cs b/examples/SignatureRequestUpdateExample.cs
new file mode 100644
index 0000000..7d95516
--- /dev/null
+++ b/examples/SignatureRequestUpdateExample.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class SignatureRequestUpdateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var signatureRequestUpdateRequest = new SignatureRequestUpdateRequest(
+ signatureId: "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f",
+ emailAddress: "john@example.com"
+ );
+
+ try
+ {
+ var response = new SignatureRequestApi(config).SignatureRequestUpdate(
+ signatureRequestId: "fa5c8a0b0f492d768749333ad6fcc214c111e967",
+ signatureRequestUpdateRequest: signatureRequestUpdateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling SignatureRequestApi#SignatureRequestUpdate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamAddMember.cs b/examples/TeamAddMember.cs
deleted file mode 100644
index 515014d..0000000
--- a/examples/TeamAddMember.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamAddMemberRequest(
- emailAddress: "george@example.com"
- );
-
- try
- {
- var result = teamApi.TeamAddMember(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamAddMemberAccountIdExample.cs b/examples/TeamAddMemberAccountIdExample.cs
new file mode 100644
index 0000000..fe700fc
--- /dev/null
+++ b/examples/TeamAddMemberAccountIdExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamAddMemberAccountIdExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var teamAddMemberRequest = new TeamAddMemberRequest(
+ accountId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ try
+ {
+ var response = new TeamApi(config).TeamAddMember(
+ teamAddMemberRequest: teamAddMemberRequest,
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamAddMember: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamAddMemberExample.cs b/examples/TeamAddMemberExample.cs
new file mode 100644
index 0000000..3529c6e
--- /dev/null
+++ b/examples/TeamAddMemberExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamAddMemberExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var teamAddMemberRequest = new TeamAddMemberRequest(
+ emailAddress: "george@example.com"
+ );
+
+ try
+ {
+ var response = new TeamApi(config).TeamAddMember(
+ teamAddMemberRequest: teamAddMemberRequest,
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamAddMember: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamCreate.cs b/examples/TeamCreate.cs
deleted file mode 100644
index 78d0768..0000000
--- a/examples/TeamCreate.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamCreateRequest(
- name: "New Team Name"
- );
-
- try
- {
- var result = teamApi.TeamCreate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamCreateExample.cs b/examples/TeamCreateExample.cs
new file mode 100644
index 0000000..794c462
--- /dev/null
+++ b/examples/TeamCreateExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamCreateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var teamCreateRequest = new TeamCreateRequest(
+ name: "New Team Name"
+ );
+
+ try
+ {
+ var response = new TeamApi(config).TeamCreate(
+ teamCreateRequest: teamCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamDelete.cs b/examples/TeamDelete.cs
deleted file mode 100644
index 35eca42..0000000
--- a/examples/TeamDelete.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- try
- {
- teamApi.TeamDelete();
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxLineGet.cs b/examples/TeamDeleteExample.cs
similarity index 58%
rename from examples/FaxLineGet.cs
rename to examples/TeamDeleteExample.cs
index d18c82f..b5c7a83 100644
--- a/examples/FaxLineGet.cs
+++ b/examples/TeamDeleteExample.cs
@@ -1,27 +1,29 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamDeleteExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
-
- var faxLineApi = new FaxLineApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = faxLineApi.FaxLineGet("[FAX_NUMBER]");
- Console.WriteLine(result);
+ new TeamApi(config).TeamDelete();
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamDelete: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/TeamGet.cs b/examples/TeamGet.cs
deleted file mode 100644
index f1984f5..0000000
--- a/examples/TeamGet.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- try
- {
- var result = teamApi.TeamGet();
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/FaxLineAreaCodeGet.cs b/examples/TeamGetExample.cs
similarity index 55%
rename from examples/FaxLineAreaCodeGet.cs
rename to examples/TeamGetExample.cs
index 3beedfe..3a79cd2 100644
--- a/examples/FaxLineAreaCodeGet.cs
+++ b/examples/TeamGetExample.cs
@@ -1,27 +1,31 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamGetExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
-
- var faxLineApi = new FaxLineApi(config);
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
try
{
- var result = faxLineApi.FaxLineAreaCodeGet("US", "CA");
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamGet();
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamGet: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/TeamInfo.cs b/examples/TeamInfo.cs
deleted file mode 100644
index 284dcdf..0000000
--- a/examples/TeamInfo.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- try
- {
- var result = teamApi.TeamInfo();
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamInfoExample.cs b/examples/TeamInfoExample.cs
new file mode 100644
index 0000000..a761bce
--- /dev/null
+++ b/examples/TeamInfoExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamInfoExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TeamApi(config).TeamInfo(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamInfo: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamInvites.cs b/examples/TeamInvites.cs
deleted file mode 100644
index b52c3b1..0000000
--- a/examples/TeamInvites.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var emailAddress = "user@dropboxsign.com";
-
- try
- {
- var result = teamApi.TeamInvites(emailAddress);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamInvitesExample.cs b/examples/TeamInvitesExample.cs
new file mode 100644
index 0000000..90454cb
--- /dev/null
+++ b/examples/TeamInvitesExample.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamInvitesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TeamApi(config).TeamInvites();
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamInvites: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamMembers.cs b/examples/TeamMembers.cs
deleted file mode 100644
index 3426971..0000000
--- a/examples/TeamMembers.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c";
-
- try
- {
- var result = teamApi.TeamMembers(teamId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamMembersExample.cs b/examples/TeamMembersExample.cs
new file mode 100644
index 0000000..72213f8
--- /dev/null
+++ b/examples/TeamMembersExample.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamMembersExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TeamApi(config).TeamMembers(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamMembers: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamRemoveMemberAccountIdExample.cs b/examples/TeamRemoveMemberAccountIdExample.cs
new file mode 100644
index 0000000..0c6ae21
--- /dev/null
+++ b/examples/TeamRemoveMemberAccountIdExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamRemoveMemberAccountIdExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var teamRemoveMemberRequest = new TeamRemoveMemberRequest(
+ accountId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ try
+ {
+ var response = new TeamApi(config).TeamRemoveMember(
+ teamRemoveMemberRequest: teamRemoveMemberRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamRemoveMember: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamRemoveMember.cs b/examples/TeamRemoveMemberExample.cs
similarity index 50%
rename from examples/TeamRemoveMember.cs
rename to examples/TeamRemoveMemberExample.cs
index c4051b6..23aeff1 100644
--- a/examples/TeamRemoveMember.cs
+++ b/examples/TeamRemoveMemberExample.cs
@@ -1,35 +1,38 @@
using System;
using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
-public class Example
+namespace Dropbox.SignSandbox;
+
+public class TeamRemoveMemberExample
{
- public static void Main()
+ public static void Run()
{
var config = new Configuration();
- // Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamRemoveMemberRequest(
+ var teamRemoveMemberRequest = new TeamRemoveMemberRequest(
emailAddress: "teammate@dropboxsign.com",
newOwnerEmailAddress: "new_teammate@dropboxsign.com"
);
try
{
- var result = teamApi.TeamRemoveMember(data);
- Console.WriteLine(result);
+ var response = new TeamApi(config).TeamRemoveMember(
+ teamRemoveMemberRequest: teamRemoveMemberRequest
+ );
+
+ Console.WriteLine(response);
}
catch (ApiException e)
{
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
+ Console.WriteLine("Exception when calling TeamApi#TeamRemoveMember: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
diff --git a/examples/TeamSubTeams.cs b/examples/TeamSubTeams.cs
deleted file mode 100644
index cab5c69..0000000
--- a/examples/TeamSubTeams.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
- var teamId = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c";
-
- try
- {
- var result = teamApi.TeamSubTeams(teamId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamSubTeamsExample.cs b/examples/TeamSubTeamsExample.cs
new file mode 100644
index 0000000..1760310
--- /dev/null
+++ b/examples/TeamSubTeamsExample.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamSubTeamsExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TeamApi(config).TeamSubTeams(
+ teamId: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c",
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamSubTeams: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TeamUpdate.cs b/examples/TeamUpdate.cs
deleted file mode 100644
index f31b538..0000000
--- a/examples/TeamUpdate.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var teamApi = new TeamApi(config);
-
- var data = new TeamUpdateRequest(
- name: "New Team Name"
- );
-
- try
- {
- var result = teamApi.TeamUpdate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TeamUpdateExample.cs b/examples/TeamUpdateExample.cs
new file mode 100644
index 0000000..355811e
--- /dev/null
+++ b/examples/TeamUpdateExample.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TeamUpdateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var teamUpdateRequest = new TeamUpdateRequest(
+ name: "New Team Name"
+ );
+
+ try
+ {
+ var response = new TeamApi(config).TeamUpdate(
+ teamUpdateRequest: teamUpdateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TeamApi#TeamUpdate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateAddUser.cs b/examples/TemplateAddUser.cs
deleted file mode 100644
index 23d85c8..0000000
--- a/examples/TemplateAddUser.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- var data = new TemplateAddUserRequest(
- emailAddress: "george@dropboxsign.com"
- );
-
- try
- {
- var result = templateApi.TemplateAddUser(templateId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateAddUserExample.cs b/examples/TemplateAddUserExample.cs
new file mode 100644
index 0000000..dc4107a
--- /dev/null
+++ b/examples/TemplateAddUserExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateAddUserExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var templateAddUserRequest = new TemplateAddUserRequest(
+ emailAddress: "george@dropboxsign.com"
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateAddUser(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateAddUserRequest: templateAddUserRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateAddUser: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreate.cs b/examples/TemplateCreate.cs
deleted file mode 100644
index cce7362..0000000
--- a/examples/TemplateCreate.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var role1 = new SubTemplateRole(
- name: "Client",
- order: 0
- );
-
- var role2 = new SubTemplateRole(
- name: "Witness",
- order: 1
- );
-
- var mergeField1 = new SubMergeField(
- name: "Full Name",
- type: SubMergeField.TypeEnum.Text
- );
-
- var mergeField2 = new SubMergeField(
- name: "Is Registered?",
- type: SubMergeField.TypeEnum.Checkbox
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new TemplateCreateRequest(
- clientId: "37dee8d8440c66d54cfa05d92c160882",
- files: files,
- title: "Test Template",
- subject: "Please sign this document",
- message: "For your approval",
- signerRoles: new List(){role1, role2},
- ccRoles: new List(){"Manager"},
- mergeFields: new List(){mergeField1, mergeField2},
- fieldOptions: subFieldOptions,
- testMode: true
- );
-
- try
- {
- var result = templateApi.TemplateCreate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateCreateEmbeddedDraft.cs b/examples/TemplateCreateEmbeddedDraft.cs
deleted file mode 100644
index 42335ff..0000000
--- a/examples/TemplateCreateEmbeddedDraft.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var role1 = new SubTemplateRole(
- name: "Client",
- order: 0
- );
-
- var role2 = new SubTemplateRole(
- name: "Witness",
- order: 1
- );
-
- var mergeField1 = new SubMergeField(
- name: "Full Name",
- type: SubMergeField.TypeEnum.Text
- );
-
- var mergeField2 = new SubMergeField(
- name: "Is Registered?",
- type: SubMergeField.TypeEnum.Checkbox
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DDMMYYYY
- );
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new TemplateCreateEmbeddedDraftRequest(
- clientId: "37dee8d8440c66d54cfa05d92c160882",
- files: files,
- title: "Test Template",
- subject: "Please sign this document",
- message: "For your approval",
- signerRoles: new List(){role1, role2},
- ccRoles: new List(){"Manager"},
- mergeFields: new List(){mergeField1, mergeField2},
- fieldOptions: subFieldOptions,
- testMode: true
- );
-
- try
- {
- var result = templateApi.TemplateCreateEmbeddedDraft(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateCreateEmbeddedDraftExample.cs b/examples/TemplateCreateEmbeddedDraftExample.cs
new file mode 100644
index 0000000..e26574c
--- /dev/null
+++ b/examples/TemplateCreateEmbeddedDraftExample.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateEmbeddedDraftExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var templateCreateEmbeddedDraftRequest = new TemplateCreateEmbeddedDraftRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ ccRoles: [
+ "Manager",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ fieldOptions: fieldOptions,
+ mergeFields: mergeFields,
+ signerRoles: signerRoles
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreateEmbeddedDraft(
+ templateCreateEmbeddedDraftRequest: templateCreateEmbeddedDraftRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreateEmbeddedDraft: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.cs b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.cs
new file mode 100644
index 0000000..2603e2c
--- /dev/null
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.cs
@@ -0,0 +1,139 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateEmbeddedDraftFormFieldGroupsExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var formFieldGroups1 = new SubFormFieldGroup(
+ groupId: "RadioItemGroup1",
+ groupLabel: "Radio Item Group 1",
+ requirement: "require_0-1"
+ );
+
+ var formFieldGroups = new List
+ {
+ formFieldGroups1,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 328,
+ group: "RadioItemGroup1",
+ isChecked: true,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 370,
+ group: "RadioItemGroup1",
+ isChecked: false,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var templateCreateEmbeddedDraftRequest = new TemplateCreateEmbeddedDraftRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ formFieldGroups: formFieldGroups,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields,
+ signerRoles: signerRoles
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreateEmbeddedDraft(
+ templateCreateEmbeddedDraftRequest: templateCreateEmbeddedDraftRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreateEmbeddedDraft: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.cs b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.cs
new file mode 100644
index 0000000..e4edd18
--- /dev/null
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.cs
@@ -0,0 +1,159 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateEmbeddedDraftFormFieldRulesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var formFieldRules1Triggers1 = new SubFormFieldRuleTrigger(
+ id: "uniqueIdHere_1",
+ varOperator: SubFormFieldRuleTrigger.OperatorEnum.Is,
+ value: "foo"
+ );
+
+ var formFieldRules1Triggers = new List
+ {
+ formFieldRules1Triggers1,
+ };
+
+ var formFieldRules1Actions1 = new SubFormFieldRuleAction(
+ hidden: true,
+ type: SubFormFieldRuleAction.TypeEnum.ChangeFieldVisibility,
+ fieldId: "uniqueIdHere_2"
+ );
+
+ var formFieldRules1Actions = new List
+ {
+ formFieldRules1Actions1,
+ };
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var formFieldRules1 = new SubFormFieldRule(
+ id: "rule_1",
+ triggerOperator: "AND",
+ triggers: formFieldRules1Triggers,
+ actions: formFieldRules1Actions
+ );
+
+ var formFieldRules = new List
+ {
+ formFieldRules1,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "0",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var templateCreateEmbeddedDraftRequest = new TemplateCreateEmbeddedDraftRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ formFieldRules: formFieldRules,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields,
+ signerRoles: signerRoles
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreateEmbeddedDraft(
+ templateCreateEmbeddedDraftRequest: templateCreateEmbeddedDraftRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreateEmbeddedDraft: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.cs b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.cs
new file mode 100644
index 0000000..cb3fd77
--- /dev/null
+++ b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.cs
@@ -0,0 +1,125 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "1",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ placeholder: "",
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var templateCreateEmbeddedDraftRequest = new TemplateCreateEmbeddedDraftRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields,
+ signerRoles: signerRoles
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreateEmbeddedDraft(
+ templateCreateEmbeddedDraftRequest: templateCreateEmbeddedDraftRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreateEmbeddedDraft: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateExample.cs b/examples/TemplateCreateExample.cs
new file mode 100644
index 0000000..09fad4b
--- /dev/null
+++ b/examples/TemplateCreateExample.cs
@@ -0,0 +1,129 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "1",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ placeholder: "",
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var templateCreateRequest = new TemplateCreateRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ ccRoles: [
+ "Manager",
+ ],
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ },
+ fieldOptions: fieldOptions,
+ signerRoles: signerRoles,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreate(
+ templateCreateRequest: templateCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateFormFieldGroupsExample.cs b/examples/TemplateCreateFormFieldGroupsExample.cs
new file mode 100644
index 0000000..b8c56e7
--- /dev/null
+++ b/examples/TemplateCreateFormFieldGroupsExample.cs
@@ -0,0 +1,139 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateFormFieldGroupsExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 328,
+ group: "RadioItemGroup1",
+ isChecked: true,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 370,
+ group: "RadioItemGroup1",
+ isChecked: false,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var formFieldGroups1 = new SubFormFieldGroup(
+ groupId: "RadioItemGroup1",
+ groupLabel: "Radio Item Group 1",
+ requirement: "require_0-1"
+ );
+
+ var formFieldGroups = new List
+ {
+ formFieldGroups1,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var templateCreateRequest = new TemplateCreateRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ signerRoles: signerRoles,
+ formFieldsPerDocument: formFieldsPerDocument,
+ formFieldGroups: formFieldGroups,
+ mergeFields: mergeFields
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreate(
+ templateCreateRequest: templateCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateFormFieldRulesExample.cs b/examples/TemplateCreateFormFieldRulesExample.cs
new file mode 100644
index 0000000..9b3fcf1
--- /dev/null
+++ b/examples/TemplateCreateFormFieldRulesExample.cs
@@ -0,0 +1,159 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateFormFieldRulesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var formFieldRules1Triggers1 = new SubFormFieldRuleTrigger(
+ id: "uniqueIdHere_1",
+ varOperator: SubFormFieldRuleTrigger.OperatorEnum.Is,
+ value: "foo"
+ );
+
+ var formFieldRules1Triggers = new List
+ {
+ formFieldRules1Triggers1,
+ };
+
+ var formFieldRules1Actions1 = new SubFormFieldRuleAction(
+ hidden: true,
+ type: SubFormFieldRuleAction.TypeEnum.ChangeFieldVisibility,
+ fieldId: "uniqueIdHere_2"
+ );
+
+ var formFieldRules1Actions = new List
+ {
+ formFieldRules1Actions1,
+ };
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "0",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var formFieldRules1 = new SubFormFieldRule(
+ id: "rule_1",
+ triggerOperator: "AND",
+ triggers: formFieldRules1Triggers,
+ actions: formFieldRules1Actions
+ );
+
+ var formFieldRules = new List
+ {
+ formFieldRules1,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var templateCreateRequest = new TemplateCreateRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ signerRoles: signerRoles,
+ formFieldsPerDocument: formFieldsPerDocument,
+ formFieldRules: formFieldRules,
+ mergeFields: mergeFields
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreate(
+ templateCreateRequest: templateCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateCreateFormFieldsPerDocumentExample.cs b/examples/TemplateCreateFormFieldsPerDocumentExample.cs
new file mode 100644
index 0000000..503e806
--- /dev/null
+++ b/examples/TemplateCreateFormFieldsPerDocumentExample.cs
@@ -0,0 +1,125 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateCreateFormFieldsPerDocumentExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var fieldOptions = new SubFieldOptions(
+ dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
+ );
+
+ var signerRoles1 = new SubTemplateRole(
+ name: "Client",
+ order: 0
+ );
+
+ var signerRoles2 = new SubTemplateRole(
+ name: "Witness",
+ order: 1
+ );
+
+ var signerRoles = new List
+ {
+ signerRoles1,
+ signerRoles2,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentText(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "text",
+ required: true,
+ signer: "1",
+ width: 100,
+ height: 16,
+ x: 112,
+ y: 328,
+ name: "",
+ page: 1,
+ placeholder: "",
+ validationType: SubFormFieldsPerDocumentText.ValidationTypeEnum.NumbersOnly
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentSignature(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "signature",
+ required: true,
+ signer: "0",
+ width: 120,
+ height: 30,
+ x: 530,
+ y: 415,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var mergeFields1 = new SubMergeField(
+ name: "Full Name",
+ type: SubMergeField.TypeEnum.Text
+ );
+
+ var mergeFields2 = new SubMergeField(
+ name: "Is Registered?",
+ type: SubMergeField.TypeEnum.Checkbox
+ );
+
+ var mergeFields = new List
+ {
+ mergeFields1,
+ mergeFields2,
+ };
+
+ var templateCreateRequest = new TemplateCreateRequest(
+ clientId: "37dee8d8440c66d54cfa05d92c160882",
+ message: "For your approval",
+ subject: "Please sign this document",
+ testMode: true,
+ title: "Test Template",
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ ccRoles: [
+ "Manager",
+ ],
+ fieldOptions: fieldOptions,
+ signerRoles: signerRoles,
+ formFieldsPerDocument: formFieldsPerDocument,
+ mergeFields: mergeFields
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateCreate(
+ templateCreateRequest: templateCreateRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateCreate: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateDelete.cs b/examples/TemplateDelete.cs
deleted file mode 100644
index 2740496..0000000
--- a/examples/TemplateDelete.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- templateApi.TemplateDelete(templateId);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateDeleteExample.cs b/examples/TemplateDeleteExample.cs
new file mode 100644
index 0000000..5a49ea0
--- /dev/null
+++ b/examples/TemplateDeleteExample.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateDeleteExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ new TemplateApi(config).TemplateDelete(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateDelete: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateFiles.cs b/examples/TemplateFiles.cs
deleted file mode 100644
index db4d641..0000000
--- a/examples/TemplateFiles.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- var result = templateApi.TemplateFiles(templateId, "pdf");
-
- var fileStream = File.Create("file_response.pdf");
- result.Seek(0, SeekOrigin.Begin);
- result.CopyTo(fileStream);
- fileStream.Close();
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateFilesAsDataUri.cs b/examples/TemplateFilesAsDataUri.cs
deleted file mode 100644
index 0d999f5..0000000
--- a/examples/TemplateFilesAsDataUri.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- var result = templateApi.TemplateFilesAsDataUri(templateId, "pdf", false, false);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateFilesAsDataUriExample.cs b/examples/TemplateFilesAsDataUriExample.cs
new file mode 100644
index 0000000..5c946b8
--- /dev/null
+++ b/examples/TemplateFilesAsDataUriExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesAsDataUriExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateFilesAsDataUri(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFilesAsDataUri: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateFilesAsFileUrl.cs b/examples/TemplateFilesAsFileUrl.cs
deleted file mode 100644
index 4bdc39d..0000000
--- a/examples/TemplateFilesAsFileUrl.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- var result = templateApi.TemplateFilesAsFileUrl(templateId, "pdf", false, false);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateFilesAsFileUrlExample.cs b/examples/TemplateFilesAsFileUrlExample.cs
new file mode 100644
index 0000000..3b5bc98
--- /dev/null
+++ b/examples/TemplateFilesAsFileUrlExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesAsFileUrlExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateFilesAsFileUrl(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ forceDownload: 1
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFilesAsFileUrl: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateFilesExample.cs b/examples/TemplateFilesExample.cs
new file mode 100644
index 0000000..0cf55f3
--- /dev/null
+++ b/examples/TemplateFilesExample.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateFilesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateFiles(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+ var fileStream = File.Create("./file_response");
+ response.Seek(0, SeekOrigin.Begin);
+ response.CopyTo(fileStream);
+ fileStream.Close();
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateFiles: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateGet.cs b/examples/TemplateGet.cs
deleted file mode 100644
index 8354820..0000000
--- a/examples/TemplateGet.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var templateId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- var result = templateApi.TemplateGet(templateId);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateGetExample.cs b/examples/TemplateGetExample.cs
new file mode 100644
index 0000000..0673000
--- /dev/null
+++ b/examples/TemplateGetExample.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateGetExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateGet(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35"
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateGet: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateList.cs b/examples/TemplateList.cs
deleted file mode 100644
index b6cb40d..0000000
--- a/examples/TemplateList.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var accountId = "f57db65d3f933b5316d398057a36176831451a35";
-
- try
- {
- var result = templateApi.TemplateList(accountId, 1, 20, null);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateListExample.cs b/examples/TemplateListExample.cs
new file mode 100644
index 0000000..4d0b900
--- /dev/null
+++ b/examples/TemplateListExample.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateListExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateList(
+ page: 1,
+ pageSize: 20
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateList: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateRemoveUser.cs b/examples/TemplateRemoveUser.cs
deleted file mode 100644
index da93c4c..0000000
--- a/examples/TemplateRemoveUser.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var data = new TemplateRemoveUserRequest(
- emailAddress: "george@dropboxsign.com"
- );
-
- var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536";
-
- try
- {
- var result = templateApi.TemplateRemoveUser(templateId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateRemoveUserExample.cs b/examples/TemplateRemoveUserExample.cs
new file mode 100644
index 0000000..66bcbfe
--- /dev/null
+++ b/examples/TemplateRemoveUserExample.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateRemoveUserExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var templateRemoveUserRequest = new TemplateRemoveUserRequest(
+ emailAddress: "george@dropboxsign.com"
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateRemoveUser(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateRemoveUserRequest: templateRemoveUserRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateRemoveUser: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/TemplateUpdateFiles.cs b/examples/TemplateUpdateFiles.cs
deleted file mode 100644
index 1ac81ef..0000000
--- a/examples/TemplateUpdateFiles.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var templateApi = new TemplateApi(config);
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new TemplateUpdateFilesRequest(
- files: files
- );
-
- var templateId = "21f920ec2b7f4b6bb64d3ed79f26303843046536";
-
- try
- {
- var result = templateApi.TemplateUpdateFiles(templateId, data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/TemplateUpdateFilesExample.cs b/examples/TemplateUpdateFilesExample.cs
new file mode 100644
index 0000000..1fe2ccf
--- /dev/null
+++ b/examples/TemplateUpdateFilesExample.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class TemplateUpdateFilesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var templateUpdateFilesRequest = new TemplateUpdateFilesRequest(
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ }
+ );
+
+ try
+ {
+ var response = new TemplateApi(config).TemplateUpdateFiles(
+ templateId: "f57db65d3f933b5316d398057a36176831451a35",
+ templateUpdateFilesRequest: templateUpdateFilesRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling TemplateApi#TemplateUpdateFiles: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/UnclaimedDraftCreate.cs b/examples/UnclaimedDraftCreate.cs
deleted file mode 100644
index b645322..0000000
--- a/examples/UnclaimedDraftCreate.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
-
- var signer1 = new SubUnclaimedDraftSigner(
- emailAddress: "jack@example.com",
- name: "Jack",
- order: 0
- );
-
- var signer2 = new SubUnclaimedDraftSigner(
- emailAddress: "jill@example.com",
- name: "Jill",
- order: 1
- );
-
- var subSigningOptions = new SubSigningOptions(
- draw: true,
- type: true,
- upload: true,
- phone: false,
- defaultType: SubSigningOptions.DefaultTypeEnum.Draw
- );
-
- var subFieldOptions = new SubFieldOptions(
- dateFormat: SubFieldOptions.DateFormatEnum.DD_MM_YYYY
- );
-
- var metadata = new Dictionary()
- {
- ["custom_id"] = 1234,
- ["custom_text"] = "NDA #9"
- };
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new UnclaimedDraftCreateRequest(
- subject: "The NDA we talked about",
- type: UnclaimedDraftCreateRequest.TypeEnum.RequestSignature,
- message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.",
- signers: new List(){signer1, signer2},
- ccEmailAddresses: new List(){"lawyer1@dropboxsign.com", "lawyer2@dropboxsign.com"},
- files: files,
- metadata: metadata,
- signingOptions: subSigningOptions,
- fieldOptions: subFieldOptions,
- testMode: true
- );
-
- try
- {
- var result = unclaimedDraftApi.UnclaimedDraftCreate(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/UnclaimedDraftCreateEmbedded.cs b/examples/UnclaimedDraftCreateEmbedded.cs
deleted file mode 100644
index 2946630..0000000
--- a/examples/UnclaimedDraftCreateEmbedded.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using Dropbox.Sign.Api;
-using Dropbox.Sign.Client;
-using Dropbox.Sign.Model;
-
-public class Example
-{
- public static void Main()
- {
- var config = new Configuration();
- // Configure HTTP basic authorization: api_key
- config.Username = "YOUR_API_KEY";
-
- // or, configure Bearer (JWT) authorization: oauth2
- // config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var unclaimedDraftApi = new UnclaimedDraftApi(config);
-
- var files = new List {
- new FileStream(
- "./example_signature_request.pdf",
- FileMode.Open,
- FileAccess.Read,
- FileShare.Read
- )
- };
-
- var data = new UnclaimedDraftCreateEmbeddedRequest(
- clientId: "ec64a202072370a737edf4a0eb7f4437",
- files: files,
- requesterEmailAddress: "jack@dropboxsign.com",
- testMode: true
- );
-
- try
- {
- var result = unclaimedDraftApi.UnclaimedDraftCreateEmbedded(data);
- Console.WriteLine(result);
- }
- catch (ApiException e)
- {
- Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
- Console.WriteLine("Status Code: " + e.ErrorCode);
- Console.WriteLine(e.StackTrace);
- }
- }
-}
diff --git a/examples/UnclaimedDraftCreateEmbeddedExample.cs b/examples/UnclaimedDraftCreateEmbeddedExample.cs
new file mode 100644
index 0000000..4637922
--- /dev/null
+++ b/examples/UnclaimedDraftCreateEmbeddedExample.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateEmbeddedExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var unclaimedDraftCreateEmbeddedRequest = new UnclaimedDraftCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requesterEmailAddress: "jack@dropboxsign.com",
+ testMode: true,
+ files: new List
+ {
+ new FileStream(
+ path: "./example_signature_request.pdf",
+ mode: FileMode.Open
+ ),
+ }
+ );
+
+ try
+ {
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftCreateEmbedded(
+ unclaimedDraftCreateEmbeddedRequest: unclaimedDraftCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftCreateEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.cs b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.cs
new file mode 100644
index 0000000..58e77d1
--- /dev/null
+++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.cs
@@ -0,0 +1,95 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateEmbeddedFormFieldGroupsExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var formFieldGroups1 = new SubFormFieldGroup(
+ groupId: "RadioItemGroup1",
+ groupLabel: "Radio Item Group 1",
+ requirement: "require_0-1"
+ );
+
+ var formFieldGroups = new List
+ {
+ formFieldGroups1,
+ };
+
+ var formFieldsPerDocument1 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_1",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 328,
+ group: "RadioItemGroup1",
+ isChecked: true,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument2 = new SubFormFieldsPerDocumentRadio(
+ documentIndex: 0,
+ apiId: "uniqueIdHere_2",
+ type: "radio",
+ required: false,
+ signer: "0",
+ width: 18,
+ height: 18,
+ x: 112,
+ y: 370,
+ group: "RadioItemGroup1",
+ isChecked: false,
+ name: "",
+ page: 1
+ );
+
+ var formFieldsPerDocument = new List
+ {
+ formFieldsPerDocument1,
+ formFieldsPerDocument2,
+ };
+
+ var unclaimedDraftCreateEmbeddedRequest = new UnclaimedDraftCreateEmbeddedRequest(
+ clientId: "b6b8e7deaf8f0b95c029dca049356d4a2cf9710a",
+ requesterEmailAddress: "jack@dropboxsign.com",
+ testMode: false,
+ fileUrls: [
+ "https://www.dropbox.com/s/ad9qnhbrjjn64tu/mutual-NDA-example.pdf?dl=1",
+ ],
+ formFieldGroups: formFieldGroups,
+ formFieldsPerDocument: formFieldsPerDocument
+ );
+
+ try
+ {
+ var response = new UnclaimedDraftApi(config).UnclaimedDraftCreateEmbedded(
+ unclaimedDraftCreateEmbeddedRequest: unclaimedDraftCreateEmbeddedRequest
+ );
+
+ Console.WriteLine(response);
+ }
+ catch (ApiException e)
+ {
+ Console.WriteLine("Exception when calling UnclaimedDraftApi#UnclaimedDraftCreateEmbedded: " + e.Message);
+ Console.WriteLine("Status Code: " + e.ErrorCode);
+ Console.WriteLine(e.StackTrace);
+ }
+ }
+}
diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.cs b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.cs
new file mode 100644
index 0000000..84dd527
--- /dev/null
+++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.cs
@@ -0,0 +1,115 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.Json;
+
+using Dropbox.Sign.Api;
+using Dropbox.Sign.Client;
+using Dropbox.Sign.Model;
+
+namespace Dropbox.SignSandbox;
+
+public class UnclaimedDraftCreateEmbeddedFormFieldRulesExample
+{
+ public static void Run()
+ {
+ var config = new Configuration();
+ config.Username = "YOUR_API_KEY";
+ // config.AccessToken = "YOUR_ACCESS_TOKEN";
+
+ var formFieldRules1Triggers1 = new SubFormFieldRuleTrigger(
+ id: "uniqueIdHere_1",
+ varOperator: SubFormFieldRuleTrigger.OperatorEnum.Is,
+ value: "foo"
+ );
+
+ var formFieldRules1Triggers = new List
+ {
+ formFieldRules1Triggers1,
+ };
+
+ var formFieldRules1Actions1 = new SubFormFieldRuleAction(
+ hidden: true,
+ type: SubFormFieldRuleAction.TypeEnum.ChangeFieldVisibility,
+ fieldId: "uniqueIdHere_2"
+ );
+
+ var formFieldRules1Actions = new List