ewake
Member
Hi there, I'm building an integration for an email system I'm using, it's called emailchef (https://emailchef.com/integration/#emailchef-public-api)
The app is using a token-based authentication with a custom header named "authkey". I know Pabbly has "Basic Auth (Access Token Response)" available but I couldn't get it to work using this API so I put the token in the app credentials.
I want to build an action to add a contact to a list (https://emailchef.com/integration/#contacts-create-instance). I got the basic endpoint call working, now I want to make it dynamic.
To make it dynamic I need to:
The first inbuilt action has the following config
First problem is that the fetch lists endpoint outputs an array
but the response I get is just the first element of the array
Basing on this, I cannot get the second step to work because I need to get the output of this into the second inbuilt action.
What am I missing? What am I doing wrong?
The app is using a token-based authentication with a custom header named "authkey". I know Pabbly has "Basic Auth (Access Token Response)" available but I couldn't get it to work using this API so I put the token in the app credentials.
I want to build an action to add a contact to a list (https://emailchef.com/integration/#contacts-create-instance). I got the basic endpoint call working, now I want to make it dynamic.
To make it dynamic I need to:
- fetch the lists (https://emailchef.com/integration/#lists-get-collection)
- make the user pick one
- fetch the custom fields for the list (https://emailchef.com/integration/#custom-fields-get-collection)
- build the array to be passed to the create contact
The first inbuilt action has the following config
First problem is that the fetch lists endpoint outputs an array
JSON:
[
{
"name":"Test List Zero",
"id":"487",
"description":"First list to play with",
"active":"26",
"segments":"0",
"unsubscribed":"0",
"bounced":"0",
"in_newsletter":"0",
"date":"2015-10-08 10:22:09"
},
{
"name":"Test List One",
"id":"488",
"description":"Second list to play with",
"active":"20",
"segments":"2",
"unsubscribed":"0",
"bounced":"0",
"in_newsletter":"0",
"date":"2015-10-09 12:22:09"
}
]
but the response I get is just the first element of the array
Basing on this, I cannot get the second step to work because I need to get the output of this into the second inbuilt action.
What am I missing? What am I doing wrong?