slack-api icon indicating copy to clipboard operation
slack-api copied to clipboard

querystring.stringify doesn't work with attachments array

Open rosshettel opened this issue 10 years ago • 0 comments

For the chat.postMessage method (there may be others, but this is where I noticed the issue), it has an attachments parameter of an array of objects.

All API methods are GET requests and go through querystring.stringify - seems that this doesn't handle complex arrays well. I think changing the method to a POST request would work better.

rosshettel avatar Jul 31 '15 18:07 rosshettel