kiva 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ = Version 0.1.0
2
+ === Wed May 13 14:56:26 CEST 2009
3
+ Updated tests to check all expected attributes and urls are
4
+ available from kiva
5
+
1
6
  = Version 0.0.2
2
7
  === Mon Mar 23 16:51:54 CET 2009
3
8
  * nicer documentation
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ require "rubygems"
9
9
 
10
10
  SHORTNAME ='kiva' # this should be the rubyforge project name
11
11
  DESC = 'wrapper to kiva api'
12
- PKG_VERSION ='0.0.2'
12
+ PKG_VERSION ='0.1.0'
13
13
  LONG_DESC = <<END_DESC
14
14
  Wrapper to the kiva web api. The API is described in
15
15
  more detail here:
@@ -77,11 +77,16 @@ spec = Gem::Specification.new do |s|
77
77
  s.name = SHORTNAME
78
78
  s.version = PKG_VERSION
79
79
  s.files = PKG_FILES
80
+ s.author = "Tim Becker <tim@kuriositaet.de>"
81
+ s.email = "tim@kuriositaet.de"
82
+ s.homepage = "http://kiva.rubyforge.org"
83
+ s.rubyforge_project = "kiva"
80
84
  s.requirements << "none"
81
85
  s.require_path = 'lib'
82
86
  s.description = LONG_DESC
83
87
  s.add_dependency "json"
84
88
  s.add_dependency "simplehttp"
89
+ s.has_rdoc = true
85
90
  end
86
91
 
87
92
  # Adding a new GemPackageTask adds a task named `package`, which generates
@@ -127,17 +127,21 @@ module Kiva
127
127
  attr_accessor :location
128
128
  attr_accessor :sector
129
129
  attr_accessor :basket_amount
130
+
131
+ attr_accessor :borrower_count
132
+ attr_accessor :loan_amount
133
+
130
134
 
131
135
 
136
+ KEY = "loans"
137
+
138
+ LOAD_FOR_LENDER = "http://api.kivaws.org/v1/lenders/%s/loans.json?"
139
+ LOAD_NEWEST = "http://api.kivaws.org/v1/loans/newest.json?"
140
+ LOAD = "http://api.kivaws.org/v1/loans/%s.json"
141
+ SEARCH = "http://api.kivaws.org/v1/loans/search.json"
132
142
 
133
143
  class << self
134
144
 
135
- KEY = "loans"
136
-
137
- LOAD_FOR_LENDER = "http://api.kivaws.org/v1/lenders/%s/loans.json?"
138
- LOAD_NEWEST = "http://api.kivaws.org/v1/loans/newest.json?"
139
- LOAD = "http://api.kivaws.org/v1/loans/%s.json"
140
- SEARCH = "http://api.kivaws.org/v1/loans/search.json"
141
145
 
142
146
 
143
147
  #
@@ -279,12 +283,14 @@ module Kiva
279
283
  attr_accessor :whereabouts
280
284
  attr_accessor :image
281
285
  attr_accessor :member_since
286
+ attr_accessor :personal_url
287
+
282
288
 
283
- class << self
284
- KEY = "lenders"
289
+ KEY = "lenders"
285
290
 
286
- LOAD = "http://api.kivaws.org/v1/lenders/%s.json"
287
- LOAD_FOR_LOAN = "http://api.kivaws.org/v1/loans/%s/lenders.json?"
291
+ LOAD = "http://api.kivaws.org/v1/lenders/%s.json"
292
+ LOAD_FOR_LOAN = "http://api.kivaws.org/v1/loans/%s/lenders.json?"
293
+ class << self
288
294
 
289
295
 
290
296
  #
@@ -348,9 +354,10 @@ module Kiva
348
354
  attr_accessor :lender
349
355
  attr_accessor :loan
350
356
 
357
+ KEY = "lending_actions"
358
+ LOAD_RECENT = "http://api.kivaws.org/v1/lending_actions/recent.json"
359
+
351
360
  class << self
352
- KEY = "lending_actions"
353
- LOAD_RECENT = "http://api.kivaws.org/v1/lending_actions/recent.json"
354
361
 
355
362
  #
356
363
  # Returns the last 100 public actions from Kiva.
@@ -383,7 +390,7 @@ module Kiva
383
390
  attr_accessor :author
384
391
  attr_accessor :subject
385
392
  attr_accessor :bulk
386
- attr_accessor :image
393
+ #attr_accessor :image
387
394
  attr_accessor :recommendation_count
388
395
 
389
396
  #
@@ -402,9 +409,9 @@ module Kiva
402
409
  @comments
403
410
  end
404
411
 
412
+ KEY = "journal_entries"
413
+ LOAD = "http://api.kivaws.org/v1/loans/%s/journal_entries.json?"
405
414
  class << self
406
- KEY = "journal__entries"
407
- LOAD = "http://api.kivaws.org/v1/loans/%s/journal_entries.json?"
408
415
 
409
416
  #
410
417
  # Load journal entries for a loan.
@@ -442,9 +449,9 @@ module Kiva
442
449
  attr_accessor :id
443
450
  attr_accessor :whereabouts
444
451
 
452
+ KEY = "comments"
453
+ URL = "http://api.kivaws.org/v1/journal_entries/%s/comments.json?"
445
454
  class << self
446
- KEY = "comments"
447
- URL = "http://api.kivaws.org/v1/journal_entries/%s/comments.json?"
448
455
 
449
456
  #
450
457
  # Loads an array of comments for a JournalEntry.
@@ -486,9 +493,9 @@ module Kiva
486
493
  attr_accessor :countries
487
494
  attr_accessor :image
488
495
 
496
+ KEY = "partners"
497
+ LOAD = "http://api.kivaws.org/v1/partners.json?"
489
498
  class << self
490
- KEY = "partners"
491
- LOAD = "http://api.kivaws.org/v1/partners.json?"
492
499
 
493
500
  #
494
501
  # Load an alphabetically sorted list of partners.
@@ -18,4 +18,4 @@
18
18
  ["http://api.kivaws.org/v1/partners.json?", nil]=>
