Im trying to upload a file to a specific HipChat room as an attachment.
I cant seem to figure out the syntax using the API help.
Tried so many:
curl -i -X POST -H 'Content-Type: text/plain' -F "file=@filename" <URL>/v2/room/<roomID>/notification?auth_token=<auth_token>
I've done searches online and it's quite difficult to find documentation on how to simply send a file to rooms via curl. The /share/file API seems considerably complicated compared to how easy the old API was.
Oddly enough, though, hubot seems to send images without any difficulty, yet if you try to write a coffeescript to send the same images, it's quite difficult. There's a little bit of help in their xmpp documentation here, but it's not enough:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Heya, Hipchat friends! We’re so happy you’re checking out Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs