Hey,
sorry for not being clear here.
So, when you call a http
attachment like this, inside of the attachment you just specify a request
object, and this object can take the same parameters than the webhook, because we are using the same code internally. I hope this makes it more clear.
"actions" : {
"email_admin" : {
"email": {
"to": "'John Doe <john.doe@example.com>'",
"attachments" : {
"my_report.pdf" : {
"http" : {
"content_type" : "application/pdf",
"request" : {
"HERE GO ALL THE WEBHOOK PARAMETERS",
"url": "http://example.org/foo/my-report"
}
}
}
}
}
}
}
Hope this clears it up. Otherwise feel free to ask further!
--Alex