mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-29 14:22:26 -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: | The node assumes the following ZapSign API structure: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| Base URL: https://api.zapsign.co (Production) | Base URL: https://api.zapsign.com.br/ (Production) | ||||||
|          https://sandbox.api.zapsign.co (Sandbox) |          https://sandbox.api.zapsign.com.br/ (Sandbox) | ||||||
| 
 | 
 | ||||||
| Documents: | Documents: | ||||||
| - POST /v1/documents - Create document | - POST /v1/documents - Create document | ||||||
|  |  | ||||||
|  | @ -53,7 +53,7 @@ export class ZapSignApi implements ICredentialType { | ||||||
| 
 | 
 | ||||||
| 	test: ICredentialTestRequest = { | 	test: ICredentialTestRequest = { | ||||||
| 		request: { | 		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', | 			url: '/v1/me', | ||||||
| 			method: 'GET', | 			method: 'GET', | ||||||
| 		}, | 		}, | ||||||
|  |  | ||||||
|  | @ -137,8 +137,8 @@ export class ZapSignTrigger implements INodeType { | ||||||
| 
 | 
 | ||||||
| 				const credentials = await this.getCredentials('zapSignApi'); | 				const credentials = await this.getCredentials('zapSignApi'); | ||||||
| 				const baseUrl = credentials.environment === 'sandbox'  | 				const baseUrl = credentials.environment === 'sandbox'  | ||||||
| 					? 'https://sandbox.api.zapsign.co'  | 					? 'https://sandbox.api.zapsign.com.br/'  | ||||||
| 					: 'https://api.zapsign.co'; | 					: 'https://api.zapsign.com.br/'; | ||||||
| 
 | 
 | ||||||
| 				try { | 				try { | ||||||
| 					const response = await this.helpers.request({ | 					const response = await this.helpers.request({ | ||||||
|  | @ -171,8 +171,8 @@ export class ZapSignTrigger implements INodeType { | ||||||
| 
 | 
 | ||||||
| 				const credentials = await this.getCredentials('zapSignApi'); | 				const credentials = await this.getCredentials('zapSignApi'); | ||||||
| 				const baseUrl = credentials.environment === 'sandbox'  | 				const baseUrl = credentials.environment === 'sandbox'  | ||||||
| 					? 'https://sandbox.api.zapsign.co'  | 					? 'https://sandbox.api.zapsign.com.br/'  | ||||||
| 					: 'https://api.zapsign.co'; | 					: 'https://api.zapsign.com.br/'; | ||||||
| 
 | 
 | ||||||
| 				const body = { | 				const body = { | ||||||
| 					url: webhookUrl, | 					url: webhookUrl, | ||||||
|  | @ -209,8 +209,8 @@ export class ZapSignTrigger implements INodeType { | ||||||
| 				if (webhookData.webhookId !== undefined) { | 				if (webhookData.webhookId !== undefined) { | ||||||
| 					const credentials = await this.getCredentials('zapSignApi'); | 					const credentials = await this.getCredentials('zapSignApi'); | ||||||
| 					const baseUrl = credentials.environment === 'sandbox'  | 					const baseUrl = credentials.environment === 'sandbox'  | ||||||
| 						? 'https://sandbox.api.zapsign.co'  | 						? 'https://sandbox.api.zapsign.com.br/'  | ||||||
| 						: 'https://api.zapsign.co'; | 						: 'https://api.zapsign.com.br/'; | ||||||
| 
 | 
 | ||||||
| 					try { | 					try { | ||||||
| 						await this.helpers.request({ | 						await this.helpers.request({ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue