add basic customer.io trigger

This commit is contained in:
shraddha shaligram
2020-06-30 13:35:31 -07:00
parent 13f71d3af0
commit 7d625572c1
7 changed files with 411 additions and 12 deletions

View File

@@ -19,8 +19,8 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
const endpoint = `${service}.${credentials.region}.amazonaws.com`;
// Sign AWS API request with the user credentials
const signOpts = {headers: headers || {}, host: endpoint, method, path, body};
sign(signOpts, {accessKeyId: `${credentials.accessKeyId}`, secretAccessKey: `${credentials.secretAccessKey}`});
const signOpts = { headers: headers || {}, host: endpoint, method, path, body };
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`, secretAccessKey: `${credentials.secretAccessKey}` });
const options: OptionsWithUri = {
headers: signOpts.headers,