Hacker News new | ask | show | jobs
by clukic 1833 days ago
A couple of things I omitted for brevity:

The async server response doesn't contain the data. It contains a link to retrieve the data. So make a request and then wait to for a link to be sent to your server that you can use to retrieve the data for a limited time.

The responses sent to the server don't correspond one to one to the requests. One response may contain data for many requests, and many responses may contain data for one request. Each response contains data for many UATs.

2 comments

This reminds me of the time I was dealing with a REST API that exposed an image thumbnail.. except the response contained a file path, and the response completed before the file was actually written to disk.

They were paying me to work with this, yet they couldn't be bothered to fix this on their end.

What a terrible experience.

wow, that sounds less like an API and more of a user/customer-facing feature, like Google Checkout.