As you guys know, I'm building a PHP library for Papercups. I'm also building an app and making use of this Papercups, but I paused when I didn't know how to upload an attachment and send it at the same time.
I tried monitoring Network on DevTools and found /api/upload, and I managed to write code like here and here.
Then I tried to send a message with an additional key, namely "attachments" with the resulting value from the json above, but when the webhook arrived on my server, the attachment only contained an empty array and on the Papercups dashboard there was no attachment.
Are attachments not supported for the API yet?
Thank you😀
As you guys know, I'm building a PHP library for Papercups. I'm also building an app and making use of this Papercups, but I paused when I didn't know how to upload an attachment and send it at the same time.
I tried monitoring Network on DevTools and found
/api/upload
, and I managed to write code like here and here.With that function I get a response like this
Then I tried to send a message with an additional key, namely "attachments" with the resulting value from the json above, but when the webhook arrived on my server, the attachment only contained an empty array and on the Papercups dashboard there was no attachment.
Are attachments not supported for the API yet? Thank you😀