coderintherye/Kivabeta

Build a mechanism for adding loans from after this snapshot

Opened this issue · 2 comments

Current State:

  • Loans are currently read from a snapshot pulled from the API.
  • Javascript parses this snapshot to produce the search results.
  • Snapshot currently has ~2,000 loans.

Future:

  • Kiva has ~500k loans.
  • Need a method to query the API with searches.

@coderintherye - I'm working on pulling data directly from the API.

/loans/search returns 20 results per page. Is there a way to retrieve more than 20 results?

Starting this... Using JSONP.
https://github.com/mscoutermarsh/Kivabeta/tree/PullFromAPI

Kiva API supports JSONP... example URL:
http://api.kivaws.org/v1/loans/100000.json?jsonp=your_callback

If anyone has opinions on better methods... please let me know.