We got a json payload with multiple attachment in base 64 format
example:
{
"messages": [ {
"channel": "email",
"destination": ["someuser@email.co.za"],
"clientMessageId":"123",
"message": {
"payload_type":"html",
"content": "samplebase64encoded content",
"subject": "Sample subject",
"attachment":[
{
"content": "base64encodedFile",
"name": "Test",
"contentType":"image/jpg",
"sha256Hash": "f454d98fc28822193d9b486ce52aa8ddde68db088c49e31359d49150b22b9677"
}
]
}
}]
}
The attachment can be multiple any suggestion on how to add
all the attachment as we cannot know the number of attachments
------------------------------
Pre-Sales Consultant
CA Southern Africa
------------------------------