19
19
  "{\"paging\":{\"page\":1,\"total\":109,\"page_size\":200,\"pages\":1},\"partners\":[{\"id\":128,\"name\":\"Hagdan sa Pag-uswag Foundation, Inc. (HSPFI)\",\"status\":\"pilot\",\"rating\":2,\"image\":{\"id\":272879,\"template_id\":1},\"start_date\":\"2009-02-20T20:10:11Z\",\"countries\":[{\"iso_code\":\"PH\",\"region\":\"Asia\",\"name\":\"Philippines\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 122\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":23325,\"loans_posted\":99},{\"id\":127,\"name\":\"EDESA\",\"status\":\"pilot\",\"rating\":2.5,\"image\":{\"id\":267189,\"template_id\":1},\"start_date\":\"2009-02-08T12:40:05Z\",\"countries\":[{\"iso_code\":\"CR\",\"region\":\"Central America\",\"name\":\"Costa Rica\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"10 -84\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":6850,\"loans_posted\":7},{\"id\":116,\"name\":\"XacBank\",\"status\":\"pilot\",\"rating\":5,\"image\":{\"id\":179780,\"template_id\":1},\"start_date\":\"2009-01-09T06:40:07Z\",\"countries\":[{\"iso_code\":\"MN\",\"region\":\"Asia\",\"name\":\"Mongolia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"46 105\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":45650,\"loans_posted\":72},{\"id\":122,\"name\":\"Ryada, a partner of CHF International\",\"status\":\"pilot\",\"rating\":4,\"image\":{\"id\":211232,\"template_id\":1},\"start_date\":\"2008-11-24T23:40:12Z\",\"countries\":[{\"iso_code\":\"PS\",\"region\":\"Middle East\",\"name\":\"Palestine\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"31.92157 35.203285\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":15400,\"loans_posted\":14},{\"id\":123,\"name\":\"Alalay sa Kaunlaran, Inc. (ASKI)\",\"status\":\"pilot\",\"rating\":4,\"image\":{\"id\":224871,\"template_id\":1},\"start_date\":\"2008-11-22T02:00:10Z\",\"countries\":[{\"iso_code\":\"PH\",\"region\":\"Asia\",\"name\":\"Philippines\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 122\"}}}],\"delinquency_rate\":0.57066209262436,\"default_rate\":0,\"total_amount_raised\":73475,\"loans_posted\":442},{\"id\":126,\"name\":\"Paglaum Multi-Purpose Cooperative (PMPC)\",\"status\":\"pilot\",\"rating\":3,\"image\":{\"id\":227398,\"template_id\":1},\"start_date\":\"2008-11-21T09:57:59Z\",\"countries\":[{\"iso_code\":\"PH\",\"region\":\"Asia\",\"name\":\"Philippines\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 122\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":73500,\"loans_posted\":251},{\"id\":125,\"name\":\"Community Economic Ventures, Inc. (CEVI), a partner of VisionFund International\",\"status\":\"active\",\"rating\":2,\"image\":{\"id\":227117,\"template_id\":1},\"start_date\":\"2008-11-19T16:10:39Z\",\"countries\":[{\"iso_code\":\"PH\",\"region\":\"Asia\",\"name\":\"Philippines\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 122\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":65250,\"loans_posted\":296},{\"id\":124,\"name\":\"Ahon sa Hirap, Inc. (ASHI)\",\"status\":\"pilot\",\"rating\":2,\"image\":{\"id\":225822,\"template_id\":1},\"start_date\":\"2008-11-14T23:10:22Z\",\"countries\":[{\"iso_code\":\"PH\",\"region\":\"Asia\",\"name\":\"Philippines\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 122\"}}}],\"delinquency_rate\":0.38194444444444,\"default_rate\":0,\"total_amount_raised\":28925,\"loans_posted\":123},{\"id\":121,\"name\":\"Fund for Thanh Hoa Poor Women (TCVM), a partner of Save the Children\",\"status\":\"pilot\",\"rating\":2,\"image\":{\"id\":219104,\"template_id\":1},\"start_date\":\"2008-11-14T02:30:30Z\",\"countries\":[{\"iso_code\":\"VN\",\"region\":\"Asia\",\"name\":\"Viet Nam\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"16.166667 107.833333\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":21600,\"loans_posted\":32},{\"id\":120,\"name\":\"ADIM\",\"status\":\"pilot\",\"rating\":3,\"image\":{\"id\":209619,\"template_id\":1},\"start_date\":\"2008-10-01T20:50:41Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}}],\"delinquency_rate\":0.12366110080396,\"default_rate\":0,\"total_amount_raised\":43825,\"loans_posted\":117},{\"id\":115,\"name\":\"Ameen s.a.l.\",\"status\":\"pilot\",\"rating\":5,\"image\":{\"id\":151750,\"template_id\":1},\"start_date\":\"2008-09-16T21:40:18Z\",\"countries\":[{\"iso_code\":\"LB\",\"region\":\"Middle East\",\"name\":\"Lebanon\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"33.833333 35.833333\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":106200,\"loans_posted\":100},{\"id\":119,\"name\":\"Asociaci\\u00f3n Arariwa\",\"status\":\"pilot\",\"rating\":5,\"image\":{\"id\":179389,\"template_id\":1},\"start_date\":\"2008-08-31T00:40:32Z\",\"countries\":[{\"iso_code\":\"PE\",\"region\":\"South America\",\"name\":\"Peru\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-10 -76\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":103925,\"loans_posted\":55},{\"id\":118,\"name\":\"Prisma Honduras, S.A.\",\"status\":\"active\",\"rating\":3,\"image\":{\"id\":182148,\"template_id\":1},\"start_date\":\"2008-07-04T06:40:12Z\",\"countries\":[{\"iso_code\":\"HN\",\"region\":\"Central America\",\"name\":\"Honduras\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 -86.5\"}}}],\"delinquency_rate\":1.544898165292,\"default_rate\":0,\"total_amount_raised\":154900,\"loans_posted\":187},{\"id\":113,\"name\":\"Asociaci\\u00f3n ASDIR\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":135671,\"template_id\":1},\"start_date\":\"2008-05-30T09:10:07Z\",\"countries\":[{\"iso_code\":\"GT\",\"region\":\"Central America\",\"name\":\"Guatemala\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15.5 -90.25\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":76000,\"loans_posted\":97},{\"id\":117,\"name\":\"Vision Finance Company s.a. (VFC), a partner of World Vision International\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":158511,\"template_id\":1},\"start_date\":\"2008-05-24T13:50:10Z\",\"countries\":[{\"iso_code\":\"RW\",\"region\":\"Africa\",\"name\":\"Rwanda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-2 30\"}}}],\"delinquency_rate\":1.488272142709,\"default_rate\":0,\"total_amount_raised\":125750,\"loans_posted\":156},{\"id\":96,\"name\":\"Fundaci\\u00f3n Leon 2000\",\"status\":\"active\",\"rating\":4.3,\"image\":{\"id\":89842,\"template_id\":1},\"start_date\":\"2008-04-11T06:10:09Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":272775,\"loans_posted\":486},{\"id\":112,\"name\":\"Micro Credit for Development and Transformation SACCO (MCDT SACCO)\",\"status\":\"pilot\",\"rating\":4,\"image\":{\"id\":134306,\"template_id\":1},\"start_date\":\"2008-03-20T13:00:07Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}}],\"delinquency_rate\":1.1823838513297,\"default_rate\":0,\"total_amount_raised\":271400,\"loans_posted\":271},{\"id\":110,\"name\":\"Emprender\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":126015,\"template_id\":1},\"start_date\":\"2008-03-10T04:00:06Z\",\"countries\":[{\"iso_code\":\"BO\",\"region\":\"South America\",\"name\":\"Bolivia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-17 -65\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":208775,\"loans_posted\":267},{\"id\":111,\"name\":\"WAGES\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":156474,\"template_id\":1},\"start_date\":\"2008-03-08T03:00:07Z\",\"countries\":[{\"iso_code\":\"TG\",\"region\":\"Africa\",\"name\":\"Togo\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 1.166667\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":535400,\"loans_posted\":700},{\"id\":107,\"name\":\"BRAC South Sudan\",\"status\":\"active\",\"rating\":3,\"image\":{\"id\":125469,\"template_id\":1},\"start_date\":\"2008-03-01T17:00:11Z\",\"countries\":[{\"iso_code\":\"SD\",\"region\":\"Africa\",\"name\":\"Sudan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 30\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":212375,\"loans_posted\":332},{\"id\":105,\"name\":\"Caurie Microfinance, a partner of Catholic Relief Services\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":120178,\"template_id\":1},\"start_date\":\"2008-02-22T11:50:10Z\",\"countries\":[{\"iso_code\":\"SN\",\"region\":\"Africa\",\"name\":\"Senegal\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"14 -14\"}}}],\"delinquency_rate\":47.613017499758,\"default_rate\":0,\"total_amount_raised\":358075,\"loans_posted\":463},{\"id\":109,\"name\":\"AMK\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":125552,\"template_id\":1},\"start_date\":\"2008-02-18T16:10:19Z\",\"countries\":[{\"iso_code\":\"KH\",\"region\":\"Asia\",\"name\":\"Cambodia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 105\"}}}],\"delinquency_rate\":9.5179272567402,\"default_rate\":0,\"total_amount_raised\":2126475,\"loans_posted\":3101},{\"id\":106,\"name\":\"Hattha Kaksekar Limited (HKL), a partner of Save the Children\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":168135,\"template_id\":1},\"start_date\":\"2008-02-14T21:40:06Z\",\"countries\":[{\"iso_code\":\"KH\",\"region\":\"Asia\",\"name\":\"Cambodia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 105\"}}},{\"iso_code\":\"TH\",\"region\":\"Asia\",\"name\":\"Thailand\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 100\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":884050,\"loans_posted\":1422},{\"id\":78,\"name\":\"Soro Yiriwaso, a partner of Save the Children\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":127125,\"template_id\":1},\"start_date\":\"2008-02-13T02:40:06Z\",\"countries\":[{\"iso_code\":\"ML\",\"region\":\"Africa\",\"name\":\"Mali\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"17 -4\"}}}],\"delinquency_rate\":0.27010940919037,\"default_rate\":0,\"total_amount_raised\":431600,\"loans_posted\":526},{\"id\":108,\"name\":\"UIMCEC, a partner of Christian Children's Fund\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":133981,\"template_id\":1},\"start_date\":\"2008-02-09T04:00:10Z\",\"countries\":[{\"iso_code\":\"SN\",\"region\":\"Africa\",\"name\":\"Senegal\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"14 -14\"}}}],\"delinquency_rate\":6.2956742800397,\"default_rate\":0,\"total_amount_raised\":268125,\"loans_posted\":437},{\"id\":104,\"name\":\"Alid\\u00e9\",\"status\":\"pilot\",\"rating\":4,\"image\":{\"id\":134816,\"template_id\":1},\"start_date\":\"2008-01-30T02:25:05Z\",\"countries\":[{\"iso_code\":\"BJ\",\"region\":\"Africa\",\"name\":\"Benin\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"9.5 2.25\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":279750,\"loans_posted\":654},{\"id\":93,\"name\":\"EDAPROSPO\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":86851,\"template_id\":1},\"start_date\":\"2007-12-27T00:00:25Z\",\"countries\":[{\"iso_code\":\"PE\",\"region\":\"South America\",\"name\":\"Peru\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-10 -76\"}}}],\"delinquency_rate\":0.55693069306931,\"default_rate\":0,\"total_amount_raised\":281475,\"loans_posted\":706},{\"id\":100,\"name\":\"IMON International\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":219034,\"template_id\":1},\"start_date\":\"2007-12-24T17:55:13Z\",\"countries\":[{\"iso_code\":\"TJ\",\"region\":\"Asia\",\"name\":\"Tajikistan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"39 71\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1361625,\"loans_posted\":1795},{\"id\":102,\"name\":\"BRAC Tanzania\",\"status\":\"active\",\"rating\":3.2,\"image\":{\"id\":101023,\"template_id\":1},\"start_date\":\"2007-12-22T21:20:32Z\",\"countries\":[{\"iso_code\":\"TZ\",\"region\":\"Africa\",\"name\":\"Tanzania\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-6 35\"}}}],\"delinquency_rate\":2.1117836918325,\"default_rate\":0,\"total_amount_raised\":1261100,\"loans_posted\":2916},{\"id\":65,\"name\":\"BRAC Uganda\",\"status\":\"active\",\"rating\":3.4,\"image\":{\"id\":100119,\"template_id\":1},\"start_date\":\"2007-12-22T21:17:06Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}}],\"delinquency_rate\":10.232031370195,\"default_rate\":0,\"total_amount_raised\":1790900,\"loans_posted\":1264},{\"id\":81,\"name\":\"Apoyo Integral\",\"status\":\"active\",\"rating\":4.6,\"image\":{\"id\":111746,\"template_id\":1},\"start_date\":\"2007-12-19T06:40:05Z\",\"countries\":[{\"iso_code\":\"SV\",\"region\":\"Central America\",\"name\":\"El Salvador\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13.833333 -88.916667\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":142350,\"loans_posted\":176},{\"id\":101,\"name\":\"Zene za Zene, a partner of Women for Women International\",\"status\":\"pilot\",\"rating\":4.1,\"image\":{\"id\":99330,\"template_id\":1},\"start_date\":\"2007-12-18T17:09:42Z\",\"countries\":[{\"iso_code\":\"BA\",\"region\":\"Eastern Europe\",\"name\":\"Bosnia and Herzegovina\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"44.25 17.833333\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":402300,\"loans_posted\":537},{\"id\":98,\"name\":\"AFODENIC\",\"status\":\"active\",\"rating\":3.8,\"image\":{\"id\":89887,\"template_id\":1},\"start_date\":\"2007-12-17T07:45:04Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}}],\"delinquency_rate\":0.082347220956028,\"default_rate\":0,\"total_amount_raised\":1004300,\"loans_posted\":1767},{\"id\":99,\"name\":\"FECECAV\",\"status\":\"active\",\"rating\":3.7,\"image\":{\"id\":97142,\"template_id\":1},\"start_date\":\"2007-12-12T07:20:05Z\",\"countries\":[{\"iso_code\":\"TG\",\"region\":\"Africa\",\"name\":\"Togo\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 1.166667\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":623400,\"loans_posted\":658},{\"id\":97,\"name\":\"FAPE\",\"status\":\"active\",\"rating\":3,\"image\":{\"id\":89874,\"template_id\":1},\"start_date\":\"2007-12-11T02:25:05Z\",\"countries\":[{\"iso_code\":\"GT\",\"region\":\"Central America\",\"name\":\"Guatemala\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15.5 -90.25\"}}}],\"delinquency_rate\":6.1224516129032,\"default_rate\":0,\"total_amount_raised\":135750,\"loans_posted\":130},{\"id\":92,\"name\":\"Opportunity International- Wedco Ltd.\",\"status\":\"active\",\"rating\":3.2,\"image\":{\"id\":86994,\"template_id\":1},\"start_date\":\"2007-12-11T01:58:00Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":31.30175204918,\"default_rate\":0,\"total_amount_raised\":155375,\"loans_posted\":56},{\"id\":91,\"name\":\"Christian Rural Aid Network (CRAN)\",\"status\":\"active\",\"rating\":3.8,\"image\":{\"id\":95045,\"template_id\":1},\"start_date\":\"2007-12-06T10:15:04Z\",\"countries\":[{\"iso_code\":\"GH\",\"region\":\"Africa\",\"name\":\"Ghana\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 -2\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":674200,\"loans_posted\":1371},{\"id\":90,\"name\":\"Sero Lease and Finance Ltd. (SELFINA)\",\"status\":\"active\",\"rating\":3.6,\"image\":{\"id\":82134,\"template_id\":1},\"start_date\":\"2007-11-17T17:55:04Z\",\"countries\":[{\"iso_code\":\"TZ\",\"region\":\"Africa\",\"name\":\"Tanzania\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-6 35\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":727325,\"loans_posted\":1555},{\"id\":87,\"name\":\"Tujijenge Tanzania Ltd\",\"status\":\"active\",\"rating\":3.2,\"image\":{\"id\":99836,\"template_id\":1},\"start_date\":\"2007-11-07T21:20:04Z\",\"countries\":[{\"iso_code\":\"TZ\",\"region\":\"Africa\",\"name\":\"Tanzania\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-6 35\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":616825,\"loans_posted\":326},{\"id\":88,\"name\":\"Sinapi Aba Trust (SAT)\",\"status\":\"active\",\"rating\":4.9,\"image\":{\"id\":81048,\"template_id\":1},\"start_date\":\"2007-11-07T14:05:05Z\",\"countries\":[{\"iso_code\":\"GH\",\"region\":\"Africa\",\"name\":\"Ghana\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 -2\"}}}],\"delinquency_rate\":2.7347411478972,\"default_rate\":0,\"total_amount_raised\":1071600,\"loans_posted\":1917},{\"id\":85,\"name\":\"SEDA\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":69263,\"template_id\":1},\"start_date\":\"2007-10-31T05:15:04Z\",\"countries\":[{\"iso_code\":\"VN\",\"region\":\"Asia\",\"name\":\"Viet Nam\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"16.166667 107.833333\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":316125,\"loans_posted\":472},{\"id\":76,\"name\":\"ADEPHCA\",\"status\":\"active\",\"rating\":2.6,\"image\":{\"id\":52522,\"template_id\":1},\"start_date\":\"2007-10-31T03:43:03Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}}],\"delinquency_rate\":13.142796296296,\"default_rate\":0,\"total_amount_raised\":74225,\"loans_posted\":161},{\"id\":74,\"name\":\"CEPRODEL\",\"status\":\"active\",\"rating\":4.5,\"image\":{\"id\":92740,\"template_id\":1},\"start_date\":\"2007-10-09T03:50:50Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":830825,\"loans_posted\":1666},{\"id\":62,\"name\":\"Patan Business and Professional Women\",\"status\":\"active\",\"rating\":2.3,\"image\":{\"id\":37656,\"template_id\":1},\"start_date\":\"2007-09-27T05:21:38Z\",\"countries\":[{\"iso_code\":\"NP\",\"region\":\"Asia\",\"name\":\"Nepal\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"28 84\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":107650,\"loans_posted\":442},{\"id\":79,\"name\":\"Yamida (Yayasan Mitra Dhuafa)\",\"status\":\"paused\",\"rating\":4,\"image\":{\"id\":73242,\"template_id\":1},\"start_date\":\"2007-09-21T16:25:04Z\",\"countries\":[{\"iso_code\":\"ID\",\"region\":\"Asia\",\"name\":\"Indonesia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-5 120\"}}}],\"delinquency_rate\":18.068965517241,\"default_rate\":0,\"total_amount_raised\":1450,\"loans_posted\":13},{\"id\":77,\"name\":\"Al Majmoua Lebanese Association for Development, a partner of Save the Children\",\"status\":\"active\",\"rating\":3.7,\"image\":{\"id\":64988,\"template_id\":1},\"start_date\":\"2007-09-12T11:15:03Z\",\"countries\":[{\"iso_code\":\"LB\",\"region\":\"Middle East\",\"name\":\"Lebanon\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"33.833333 35.833333\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1100650,\"loans_posted\":1173},{\"id\":84,\"name\":\"Pearl Microfinance Limited\",\"status\":\"active\",\"rating\":3.7,\"image\":{\"id\":58016,\"template_id\":1},\"start_date\":\"2007-09-09T15:20:03Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1279600,\"loans_posted\":658},{\"id\":82,\"name\":\"DINARI Foundation\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":84806,\"template_id\":1},\"start_date\":\"2007-08-31T08:25:04Z\",\"countries\":[{\"iso_code\":\"ID\",\"region\":\"Asia\",\"name\":\"Indonesia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-5 120\"}}}],\"delinquency_rate\":4.1450366300366,\"default_rate\":0.054178486997636,\"total_amount_raised\":333000,\"loans_posted\":960},{\"id\":73,\"name\":\"Fundaci\\u00f3n Agrocapital, a partner of ACDI\\/VOCA\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":53744,\"template_id\":1},\"start_date\":\"2007-08-30T00:55:04Z\",\"countries\":[{\"iso_code\":\"BO\",\"region\":\"South America\",\"name\":\"Bolivia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-17 -65\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1027775,\"loans_posted\":520},{\"id\":72,\"name\":\"Manuela Ramos \\/ CrediMUJER\",\"status\":\"active\",\"rating\":4.2,\"image\":{\"id\":48480,\"template_id\":1},\"start_date\":\"2007-08-24T16:25:03Z\",\"countries\":[{\"iso_code\":\"PE\",\"region\":\"South America\",\"name\":\"Peru\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-10 -76\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1694075,\"loans_posted\":3575},{\"id\":60,\"name\":\"Asasah, a partner of Save the Children\",\"status\":\"active\",\"rating\":4.8,\"image\":{\"id\":36844,\"template_id\":1},\"start_date\":\"2007-08-02T09:35:03Z\",\"countries\":[{\"iso_code\":\"PK\",\"region\":\"Asia\",\"name\":\"Pakistan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"30 70\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1677000,\"loans_posted\":2062},{\"id\":64,\"name\":\"Fundo De Desenvolvimento Mulher (FDM), a partner of Save the Children\",\"status\":\"paused\",\"rating\":3.2,\"image\":{\"id\":71027,\"template_id\":1},\"start_date\":\"2007-08-02T09:35:03Z\",\"countries\":[{\"iso_code\":\"MZ\",\"region\":\"Africa\",\"name\":\"Mozambique\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-18.25 35\"}}}],\"delinquency_rate\":24.96069986541,\"default_rate\":0,\"total_amount_raised\":112050,\"loans_posted\":296},{\"id\":70,\"name\":\"FINCA Peru\",\"status\":\"active\",\"rating\":4.8,\"image\":{\"id\":47634,\"template_id\":1},\"start_date\":\"2007-07-24T02:43:16Z\",\"countries\":[{\"iso_code\":\"PE\",\"region\":\"South America\",\"name\":\"Peru\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-10 -76\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1687850,\"loans_posted\":2366},{\"id\":71,\"name\":\"Microfinanzas PRISMA\",\"status\":\"active\",\"rating\":4.3,\"image\":{\"id\":184703,\"template_id\":1},\"start_date\":\"2007-07-18T21:41:05Z\",\"countries\":[{\"iso_code\":\"PE\",\"region\":\"South America\",\"name\":\"Peru\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-10 -76\"}}}],\"delinquency_rate\":2.2521254433872e-6,\"default_rate\":0,\"total_amount_raised\":2087900,\"loans_posted\":4530},{\"id\":59,\"name\":\"Pro Mujer Bolivia\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":82155,\"template_id\":1},\"start_date\":\"2007-07-18T06:16:15Z\",\"countries\":[{\"iso_code\":\"BO\",\"region\":\"South America\",\"name\":\"Bolivia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-17 -65\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":698300,\"loans_posted\":296},{\"id\":67,\"name\":\"TYM Fund\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":44990,\"template_id\":1},\"start_date\":\"2007-06-25T03:12:44Z\",\"countries\":[{\"iso_code\":\"VN\",\"region\":\"Asia\",\"name\":\"Viet Nam\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"16.166667 107.833333\"}}}],\"delinquency_rate\":0.47090316573557,\"default_rate\":0,\"total_amount_raised\":1074300,\"loans_posted\":1520},{\"id\":66,\"name\":\"Fundaci\\u00f3n San Miguel Arc\\u00e1ngel, Inc. (FSMA)\",\"status\":\"paused\",\"rating\":3.4,\"image\":{\"id\":50557,\"template_id\":1},\"start_date\":\"2007-06-20T23:50:58Z\",\"countries\":[{\"iso_code\":\"DO\",\"region\":\"North America\",\"name\":\"Dominican Republic\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"19 -70.666667\"}}}],\"delinquency_rate\":58.709034289118,\"default_rate\":0,\"total_amount_raised\":593750,\"loans_posted\":1187},{\"id\":63,\"name\":\"MLO Humo and Partners\",\"status\":\"active\",\"rating\":3.3,\"image\":{\"id\":39420,\"template_id\":1},\"start_date\":\"2007-06-05T21:23:50Z\",\"countries\":[{\"iso_code\":\"TJ\",\"region\":\"Asia\",\"name\":\"Tajikistan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"39 71\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1129900,\"loans_posted\":1517},{\"id\":61,\"name\":\"MAXIMA Mikroheranhvatho Co., Ltd.\",\"status\":\"active\",\"rating\":4.2,\"image\":{\"id\":37651,\"template_id\":1},\"start_date\":\"2007-05-29T04:13:27Z\",\"countries\":[{\"iso_code\":\"KH\",\"region\":\"Asia\",\"name\":\"Cambodia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 105\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1041100,\"loans_posted\":1697},{\"id\":58,\"name\":\"Fundaci\\u00f3n Paraguaya\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":35036,\"template_id\":1},\"start_date\":\"2007-05-23T18:53:44Z\",\"countries\":[{\"iso_code\":\"PY\",\"region\":\"South America\",\"name\":\"Paraguay\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-22.993333 -57.996389\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":2040150,\"loans_posted\":2221},{\"id\":57,\"name\":\"Salone Microfinance Trust (SMT), a partner of Christian Children's Fund\",\"status\":\"active\",\"rating\":3.2,\"image\":{\"id\":277642,\"template_id\":1},\"start_date\":\"2007-05-22T00:50:38Z\",\"countries\":[{\"iso_code\":\"SL\",\"region\":\"Africa\",\"name\":\"Sierra Leone\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8.5 -11.5\"}}}],\"delinquency_rate\":8.2344117963621,\"default_rate\":0,\"total_amount_raised\":679400,\"loans_posted\":1008},{\"id\":51,\"name\":\"Alternativa Solidaria Chiapas (AlSol)\",\"status\":\"active\",\"rating\":4.6,\"image\":{\"id\":36900,\"template_id\":1},\"start_date\":\"2007-05-21T21:49:34Z\",\"countries\":[{\"iso_code\":\"MX\",\"region\":\"North America\",\"name\":\"Mexico\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"23 -102\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":429825,\"loans_posted\":503},{\"id\":52,\"name\":\"ACODE Finance\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":43295,\"template_id\":1},\"start_date\":\"2007-05-13T22:29:08Z\",\"countries\":[{\"iso_code\":\"TD\",\"region\":\"Africa\",\"name\":\"Chad\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 19\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":0,\"loans_posted\":61},{\"id\":56,\"name\":\"Aqroinvest Credit Union\",\"status\":\"active\",\"rating\":3.1,\"image\":{\"id\":33698,\"template_id\":1},\"start_date\":\"2007-05-08T07:15:20Z\",\"countries\":[{\"iso_code\":\"AZ\",\"region\":\"Asia\",\"name\":\"Azerbaijan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"40.5 47.5\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1066500,\"loans_posted\":964},{\"id\":50,\"name\":\"Iraqi Al-Aman center \\/ Kirkuk\",\"status\":\"active\",\"rating\":3.1,\"image\":{\"id\":29120,\"template_id\":1},\"start_date\":\"2007-05-07T20:27:41Z\",\"countries\":[{\"iso_code\":\"IQ\",\"region\":\"Middle East\",\"name\":\"Iraq\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"33 44\"}}}],\"delinquency_rate\":23.65080952381,\"default_rate\":0,\"total_amount_raised\":190200,\"loans_posted\":164},{\"id\":55,\"name\":\"Friendship Bridge\",\"status\":\"active\",\"rating\":3.7,\"image\":{\"id\":33214,\"template_id\":1},\"start_date\":\"2007-05-07T14:47:26Z\",\"countries\":[{\"iso_code\":\"GT\",\"region\":\"Central America\",\"name\":\"Guatemala\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15.5 -90.25\"}}}],\"delinquency_rate\":0.49855419284076,\"default_rate\":0,\"total_amount_raised\":462825,\"loans_posted\":271},{\"id\":54,\"name\":\"Women's Trust, Inc.\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":34767,\"template_id\":1},\"start_date\":\"2007-05-06T14:44:02Z\",\"countries\":[{\"iso_code\":\"GH\",\"region\":\"Africa\",\"name\":\"Ghana\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 -2\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1500,\"loans_posted\":3},{\"id\":53,\"name\":\"Afrique Emergence & Investissements (AE&I)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":32737,\"template_id\":1},\"start_date\":\"2007-04-26T19:07:59Z\",\"countries\":[{\"iso_code\":\"CI\",\"region\":\"Africa\",\"name\":\"Cote D'Ivoire\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 -5\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":192575,\"loans_posted\":235},{\"id\":49,\"name\":\"Urban Ministry\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":21394,\"template_id\":1},\"start_date\":\"2007-04-19T22:14:11Z\",\"countries\":[{\"iso_code\":\"NG\",\"region\":\"Africa\",\"name\":\"Nigeria\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"10 8\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":4900,\"loans_posted\":6},{\"id\":45,\"name\":\"HELP Africa\",\"status\":\"paused\",\"rating\":1,\"image\":{\"id\":16202,\"template_id\":1},\"start_date\":\"2007-04-04T00:46:46Z\",\"countries\":[{\"iso_code\":\"TG\",\"region\":\"Africa\",\"name\":\"Togo\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 1.166667\"}}}],\"delinquency_rate\":36.643012987013,\"default_rate\":0,\"total_amount_raised\":45650,\"loans_posted\":95},{\"id\":48,\"name\":\"IMPRO\",\"status\":\"active\",\"rating\":4.5,\"image\":{\"id\":17273,\"template_id\":1},\"start_date\":\"2007-03-26T06:25:30Z\",\"countries\":[{\"iso_code\":\"BO\",\"region\":\"South America\",\"name\":\"Bolivia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-17 -65\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":603825,\"loans_posted\":1244},{\"id\":47,\"name\":\"MLF MicroInvest, a partner of ACDI\\/VOCA\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":17208,\"template_id\":1},\"start_date\":\"2007-03-06T22:42:46Z\",\"countries\":[{\"iso_code\":\"TJ\",\"region\":\"Asia\",\"name\":\"Tajikistan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"39 71\"}}}],\"delinquency_rate\":2.0035618878005e-5,\"default_rate\":0,\"total_amount_raised\":1571100,\"loans_posted\":2149},{\"id\":41,\"name\":\"Mekong Plus\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":14647,\"template_id\":1},\"start_date\":\"2007-03-06T22:17:52Z\",\"countries\":[{\"iso_code\":\"VN\",\"region\":\"Asia\",\"name\":\"Viet Nam\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"16.166667 107.833333\"}}}],\"delinquency_rate\":88,\"default_rate\":0,\"total_amount_raised\":27775,\"loans_posted\":383},{\"id\":37,\"name\":\"Share an Opportunity Microfinance Ltd. (SAO MFI)\",\"status\":\"closed\",\"rating\":3,\"image\":{\"id\":24195,\"template_id\":1},\"start_date\":\"2007-02-26T07:22:43Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}}],\"delinquency_rate\":0,\"default_rate\":5.0677754677755,\"total_amount_raised\":60125,\"loans_posted\":73},{\"id\":46,\"name\":\"HOPE DRC, a partner of HOPE International\",\"status\":\"pilot\",\"rating\":2.4,\"image\":{\"id\":16266,\"template_id\":1},\"start_date\":\"2007-02-22T06:46:31Z\",\"countries\":[{\"iso_code\":\"CD\",\"region\":\"Africa\",\"name\":\"The Democratic Republic of the Congo\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"0 25\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":166725,\"loans_posted\":82},{\"id\":44,\"name\":\"Esperanza International, a partner of HOPE International\",\"status\":\"active\",\"rating\":3.8,\"image\":{\"id\":48782,\"template_id\":1},\"start_date\":\"2007-02-20T05:17:43Z\",\"countries\":[{\"iso_code\":\"DO\",\"region\":\"North America\",\"name\":\"Dominican Republic\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"19 -70.666667\"}}},{\"iso_code\":\"HT\",\"region\":\"North America\",\"name\":\"Haiti\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"19 -72.416667\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":914725,\"loans_posted\":648},{\"id\":40,\"name\":\"Grounded and Holistic Approach for People's Empowerment (GHAPE)\",\"status\":\"active\",\"rating\":2,\"image\":{\"id\":14986,\"template_id\":1},\"start_date\":\"2007-02-19T01:40:29Z\",\"countries\":[{\"iso_code\":\"CM\",\"region\":\"Africa\",\"name\":\"Cameroon\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"6 12\"}}}],\"delinquency_rate\":33.55045751634,\"default_rate\":0.49081455805893,\"total_amount_raised\":256900,\"loans_posted\":470},{\"id\":36,\"name\":\"Action Now: Kenya (ANK)\",\"status\":\"paused\",\"rating\":1,\"image\":{\"id\":13457,\"template_id\":1},\"start_date\":\"2007-02-17T20:26:58Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":56.812686433064,\"default_rate\":0,\"total_amount_raised\":127300,\"loans_posted\":214},{\"id\":43,\"name\":\"Family Business Partners\\/Ganesha (MBK)\",\"status\":\"active\",\"rating\":5,\"image\":{\"id\":15401,\"template_id\":1},\"start_date\":\"2007-02-15T07:53:59Z\",\"countries\":[{\"iso_code\":\"ID\",\"region\":\"Asia\",\"name\":\"Indonesia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-5 120\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":74925,\"loans_posted\":796},{\"id\":32,\"name\":\"Supporting Enterprises for Economic Development (SEED Development Group)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":7817,\"template_id\":1},\"start_date\":\"2007-01-31T16:18:45Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":18.732394366197,\"total_amount_raised\":74550,\"loans_posted\":446},{\"id\":34,\"name\":\"Ariana Financial Services Joint Stock Company (AFS), a partner of Mercy Corps\",\"status\":\"active\",\"rating\":3.5,\"image\":{\"id\":238874,\"template_id\":1},\"start_date\":\"2007-01-18T21:51:39Z\",\"countries\":[{\"iso_code\":\"AF\",\"region\":\"Middle East\",\"name\":\"Afghanistan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"33 65\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":655175,\"loans_posted\":886},{\"id\":33,\"name\":\"Rural Agency for Development (RAFODE)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":9686,\"template_id\":1},\"start_date\":\"2007-01-04T17:40:46Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":0,\"loans_posted\":48},{\"id\":26,\"name\":\"HOPE Ukraine\\/Nadiya, a partner of HOPE International\",\"status\":\"active\",\"rating\":3.3,\"image\":{\"id\":14522,\"template_id\":1},\"start_date\":\"2006-12-17T01:39:53Z\",\"countries\":[{\"iso_code\":\"UA\",\"region\":\"Eastern Europe\",\"name\":\"Ukraine\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"49 32\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1059050,\"loans_posted\":1307},{\"id\":27,\"name\":\"People Microcredit Investment Bureau (PEMCI)\",\"status\":\"closed\",\"rating\":1.8,\"image\":{\"id\":6013,\"template_id\":1},\"start_date\":\"2006-12-14T23:07:40Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":22.739578664276,\"total_amount_raised\":111550,\"loans_posted\":493},{\"id\":30,\"name\":\"Komak Credit Union\",\"status\":\"active\",\"rating\":3.3,\"image\":{\"id\":9419,\"template_id\":1},\"start_date\":\"2006-12-09T18:09:19Z\",\"countries\":[{\"iso_code\":\"AZ\",\"region\":\"Asia\",\"name\":\"Azerbaijan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"40.5 47.5\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1491250,\"loans_posted\":1477},{\"id\":31,\"name\":\"Norwegian Microcredit LLC (Normicro)\",\"status\":\"active\",\"rating\":4.5,\"image\":{\"id\":9240,\"template_id\":1},\"start_date\":\"2006-12-09T06:39:45Z\",\"countries\":[{\"iso_code\":\"AZ\",\"region\":\"Asia\",\"name\":\"Azerbaijan\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"40.5 47.5\"}}}],\"delinquency_rate\":0.14344807802639,\"default_rate\":0,\"total_amount_raised\":1149925,\"loans_posted\":1447},{\"id\":23,\"name\":\"Hluvuku-Adsema\",\"status\":\"active\",\"rating\":3,\"image\":{\"id\":1432,\"template_id\":1},\"start_date\":\"2006-11-18T18:36:56Z\",\"countries\":[{\"iso_code\":\"MZ\",\"region\":\"Africa\",\"name\":\"Mozambique\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-18.25 35\"}}}],\"delinquency_rate\":24.324745441629,\"default_rate\":0,\"total_amount_raised\":306900,\"loans_posted\":457},{\"id\":24,\"name\":\"Kisumu Medical & Education Trust (K-MET)\",\"status\":\"active\",\"rating\":1.6,\"image\":{\"id\":3021,\"template_id\":1},\"start_date\":\"2006-11-14T17:44:51Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":205825,\"loans_posted\":343},{\"id\":25,\"name\":\"Ebony Foundation (Eb-F)\",\"status\":\"paused\",\"rating\":1.9,\"image\":{\"id\":4186,\"template_id\":1},\"start_date\":\"2006-11-13T20:37:50Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":59.370918638947,\"default_rate\":0,\"total_amount_raised\":697975,\"loans_posted\":838},{\"id\":19,\"name\":\"Kraban Support Foundation (KSF)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":1294,\"template_id\":1},\"start_date\":\"2006-11-08T01:27:45Z\",\"countries\":[{\"iso_code\":\"GH\",\"region\":\"Africa\",\"name\":\"Ghana\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 -2\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":502200,\"loans_posted\":600},{\"id\":22,\"name\":\"Microfund Togo\",\"status\":\"active\",\"rating\":3.9,\"image\":{\"id\":1429,\"template_id\":1},\"start_date\":\"2006-11-07T01:16:09Z\",\"countries\":[{\"iso_code\":\"TG\",\"region\":\"Africa\",\"name\":\"Togo\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"8 1.166667\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1511625,\"loans_posted\":1831},{\"id\":20,\"name\":\"Lift Above Poverty Organization (LAPO)\",\"status\":\"active\",\"rating\":4.7,\"image\":{\"id\":1298,\"template_id\":1},\"start_date\":\"2006-11-03T07:38:55Z\",\"countries\":[{\"iso_code\":\"NG\",\"region\":\"Africa\",\"name\":\"Nigeria\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"10 8\"}}}],\"delinquency_rate\":0.099332400129213,\"default_rate\":0,\"total_amount_raised\":2261400,\"loans_posted\":3689},{\"id\":17,\"name\":\"Microinvest\",\"status\":\"active\",\"rating\":4.4,\"image\":{\"id\":1474,\"template_id\":1},\"start_date\":\"2006-10-27T00:20:49Z\",\"countries\":[{\"iso_code\":\"MD\",\"region\":\"Eastern Europe\",\"name\":\"Moldova\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"47 29\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":207500,\"loans_posted\":186},{\"id\":21,\"name\":\"Mikrofond EAD\",\"status\":\"paused\",\"rating\":3.6,\"image\":{\"id\":1426,\"template_id\":1},\"start_date\":\"2006-10-27T00:20:24Z\",\"countries\":[{\"iso_code\":\"BG\",\"region\":\"Eastern Europe\",\"name\":\"Bulgaria\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"43 25\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":337600,\"loans_posted\":258},{\"id\":18,\"name\":\"Fundaci\\u00f3n para la Vivienda Progresiva (FVP), a partner of CHF International\",\"status\":\"active\",\"rating\":3.5,\"image\":{\"id\":15607,\"template_id\":1},\"start_date\":\"2006-10-02T14:28:23Z\",\"countries\":[{\"iso_code\":\"MX\",\"region\":\"North America\",\"name\":\"Mexico\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"23 -102\"}}}],\"delinquency_rate\":1.9133457992134,\"default_rate\":0,\"total_amount_raised\":911450,\"loans_posted\":1097},{\"id\":16,\"name\":\"Admic Nacional\",\"status\":\"active\",\"rating\":4.4,\"image\":{\"id\":219662,\"template_id\":1},\"start_date\":\"2006-08-31T19:20:48Z\",\"countries\":[{\"iso_code\":\"MX\",\"region\":\"North America\",\"name\":\"Mexico\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"23 -102\"}}}],\"delinquency_rate\":6.5906906494576e-5,\"default_rate\":0,\"total_amount_raised\":1660600,\"loans_posted\":3263},{\"id\":15,\"name\":\"South Pacific Business Development (SPBD)\",\"status\":\"active\",\"rating\":4,\"image\":{\"id\":123624,\"template_id\":1},\"start_date\":\"2006-08-01T01:22:22Z\",\"countries\":[{\"iso_code\":\"WS\",\"region\":\"Asia\",\"name\":\"Samoa\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-13.583333 -172.333333\"}}}],\"delinquency_rate\":1.8851240593858,\"default_rate\":0,\"total_amount_raised\":1704775,\"loans_posted\":2509},{\"id\":13,\"name\":\"Adelante Foundation\",\"status\":\"paused\",\"rating\":4.1,\"image\":{\"id\":1037,\"template_id\":1},\"start_date\":\"2006-07-24T07:52:33Z\",\"countries\":[{\"iso_code\":\"HN\",\"region\":\"Central America\",\"name\":\"Honduras\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 -86.5\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":1500,\"loans_posted\":3},{\"id\":11,\"name\":\"Women's Initiative to Eradicate Poverty (WITEP)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":579,\"template_id\":1},\"start_date\":\"2006-05-10T14:49:03Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":4500,\"loans_posted\":306},{\"id\":9,\"name\":\"CREDIT, a partner of World Relief\",\"status\":\"active\",\"rating\":4.9,\"image\":{\"id\":469,\"template_id\":1},\"start_date\":\"2006-05-03T15:56:20Z\",\"countries\":[{\"iso_code\":\"KH\",\"region\":\"Asia\",\"name\":\"Cambodia\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 105\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":2976200,\"loans_posted\":4009},{\"id\":10,\"name\":\"Youth Self Employment Foundation (YOSEFO)\",\"status\":\"active\",\"rating\":2.7,\"image\":{\"id\":514,\"template_id\":1},\"start_date\":\"2006-04-24T16:14:12Z\",\"countries\":[{\"iso_code\":\"TZ\",\"region\":\"Africa\",\"name\":\"Tanzania\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-6 35\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":479000,\"loans_posted\":664},{\"id\":7,\"name\":\"MIFEX\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":45830,\"template_id\":1},\"start_date\":\"2006-04-23T19:12:27Z\",\"countries\":[{\"iso_code\":\"EC\",\"region\":\"South America\",\"name\":\"Ecuador\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-2 -77.5\"}}}],\"delinquency_rate\":0,\"default_rate\":24.137886597938,\"total_amount_raised\":1396800,\"loans_posted\":2652},{\"id\":8,\"name\":\"Life in Africa Foundation (LiA)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":436,\"template_id\":1},\"start_date\":\"2006-04-18T01:21:41Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}},{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":0,\"total_amount_raised\":37700,\"loans_posted\":135},{\"id\":6,\"name\":\"Women`s Economic Empowerment Consort (WEEC)\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":356,\"template_id\":1},\"start_date\":\"2006-03-15T18:00:00Z\",\"countries\":[{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}}],\"delinquency_rate\":0,\"default_rate\":38.00290140517,\"total_amount_raised\":472185,\"loans_posted\":2033},{\"id\":4,\"name\":\"Senegal Ecovillage Microfinance Fund (SEM)\",\"status\":\"active\",\"rating\":2.5,\"image\":{\"id\":1395,\"template_id\":1},\"start_date\":\"2006-02-15T18:00:00Z\",\"countries\":[{\"iso_code\":\"SN\",\"region\":\"Africa\",\"name\":\"Senegal\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"14 -14\"}}}],\"delinquency_rate\":0.82248635027299,\"default_rate\":0,\"total_amount_raised\":269375,\"loans_posted\":231},{\"id\":5,\"name\":\"Prisma Microfinance\",\"status\":\"paused\",\"rating\":4.3,\"image\":{\"id\":45250,\"template_id\":1},\"start_date\":\"2006-02-15T18:00:00Z\",\"countries\":[{\"iso_code\":\"NI\",\"region\":\"Central America\",\"name\":\"Nicaragua\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"13 -85\"}}},{\"iso_code\":\"HN\",\"region\":\"Central America\",\"name\":\"Honduras\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"15 -86.5\"}}}],\"delinquency_rate\":18.082220058423,\"default_rate\":0,\"total_amount_raised\":399925,\"loans_posted\":1136},{\"id\":2,\"name\":\"The Shurush Initiative\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":309,\"template_id\":1},\"start_date\":\"2006-02-15T18:00:00Z\",\"countries\":[{\"iso_code\":null,\"region\":\"Middle East\",\"name\":\"Gaza\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"31.5 34.466667\"}}}],\"delinquency_rate\":0,\"default_rate\":57.159090909091,\"total_amount_raised\":4400,\"loans_posted\":15},{\"id\":3,\"name\":\"Regional Economic Development Center (REDC Bulgaria)\",\"status\":\"closed\",\"rating\":1,\"image\":{\"id\":313,\"template_id\":1},\"start_date\":\"2006-02-15T18:00:00Z\",\"countries\":[{\"iso_code\":\"BG\",\"region\":\"Eastern Europe\",\"name\":\"Bulgaria\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"43 25\"}}}],\"delinquency_rate\":0,\"default_rate\":14.455040871935,\"total_amount_raised\":36700,\"loans_posted\":44},{\"id\":1,\"name\":\"East Africa Beta\",\"status\":\"closed\",\"rating\":0,\"image\":{\"id\":58088,\"template_id\":1},\"start_date\":\"2005-04-15T17:00:00Z\",\"countries\":[{\"iso_code\":\"UG\",\"region\":\"Africa\",\"name\":\"Uganda\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"2 33\"}}},{\"iso_code\":\"KE\",\"region\":\"Africa\",\"name\":\"Kenya\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"1 38\"}}},{\"iso_code\":\"TZ\",\"region\":\"Africa\",\"name\":\"Tanzania\",\"location\":{\"geo\":{\"level\":\"country\",\"type\":\"point\",\"pairs\":\"-6 35\"}}}],\"delinquency_rate\":0,\"default_rate\":9.1917293233083,\"total_amount_raised\":26600,\"loans_posted\":62}]}",
