Skip to content

Instantly share code, notes, and snippets.

@adamjleonard
Last active February 12, 2018 02:34
Show Gist options
  • Save adamjleonard/70a650d3dd7a58c8f36cdd9fac034de1 to your computer and use it in GitHub Desktop.
Save adamjleonard/70a650d3dd7a58c8f36cdd9fac034de1 to your computer and use it in GitHub Desktop.
hash = { id: 1, name: “Mark”, title: “Unicorn Dev” }
client.web_client.files_upload({
title: “Attachment Title”,
filetype: “javascript”,
content: JSON.pretty_generate(hash).to_s,
channels: data.channel,
filename: “attachment.json”
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment