You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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😀
The text was updated successfully, but these errors were encountered:
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😀
The text was updated successfully, but these errors were encountered: