We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not get attachments and some formatting to work. After removal of one line in the header and changing a second line it now works.
Old: const data = JSON.stringify({ text: args.data.text });
const data = JSON.stringify({ text: args.data.text });
New: const data = JSON.stringify({ text: args.data.text, attachments: args.data.attachments });
const data = JSON.stringify({ text: args.data.text, attachments: args.data.attachments });
Old: headers: { 'Content-Type': 'application/json', 'Content-Length': data.length }
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length }
New: headers: { 'Content-Type': 'application/json' }
headers: { 'Content-Type': 'application/json' }
I can now send data like this: data: { "text": "This is text", "attachments": [ { "text": "" } ] }
data: { "text": "This is text", "attachments": [ { "text": "" } ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Could not get attachments and some formatting to work. After removal of one line in the header and changing a second line it now works.
Old:
const data = JSON.stringify({ text: args.data.text });
New:
const data = JSON.stringify({ text: args.data.text, attachments: args.data.attachments });
Old:
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length }
New:
headers: { 'Content-Type': 'application/json' }
I can now send data like this:
data: { "text": "This is text", "attachments": [ { "text": "" } ] }
The text was updated successfully, but these errors were encountered: