mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
Update ZapSign API base URLs from .co to .com.br domains
Co-authored-by: andre <andre@zapsign.com.br>
This commit is contained in:
parent
c56f70b43d
commit
e747473010
3 changed files with 9 additions and 9 deletions
|
|
@ -135,8 +135,8 @@ Additional security features:
|
|||
The node assumes the following ZapSign API structure:
|
||||
|
||||
```
|
||||
Base URL: https://api.zapsign.co (Production)
|
||||
https://sandbox.api.zapsign.co (Sandbox)
|
||||
Base URL: https://api.zapsign.com.br/ (Production)
|
||||
https://sandbox.api.zapsign.com.br/ (Sandbox)
|
||||
|
||||
Documents:
|
||||
- POST /v1/documents - Create document
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export class ZapSignApi implements ICredentialType {
|
|||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials.environment === "sandbox" ? "https://sandbox.api.zapsign.co" : "https://api.zapsign.co"}}',
|
||||
baseURL: '={{$credentials.environment === "sandbox" ? "https://sandbox.api.zapsign.com.br/" : "https://api.zapsign.com.br/"}}',
|
||||
url: '/v1/me',
|
||||
method: 'GET',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -137,8 +137,8 @@ export class ZapSignTrigger implements INodeType {
|
|||
|
||||
const credentials = await this.getCredentials('zapSignApi');
|
||||
const baseUrl = credentials.environment === 'sandbox'
|
||||
? 'https://sandbox.api.zapsign.co'
|
||||
: 'https://api.zapsign.co';
|
||||
? 'https://sandbox.api.zapsign.com.br/'
|
||||
: 'https://api.zapsign.com.br/';
|
||||
|
||||
try {
|
||||
const response = await this.helpers.request({
|
||||
|
|
@ -171,8 +171,8 @@ export class ZapSignTrigger implements INodeType {
|
|||
|
||||
const credentials = await this.getCredentials('zapSignApi');
|
||||
const baseUrl = credentials.environment === 'sandbox'
|
||||
? 'https://sandbox.api.zapsign.co'
|
||||
: 'https://api.zapsign.co';
|
||||
? 'https://sandbox.api.zapsign.com.br/'
|
||||
: 'https://api.zapsign.com.br/';
|
||||
|
||||
const body = {
|
||||
url: webhookUrl,
|
||||
|
|
@ -209,8 +209,8 @@ export class ZapSignTrigger implements INodeType {
|
|||
if (webhookData.webhookId !== undefined) {
|
||||
const credentials = await this.getCredentials('zapSignApi');
|
||||
const baseUrl = credentials.environment === 'sandbox'
|
||||
? 'https://sandbox.api.zapsign.co'
|
||||
: 'https://api.zapsign.co';
|
||||
? 'https://sandbox.api.zapsign.com.br/'
|
||||
: 'https://api.zapsign.com.br/';
|
||||
|
||||
try {
|
||||
await this.helpers.request({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue