filestack / filestack-java

Official Java SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://filestack.com
Apache License 2.0
18 stars 21 forks source link

Access to the response body from uploads #81

Open jagged91 opened 6 years ago

jagged91 commented 6 years ago

Is there a way to access the response body, or more ideally, the 'key' parameter returned in the response body, with this library?

Here's the response:

{ "url": "https://www.filestackapi.com/api/file/s7tdGfE5RRKFUxwsZoYv", "size": 8331, "type": "image/png", "filename": "watermark.png", "key": "a1RyBxiglW92bS2SRmqM_watermark.png" }

The 'key' in my case points at the filename in S3.

scana commented 6 years ago

I am sorry, we do not support this currently.

I will see what can be done about it as right now we are in the process of reworking most of this library's public API.

jagged91 commented 6 years ago

Thanks! Even just the response from OKHTTP would be useful.