Skip to content

Instantly share code, notes, and snippets.

@piyushrajput
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save piyushrajput/52dd7970df44319a564f to your computer and use it in GitHub Desktop.

Select an option

Save piyushrajput/52dd7970df44319a564f to your computer and use it in GitHub Desktop.
authorization: OAuth 00DU0000000J83v!AQoAQJkLzYuCPmfyTZ7Mmg.Otq3W6klMTqqXUsTUdfwMtk8BcZJxpNdyCfUmm5.0Psfr8j7xDoNnRuV8u7UtANm.E_ubaXCB
x-chatter-entity-encoding: false
accept: */*
user-agent: Ruby
content-type: multipart/form-data; boundary=-----------RubyMultipartPost
content-length: 34684
-------------RubyMultipartPost
Content-Disposition: form-data; name="json"
Content-Type: application/json; charset=UTF-8
Content-Transfer-Encoding: 8bit
{"body":{"messageSegments":[{"text":"this is the body ","type":"text"},{"type":"mention","id":"005U0000000GIQkIAO"}]},"attachment":{"title":"this is the file name","desc":"this is the file description","fileName":"Screen shot 2012-05-19 at 4.11.12 PM.png"}}
-------------RubyMultipartPost
Content-Disposition: form-data; name="feedItemFileUpload"; filename="Screen shot 2012-05-19 at 4.11.12 PM.png"
Content-Type: image/png
Content-Transfer-Encoding: binary
# binary file attachment here
-------------RubyMultipartPost--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment