Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions docs/SDKs/go.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
---
title: Go SDK
title: Sign Documents with Go | TurboDocx
sidebar_position: 4
sidebar_label: 'TurboSign: Go'
description: Official TurboDocx Go SDK. Idiomatic Go with context support for document generation and digital signatures.
description: Learn how to sign documents with Go using TurboDocx SDK. Send documents for signature via API and automate signing directly in your Golang application.
keywords:
- turbodocx go
- turbosign go
- golang sdk
- go module
- document api go
- esignature golang
- sign documents go
- sign pdf golang
- esignature api go
- turbodocx go sdk
- turbosign golang
- go module turbodocx
- golang digital signature api
- go document signing
- send documents for signature go
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Go SDK
# Sign Documents with Go

The official TurboDocx SDK for Go applications. Build document generation and digital signature workflows with idiomatic Go patterns, context support, and comprehensive error handling. Available as `github.com/TurboDocx/SDK/packages/go-sdk`.
Learn how to sign documents with Go using the TurboDocx SDK. This guide covers installation, configuration, sending documents for signature, and processing results directly in your Golang application.

## Installation

Expand Down
106 changes: 90 additions & 16 deletions docs/SDKs/index.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
---
title: SDKs Overview
title: Sign Documents with Code | TurboDocx SDKs
sidebar_position: 1
sidebar_label: Overview
description: Official TurboDocx SDKs for JavaScript, Python, Go, and Java. Get started with document generation and digital signatures in minutes.
description: Official TurboDocx SDKs for JavaScript, Python, PHP, Go, and Java. Send documents for signature via API and automate document signing workflows.
keywords:
- turbodocx sdk
- turbosign sdk
- javascript sdk
- python sdk
- go sdk
- java sdk
- document api
- sign documents api
- esignature sdk
- api client library
- document signing api
- turbodocx sdk
- turbosign api
- javascript document signing
- python esignature
- php document api
- go signing sdk
- java esignature api
---

import Tabs from '@theme/Tabs';
Expand All @@ -24,12 +25,13 @@ Official client libraries for the TurboDocx API. Build document generation and d

## Available SDKs

