force-rest-api
force-rest-api copied to clipboard
Add method to get response
I couldn't find any way of getting Attachment body (for example) from your library, so I added this method.
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
- M src/main/java/com/force/api/ForceApi.java https://github.com/jesperfj/force-rest-api/pull/55/files#diff-0 (6)
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 .