+ added new tools

This commit is contained in:
Miquel Colomer
2021-02-25 10:35:48 +01:00
parent 85703a8bf7
commit 0a0509a4ae
8 changed files with 173 additions and 168 deletions

View File

@@ -20,12 +20,15 @@ export async function uprocApiRequest(this: IHookFunctions | IExecuteFunctions |
}
const token = Buffer.from(`${credentials.email}:${credentials.apiKey}`).toString('base64');
const options: OptionsWithUri = {
headers: { Authorization: `Basic ${token}` },
headers: {
Authorization: `Basic ${token}`,
"User-agent": "n8n"
},
method,
qs,
body,
uri: uri || `https://api.uproc.io/api/v2/process`,
json: true,
json: true
};
try {