Best wrapper for simultaneous API requests?
Posted
by
bluebit
on Stack Overflow
See other posts from Stack Overflow
or by bluebit
Published on 2011-01-02T13:41:50Z
Indexed on
2011/01/02
13:54 UTC
Read the original article
Hit count: 225
I am looking for the easiest, simplest way to access web APIs that return either JSON or XML, with concurrent requests.
For example, I would like to call the twitter search API and return 5 pages of results at the same time (5 requests). The results should ideally be integrated and returned in one array of hashes.
I have about 15 APIs that I will be using, and already have code to access them individually (using simple a NET HTTP request) and parse them, but I need to make these requests concurrent in the easiest way possible. Additionally, any error handling for JSON/XML parsing is a bonus.
© Stack Overflow or respective owner