mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 15:22:25 -05:00 
			
		
		
		
	Create ZapSign n8n node with comprehensive documentation and implementation
Co-authored-by: andre <andre@zapsign.com.br>
This commit is contained in:
		
					parent
					
						
							
								67ee5b8e80
							
						
					
				
			
			
				commit
				
					
						b76fd3d7f3
					
				
			
		
					 16 changed files with 6991 additions and 579 deletions
				
			
		
							
								
								
									
										61
									
								
								credentials/ZapSignApi.credentials.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								credentials/ZapSignApi.credentials.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,61 @@ | |||
| import { | ||||
| 	IAuthenticateGeneric, | ||||
| 	ICredentialTestRequest, | ||||
| 	ICredentialType, | ||||
| 	INodeProperties, | ||||
| } from 'n8n-workflow'; | ||||
| 
 | ||||
| export class ZapSignApi implements ICredentialType { | ||||
| 	name = 'zapSignApi'; | ||||
| 	displayName = 'ZapSign API'; | ||||
| 	documentationUrl = 'https://docs.zapsign.com.br/'; | ||||
| 	properties: INodeProperties[] = [ | ||||
| 		{ | ||||
| 			displayName: 'API Key', | ||||
| 			name: 'apiKey', | ||||
| 			type: 'string', | ||||
| 			typeOptions: { | ||||
| 				password: true, | ||||
| 			}, | ||||
| 			default: '', | ||||
| 			required: true, | ||||
| 			description: 'Your ZapSign API key', | ||||
| 		}, | ||||
| 		{ | ||||
| 			displayName: 'Environment', | ||||
| 			name: 'environment', | ||||
| 			type: 'options', | ||||
| 			options: [ | ||||
| 				{ | ||||
| 					name: 'Production', | ||||
| 					value: 'production', | ||||
| 				}, | ||||
| 				{ | ||||
| 					name: 'Sandbox', | ||||
| 					value: 'sandbox', | ||||
| 				}, | ||||
| 			], | ||||
| 			default: 'production', | ||||
| 			description: 'The environment to use', | ||||
| 		}, | ||||
| 	]; | ||||
| 
 | ||||
| 	authenticate: IAuthenticateGeneric = { | ||||
| 		type: 'generic', | ||||
| 		properties: { | ||||
| 			headers: { | ||||
| 				'Authorization': '=Bearer {{$credentials.apiKey}}', | ||||
| 				'Content-Type': 'application/json', | ||||
| 				'Accept': 'application/json', | ||||
| 			}, | ||||
| 		}, | ||||
| 	}; | ||||
| 
 | ||||
| 	test: ICredentialTestRequest = { | ||||
| 		request: { | ||||
| 			baseURL: '={{$credentials.environment === "sandbox" ? "https://sandbox.api.zapsign.com" : "https://api.zapsign.com"}}', | ||||
| 			url: '/v1/me', | ||||
| 			method: 'GET', | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue