force-rest-api icon indicating copy to clipboard operation
force-rest-api copied to clipboard

Add method to get response

Open aduston opened this issue 8 years ago • 1 comments

I couldn't find any way of getting Attachment body (for example) from your library, so I added this method.

aduston avatar Oct 16 '17 15:10 aduston

at first glance, I think a more proper implementation is to add an asXXX method on ResourceRepresentation. I intend to do that for returning raw json. See #47 for that request.

On Mon, Oct 16, 2017 at 8:32 AM Adam Duston [email protected] wrote:

I couldn't find any way of getting Attachment body (for example) from your library, so I added this method.

You can view, comment on, or merge this pull request online at:

https://github.com/jesperfj/force-rest-api/pull/55 Commit Summary

  • Added method to get raw response. Necessary to get (for example) the body of an Attachment.
  • When calling getResponse, express path relative to the API endpoint

File Changes

Patch Links:

  • https://github.com/jesperfj/force-rest-api/pull/55.patch
  • https://github.com/jesperfj/force-rest-api/pull/55.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jesperfj/force-rest-api/pull/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AARUrFxZc-qh8ouVqnRls28acgAX3gVpks5ss3b8gaJpZM4P60Ct .

jesperfj avatar Oct 16 '17 16:10 jesperfj