20
20
  ["http://api.kivaws.org/v1/loans/14077/journal_entries.json?", nil]=>
21
- "{\"paging\":{\"page\":1,\"total\":1,\"page_size\":20,\"pages\":1},\"journal__entries\":[{\"id\":15916,\"subject\":\"Agradecimientos a Kiva\",\"body\":\"<p>Moraima agradece a kiva y la comunidad solidaria por la ayuda prestada a su negocio. Ella agradece a Kiva y la comunidad solidaria de tener esta oportunidad de atender las necesidades de la poblaci\\u00f3n con el financiamiento de Kiva. La familia depende de lo que genere el negocio.<\\/p>\\r\\n\\r\\n<p>www.mifex.org<\\/p>\",\"date\":\"2007-07-17T02:20:06Z\",\"author\":\"Luis Crespo\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0}]}"}
21
+ "{\"paging\":{\"page\":1,\"total\":1,\"page_size\":20,\"pages\":1},\"journal_entries\":[{\"id\":15916,\"subject\":\"Agradecimientos a Kiva\",\"body\":\"<p>Moraima agradece a kiva y la comunidad solidaria por la ayuda prestada a su negocio. Ella agradece a Kiva y la comunidad solidaria de tener esta oportunidad de atender las necesidades de la poblaci\\u00f3n con el financiamiento de Kiva. La familia depende de lo que genere el negocio.<\\/p>\\r\\n\\r\\n<p>www.mifex.org<\\/p>\",\"date\":\"2007-07-17T02:20:06Z\",\"author\":\"Luis Crespo\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0}]}"}
File without changes
@@ -0,0 +1 @@
1
+ 14509
@@ -0,0 +1,226 @@
1
+ # Purpose of this file is to ensure that all the urls are reachable and the
2
+ # Web API is returning the expected fields in the results.
3
+ # (the web api isn't particularly stable)
4
+
5
+
6
+ require 'test/unit'
7
+ require 'simplehttp'
8
+ require File.dirname(__FILE__) + '/../lib/kiva'
9
+
10
+ class TestWebservice < Test::Unit::TestCase
11
+ LENDER_ID = "tim9918"
12
+ LOAN_ID = "95693"
13
+ JOURNAL_ID = "14077"
14
+ URLS = [
15
+ "http://api.kivaws.org/v1/journal_entries/#{JOURNAL_ID}/comments.json",
16
+ "http://api.kivaws.org/v1/lenders/#{LENDER_ID}.json",
17
+ "http://api.kivaws.org/v1/lenders/#{LENDER_ID}/loans.json",
18
+ "http://api.kivaws.org/v1/lenders/newest.json",
19
+ "http://api.kivaws.org/v1/lenders/search.json",
20
+ "http://api.kivaws.org/v1/lending_actions/recent.json",
21
+ "http://api.kivaws.org/v1/loans/newest.json",
22
+ "http://api.kivaws.org/v1/loans/#{LOAN_ID}.json",
23
+ "http://api.kivaws.org/v1/loans/#{LOAN_ID}/lenders.json",
24
+ "http://api.kivaws.org/v1/loans/#{LOAN_ID}/journal_entries.json",
25
+ "http://api.kivaws.org/v1/loans/search.json",
26
+ "http://api.kivaws.org/v1/loans/#{LOAN_ID}/updates.json",
27
+ "http://api.kivaws.org/v1/partners.json",
28
+ "http://api.kivaws.org/v1/templates/images",
29
+ ]
30
+
31
+ @@run_test = nil
32
+
33
+ def setup
34
+ if @@run_test == nil
35
+
36
+ # These tests take a long time to run, skip them in case
37
+ # we've already run against the current release.
38
+ File.open(File.dirname(__FILE__) +"/release_tested", "a+"){ |f|
39
+ f.rewind
40
+ @@last_tested_release = f.readlines.last
41
+ }
42
+
43
+ url = "http://api.kivaws.org/v1/releases/api/current.json"
44
+ j = JSON.parse SimpleHttp.get url
45
+ check_keys ["release"], j.keys, url
46
+
47
+ l = j["release"]
48
+ keys = %w{id date}
49
+ check_keys keys, l.keys, url
50
+ @@current_release = l["id"]
51
+ @@run_test = @@current_release.to_i > @@last_tested_release.to_i
52
+ unless @@run_test
53
+ STDERR.puts "\nWILL NOT RUN LIVE WEBSERVICE TESTS!"
54
+ STDERR.puts "The release #{@@current_release} has already been tested against kiva's server."
55
+ STDERR.puts "If you would like to run these tests anyway, delete the file `test/release_tested`"
56
+ STDERR.puts "These tests take a little bit longer to run, so they aren't executed unless something changes"
57
+
58
+ end
59
+ end
60
+ end
61
+
62
+ def teardown
63
+ if @@current_release
64
+ File.open(File.dirname(__FILE__) + "/release_tested", "w") {|f|
65
+ f.puts @@current_release
66
+ }
67
+ end
68
+ end
69
+
70
+ # check to see if the expected urls are functioning.
71
+ def test_urls_available
72
+ return unless @@run_test
73
+ failures = []
74
+ URLS.each {|url|
75
+ begin
76
+ SimpleHttp.get(url)
77
+ rescue Exception => e
78
+ failures << e.to_s << "\n"
79
+ end
80
+ }
81
+
82
+ if failures.length != 0
83
+ assert false, failures.join
84
+ end
85
+ end
86
+
87
+ def check_keys test_keys, json_keys, url
88
+ assert_equal json_keys-test_keys, [], "new keys in #{url}"
89
+ assert_equal test_keys-json_keys, [], "missing keys in #{url}"
90
+
91
+ end
92
+
93
+ def test_expected_attributes_loan
94
+ return unless @@run_test
95
+ url = Kiva::Loan::LOAD_FOR_LENDER % LENDER_ID
96
+ j = JSON.parse SimpleHttp.get url
97
+ keys_l_p = ["loans", "paging"]
98
+ check_keys keys_l_p, j.keys, url
99
+
100
+ keys = %w{id status name posted_date activity description partner_id use funded_amount image location sector borrower_count loan_amount }
101
+
102
+ assert_equal Array, j["loans"].class
103
+ l = j["loans"][0]
104
+ check_keys keys, l.keys, url
105
+
106
+
107
+ url = Kiva::Loan::LOAD_NEWEST
108
+ j = JSON.parse SimpleHttp.get url
109
+ check_keys keys_l_p, j.keys, url
110
+
111
+ assert_equal Array, j["loans"].class
112
+ l = j["loans"][0]
113
+ keys << "basket_amount"
114
+ check_keys keys, l.keys, url
115
+
116
+
117
+ url = Kiva::Loan::LOAD % LOAN_ID
118
+ j = JSON.parse SimpleHttp.get url
119
+ check_keys ["loans"], j.keys, url
120
+
121
+ assert_equal Array, j["loans"].class
122
+ l = j["loans"][0]
123
+ keys_details = (keys + ["journal_totals", "borrowers", "funded_date", "terms"]) - ["borrower_count", "loan_amount", "basket_amount"]
124
+ check_keys keys_details, l.keys, url
125
+
126
+
127
+ url = Kiva::Loan::SEARCH
128
+ j = JSON.parse SimpleHttp.get url
129
+ check_keys keys_l_p, j.keys, url
130
+
131
+ assert_equal Array, j["loans"].class
132
+ l = j["loans"][0]
133
+ keys_search = (keys + ["journal_totals", "borrowers", "funded_date", "terms"]) - ["journal_totals", "borrowers", "funded_date", "terms"]
134
+ check_keys keys_search, l.keys, url
135
+ end
136
+
137
+ def test_expected_attributes_lender
138
+ return unless @@run_test
139
+ url = Kiva::Lender::LOAD % LENDER_ID
140
+ j = JSON.parse SimpleHttp.get url
141
+ check_keys ["lenders"], j.keys, url
142
+
143
+ assert_equal Array, j["lenders"].class
144
+ l = j["lenders"][0]
145
+ keys_lender = ["loan_count", "occupation", "name", "lender_id",
146
+ "country_code", "loan_because", "invitee_count",
147
+ "occupational_info", "uid", "whereabouts", "personal_url",
148
+ "image", "member_since"]
149
+
150
+
151
+ check_keys keys_lender, l.keys, url
152
+
153
+ url = Kiva::Lender::LOAD_FOR_LOAN % LOAN_ID
154
+ j = JSON.parse SimpleHttp.get url
155
+ check_keys ["paging","lenders"], j.keys, url
156
+ keys_l4l = keys_lender - ["loan_count", "occupation", "loan_because", "invitee_count", "occupational_info", "personal_url", "image", "member_since"]
157
+
158
+
159
+ assert_equal Array, j["lenders"].class
160
+ l = j["lenders"][0]
161
+
162
+ check_keys keys_l4l, l.keys, url
163
+ end
164
+
165
+ def test_attributes_lending_action
166
+ return unless @@run_test
167
+ url = Kiva::LendingAction::LOAD_RECENT
168
+ j = JSON.parse SimpleHttp.get url
169
+ check_keys ["lenders"], j.keys, url
170
+
171
+ assert_equal Array, j["lenders"].class
172
+ l = j["lenders"][0]
173
+ keys_lender = ["loan_count", "occupation", "name", "lender_id",
174
+ "country_code", "loan_because", "invitee_count",
175
+ "occupational_info", "uid", "whereabouts", "personal_url",
176
+ "image", "member_since"]
177
+
178
+
179
+ check_keys keys_lender, l.keys, url
180
+
181
+ end
182
+
183
+ def test_attributes_journal_entry
184
+ return unless @@run_test
185
+
186
+ url = Kiva::JournalEntry::LOAD % LOAN_ID
187
+ j = JSON.parse SimpleHttp.get url
188
+ check_keys ["journal_entries", "paging"], j.keys, url
189
+
190
+ assert_equal Array, j["journal_entries"].class
191
+ l = j["journal_entries"][0]
192
+ keys = %w{id body date comment_count author subject bulk recommendation_count}
193
+
194
+ check_keys keys, l.keys, url
195
+ end
196
+
197
+ def test_attributes_comments
198
+ return unless @@run_test
199
+
200
+ url = Kiva::Comment::URL % "15916"
201
+ j = JSON.parse SimpleHttp.get url
202
+ check_keys ["comments", "paging"], j.keys, url
203
+
204
+ assert_equal Array, j["comments"].class
205
+ l = j["comments"][0]
206
+ keys = %w{body date author id whereabouts}
207
+
208
+ check_keys keys, l.keys, url
209
+
210
+ end
211
+
212
+ def test_attributes_partner
213
+ return unless @@run_test
214
+ url = Kiva::Partner::LOAD
215
+ j = JSON.parse SimpleHttp.get url
216
+ check_keys ["partners", "paging"], j.keys, url
217
+
218
+ assert_equal Array, j["partners"].class
219
+ l = j["partners"][0]
220
+ keys = %w{start_date rating status name delinquency_rate id total_amount_raised default_rate loans_posted countries image}
221
+
222
+ check_keys keys, l.keys, url
223
+ end
224
+
225
+
226
+ end # TestWebservice
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
- authors: []
7
-
6
+ authors:
7
+ - Tim Becker <tim@kuriositaet.de>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-23 00:00:00 +01:00
12
+ date: 2009-05-13 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: simplehttp
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -31,7 +33,7 @@ dependencies:
31
33
  version: "0"
32
34
  version:
33
35
  description: "Wrapper to the kiva web api. The API is described in more detail here: http://developers.wiki.kiva.org/KivaAPI"
34
- email:
36
+ email: tim@kuriositaet.de
35
37
  executables: []
36
38
 
37
39
  extensions: []
@@ -51,9 +53,11 @@ files:
51
53
  - TODO
52
54
  - test/fixtures.rbf
53
55
  - test/generate_fixtures.rb
56
+ - test/release_tested
54
57
  - test/test_kiva.rb
55
- has_rdoc: false
56
- homepage:
58
+ - test/test_webservice.rb
59
+ has_rdoc: true
60
+ homepage: http://kiva.rubyforge.org
57
61
  post_install_message:
58
62
  rdoc_options: []
59
63
 
@@ -73,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
77
  version:
74
78
  requirements:
75
79
  - none
76
- rubyforge_project:
77
- rubygems_version: 1.0.1
80
+ rubyforge_project: kiva
81
+ rubygems_version: 1.3.1
78
82
  signing_key:
79
83
  specification_version: 2
80
84
  summary: "kiva: wrapper to kiva api"