| Language | Package | Install Command | Links |
| :------------------------ | :------------------------- | :------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------- |
| **JavaScript/TypeScript** | `@turbodocx/sdk` | `npm install @turbodocx/sdk` | [Docs](/docs/SDKs/javascript) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/js-sdk) |
| **Python** | `turbodocx-sdk` | `pip install turbodocx-sdk` | [Docs](/docs/SDKs/python) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/py-sdk) |
| **Go** | `github.com/turbodocx/sdk` | `go get github.com/turbodocx/sdk` | [Docs](/docs/SDKs/go) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/go-sdk) |
| **Java** | `com.turbodocx:sdk` | [Maven Central](https://search.maven.org/artifact/com.turbodocx/sdk) | [Docs](/docs/SDKs/java) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/java-sdk) |
| Language | Package | Install Command | Links |
| :------------------------ | :------------------------- | :------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------- |
| **JavaScript/TypeScript** | `@turbodocx/sdk` | `npm install @turbodocx/sdk` | [Docs](/docs/SDKs/javascript) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/js-sdk) |
| **Python** | `turbodocx-sdk` | `pip install turbodocx-sdk` | [Docs](/docs/SDKs/python) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/py-sdk) |
| **PHP** | `turbodocx/sdk` | `composer require turbodocx/sdk` | [Docs](/docs/SDKs/php) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/php-sdk) |
| **Go** | `github.com/turbodocx/sdk` | `go get github.com/turbodocx/sdk` | [Docs](/docs/SDKs/go) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/go-sdk) |
| **Java** | `com.turbodocx:sdk` | [Maven Central](https://search.maven.org/artifact/com.turbodocx/sdk) | [Docs](/docs/SDKs/java) [GitHub](https://github.com/TurboDocx/SDK/tree/main/packages/java-sdk) |

:::tip Low-code or No-code?
Check out our [n8n community node](https://www.npmjs.com/package/@turbodocx/n8n-nodes-turbodocx) for workflow automation, or get [TurboDocx Writer](https://appsource.microsoft.com/en-us/product/office/WA200007397) for Microsoft Word.
Expand Down Expand Up @@ -100,6 +102,13 @@ pip install turbodocx-sdk
poetry add turbodocx-sdk
```

</TabItem>
<TabItem value="php" label="PHP">

```bash
composer require turbodocx/sdk
```

</TabItem>
<TabItem value="go" label="Go">

Expand Down Expand Up @@ -220,6 +229,50 @@ result = TurboSign.send_signature(
print(f"Document sent! ID: {result.documentId}")
```

</TabItem>
<TabItem value="php" label="PHP">

```php
<?php

use TurboDocx\TurboSign;
use TurboDocx\Config\HttpClientConfig;
use TurboDocx\Types\Recipient;
use TurboDocx\Types\Field;
use TurboDocx\Types\SignatureFieldType;
use TurboDocx\Types\Requests\SendSignatureRequest;

// Configure with your API key
TurboSign::configure(new HttpClientConfig(
apiKey: $_ENV['TURBODOCX_API_KEY'],
orgId: $_ENV['TURBODOCX_ORG_ID'],
senderEmail: $_ENV['TURBODOCX_SENDER_EMAIL']
));

// Send a document for signature
$result = TurboSign::sendSignature(
new SendSignatureRequest(
recipients: [
new Recipient('John Doe', 'john@example.com', 1)
],
fields: [
new Field(
type: SignatureFieldType::SIGNATURE,
recipientEmail: 'john@example.com',
page: 1,
x: 100,
y: 500,
width: 200,
height: 50
)
],
fileLink: 'https://example.com/contract.pdf'
)
);

echo "Document sent! ID: {$result->documentId}\n";
```

</TabItem>
<TabItem value="go" label="Go">

Expand Down Expand Up @@ -408,6 +461,27 @@ except TurboDocxError as e:
pass
```

</TabItem>
<TabItem value="php" label="PHP">

```php
<?php

use TurboDocx\TurboSign;
use TurboDocx\Exceptions\TurboDocxException;
use TurboDocx\Exceptions\ValidationException;

try {
$result = TurboSign::sendSignature(/* ... */);
} catch (ValidationException $e) {
echo "Validation error: {$e->getMessage()}\n";
// Handle validation error
} catch (TurboDocxException $e) {
echo "Error {$e->getCode()}: {$e->getMessage()}\n";
echo "Status code: {$e->statusCode}\n";
}
```

</TabItem>
<TabItem value="go" label="Go">

Expand Down
23 changes: 13 additions & 10 deletions docs/SDKs/java.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
---
title: Java SDK
title: Sign Documents with Java | TurboDocx
sidebar_position: 6
sidebar_label: 'TurboSign: Java'
description: Official TurboDocx Java SDK. Builder pattern API with comprehensive error handling for document generation and digital signatures.
description: Learn how to sign documents with Java using TurboDocx SDK. Send documents for signature via API and automate signing in your Spring or Maven project.
keywords:
- turbodocx java
- sign documents java
- sign pdf java
- esignature api java
- turbodocx java sdk
- turbosign java
- maven turbodocx
- gradle turbodocx
- java sdk
- document api java
- esignature java
- maven turbodocx sdk
- java digital signature api
- spring document signing
- gradle esignature
- send documents for signature java
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Java SDK
# Sign Documents with Java

The official TurboDocx SDK for Java applications. Build document generation and digital signature workflows with the Builder pattern, comprehensive error handling, and type-safe APIs. Available on Maven Central as `com.turbodocx:sdk`.
Learn how to sign documents with Java using the TurboDocx SDK. This guide covers installation, configuration, sending documents for signature, and processing results in your Spring Boot or Maven project.

## Installation

Expand Down
36 changes: 19 additions & 17 deletions docs/SDKs/javascript.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
---
title: JavaScript / TypeScript SDK
title: Sign Documents with JavaScript | TurboDocx
sidebar_position: 2
sidebar_label: 'TurboSign: JavaScript / TypeScript'
description: Official TurboDocx JavaScript and TypeScript SDK. Full TypeScript support with async/await patterns for document generation and digital signatures.
description: Learn how to sign documents with JavaScript using TurboDocx SDK. Send documents for signature via API and automate signing in your Node.js or TypeScript app.
keywords:
- turbodocx javascript
- turbodocx typescript
- sign documents javascript
- sign pdf javascript
- esignature api javascript
- turbodocx javascript sdk
- turbosign javascript
- node.js sdk
- typescript sdk
- npm turbodocx
- document api javascript
- esignature javascript
- node.js document signing
- typescript esignature
- npm turbodocx sdk
- javascript digital signature api
- send documents for signature javascript
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# JavaScript / TypeScript SDK
# Sign Documents with JavaScript

The official TurboDocx SDK for JavaScript and TypeScript applications. Build document generation and digital signature workflows with full TypeScript support, async/await patterns, and comprehensive error handling. Available on npm as `@turbodocx/sdk`.
Learn how to sign documents with JavaScript using the TurboDocx SDK. This guide covers installation, configuration, sending documents for signature, and processing results in your Node.js or TypeScript application.

## Installation

Expand Down Expand Up @@ -1030,8 +1032,8 @@ The SDK exports TypeScript types for full type safety. Import them directly from
import type {
// Field types
SignatureFieldType,
N8nField,
N8nRecipient,
Field,
Recipient,
// Request types
CreateSignatureReviewLinkRequest,
SendSignatureRequest,
Expand All @@ -1057,7 +1059,7 @@ type SignatureFieldType =
| "checkbox";
```

### N8nRecipient
### Recipient

Recipient configuration for signature requests:

Expand All @@ -1067,7 +1069,7 @@ Recipient configuration for signature requests:
| `email` | `string` | Yes | Recipient's email address |
| `signingOrder` | `number` | Yes | Signing order (1-indexed) |

### N8nField
### Field

Field configuration supporting both coordinate-based and template-based positioning:

Expand Down Expand Up @@ -1110,8 +1112,8 @@ Request configuration for `createSignatureReviewLink` and `sendSignature` method
| `fileLink` | `string` | Conditional | URL to document file |
| `deliverableId` | `string` | Conditional | TurboDocx deliverable ID |
| `templateId` | `string` | Conditional | TurboDocx template ID |
| `recipients` | `N8nRecipient[]` | Yes | Recipients who will sign |
| `fields` | `N8nField[]` | Yes | Signature fields configuration |
| `recipients` | `Recipient[]` | Yes | Recipients who will sign |
| `fields` | `Field[]` | Yes | Signature fields configuration |
| `documentName` | `string` | No | Document name |
| `documentDescription` | `string` | No | Document description |
| `senderName` | `string` | No | Sender name |
Expand Down
Loading