kiva 0.1.0 → 0.1.14593
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +12 -0
- data/Rakefile +1 -1
- data/lib/kiva.rb +96 -11
- data/test/fixtures.rbf +6 -1
- data/test/generate_fixtures.rb +4 -2
- data/test/release_tested +1 -1
- data/test/test_kiva.rb +29 -0
- data/test/test_webservice.rb +25 -12
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
= Version 0.1.14593
|
2
|
+
=== Fri May 15 11:19:25 CEST 2009
|
3
|
+
`Filter` is extracted, there are two classes: LoanFilter and
|
4
|
+
JournalFilter, the previous `Filter` is now LoanFilter.
|
5
|
+
|
6
|
+
now handles the `search` method of JournalEntries
|
7
|
+
|
8
|
+
bugfix handling Comment loading
|
9
|
+
|
10
|
+
change minor version (14593) to correspond to kiva release number
|
11
|
+
|
12
|
+
|
1
13
|
= Version 0.1.0
|
2
14
|
=== Wed May 13 14:56:26 CEST 2009
|
3
15
|
Updated tests to check all expected attributes and urls are
|
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.1.
|
12
|
+
PKG_VERSION ='0.1.14593'
|
13
13
|
LONG_DESC = <<END_DESC
|
14
14
|
Wrapper to the kiva web api. The API is described in
|
15
15
|
more detail here:
|
data/lib/kiva.rb
CHANGED
@@ -180,7 +180,7 @@ module Kiva
|
|
180
180
|
# Search for loans matching specific criteria.
|
181
181
|
#
|
182
182
|
# ====Parameters
|
183
|
-
# +filter+ : an instance of +
|
183
|
+
# +filter+ : an instance of +LoanFilter+ describing the search parameter
|
184
184
|
#
|
185
185
|
# ====Returns
|
186
186
|
# an array of +Loan+ instances
|
@@ -190,7 +190,8 @@ module Kiva
|
|
190
190
|
#
|
191
191
|
def search filter, page=nil
|
192
192
|
url = SEARCH
|
193
|
-
|
193
|
+
filter ||= LoanFilter.new
|
194
|
+
if page
|
194
195
|
filter["page"] = page
|
195
196
|
end
|
196
197
|
|
@@ -390,7 +391,7 @@ module Kiva
|
|
390
391
|
attr_accessor :author
|
391
392
|
attr_accessor :subject
|
392
393
|
attr_accessor :bulk
|
393
|
-
|
394
|
+
attr_accessor :image
|
394
395
|
attr_accessor :recommendation_count
|
395
396
|
|
396
397
|
#
|
@@ -399,9 +400,9 @@ module Kiva
|
|
399
400
|
# a further network call.
|
400
401
|
def comments
|
401
402
|
unless @comments
|
402
|
-
return nil if id.
|
403
|
+
return nil if id.nil?
|
403
404
|
if @comment_count != 0
|
404
|
-
@comments = Comment.load(
|
405
|
+
@comments = Comment.load(self)
|
405
406
|
else
|
406
407
|
@commetns = []
|
407
408
|
end
|
@@ -409,8 +410,9 @@ module Kiva
|
|
409
410
|
@comments
|
410
411
|
end
|
411
412
|
|
412
|
-
KEY
|
413
|
-
LOAD
|
413
|
+
KEY = "journal_entries"
|
414
|
+
LOAD = "http://api.kivaws.org/v1/loans/%s/journal_entries.json?"
|
415
|
+
SEARCH = "http://api.kivaws.org/v1/journal_entries/search.json?"
|
414
416
|
class << self
|
415
417
|
|
416
418
|
#
|
@@ -437,6 +439,38 @@ module Kiva
|
|
437
439
|
Kiva._populate JournalEntry, unw[KEY]
|
438
440
|
|
439
441
|
end
|
442
|
+
|
443
|
+
|
444
|
+
#
|
445
|
+
# Search for journal entries.
|
446
|
+
#
|
447
|
+
# ====Parameters
|
448
|
+
# +filter+ : an instance of JournalFilter defining the search
|
449
|
+
# +sort_by+ : one of [:newest, :oldest, :recommendation_count, :comment_count]
|
450
|
+
# +page+ : page to load
|
451
|
+
# ====Returns
|
452
|
+
# an array of +JournalEntry+ instances.
|
453
|
+
#
|
454
|
+
# ====Corresponds
|
455
|
+
# http://developers.wiki.kiva.org/KivaAPI#journalentries/search
|
456
|
+
#
|
457
|
+
|
458
|
+
def search filter, sort_by=nil, page=nil
|
459
|
+
url = SEARCH
|
460
|
+
filter ||= JournalFilter.new
|
461
|
+
if sort_by && [:newest, :oldest, :recommendation_count, :comment_count].include?(sort_by)
|
462
|
+
filter["sort_by"]=sort_by
|
463
|
+
end
|
464
|
+
|
465
|
+
if page
|
466
|
+
filter["page"]=page
|
467
|
+
end
|
468
|
+
|
469
|
+
raw = Kiva.execute url, filter.params
|
470
|
+
unw = JSON.parse(raw)
|
471
|
+
|
472
|
+
Kiva._populate JournalEntry, unw[KEY]
|
473
|
+
end
|
440
474
|
end
|
441
475
|
end
|
442
476
|
|
@@ -559,15 +593,24 @@ module Kiva
|
|
559
593
|
end
|
560
594
|
end
|
561
595
|
|
562
|
-
# Filter to be used in order to describe the intended search results
|
563
|
-
# of <code>Loan.search</code>
|
564
596
|
class Filter
|
565
597
|
attr_accessor :params
|
566
|
-
|
567
|
-
# Create a new instance of filter with no attributes.
|
568
598
|
def initialize
|
569
599
|
@params = {}
|
570
600
|
end
|
601
|
+
|
602
|
+
def []= key, value
|
603
|
+
@params[key] = value
|
604
|
+
end
|
605
|
+
|
606
|
+
def [] key
|
607
|
+
@params[key]
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
# Filter to be used in order to describe the intended search results
|
612
|
+
# of <code>Loan.search</code>
|
613
|
+
class LoanFilter < Filter
|
571
614
|
|
572
615
|
# sort_by
|
573
616
|
def popularity
|
@@ -697,6 +740,48 @@ module Kiva
|
|
697
740
|
|
698
741
|
end
|
699
742
|
|
743
|
+
class JournalFilter < Filter
|
744
|
+
|
745
|
+
def media_video
|
746
|
+
@params["media"] = "video"
|
747
|
+
self
|
748
|
+
end
|
749
|
+
|
750
|
+
def media_image
|
751
|
+
@params["media"] = "image"
|
752
|
+
self
|
753
|
+
end
|
754
|
+
|
755
|
+
def media_any
|
756
|
+
@params["media"] = "any"
|
757
|
+
self
|
758
|
+
end
|
759
|
+
|
760
|
+
def include_bulk
|
761
|
+
@params["include_bulk"] = "true"
|
762
|
+
self
|
763
|
+
end
|
764
|
+
|
765
|
+
def no_include_bulk
|
766
|
+
@params["include_bulk"] = "false"
|
767
|
+
self
|
768
|
+
end
|
769
|
+
|
770
|
+
def partner partner
|
771
|
+
# if partner is an instance of Partner, extract the id,
|
772
|
+
# else assume (!) users are passing in a sensible id.
|
773
|
+
partner = partner.is_a?(Partner) ? partner.id : partner
|
774
|
+
|
775
|
+
# partners may be a list
|
776
|
+
@partners ||= []
|
777
|
+
@partners.push(partner.to_s.strip)
|
778
|
+
@params["partner"] = @partners.join(",")
|
779
|
+
self
|
780
|
+
end
|
781
|
+
end # JournalFilter
|
782
|
+
|
783
|
+
|
784
|
+
|
700
785
|
|
701
786
|
end
|
702
787
|
|
data/test/fixtures.rbf
CHANGED
@@ -18,4 +18,9 @@
|
|
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}]}",
|
22
|
+
["http://api.kivaws.org/v1/journal_entries/search.json?", {"media"=>"any"}]=>
|
23
|
+
"{\"paging\":{\"page\":1,\"total\":342,\"page_size\":20,\"pages\":18},\"journal_entries\":[{\"id\":135547,\"subject\":\"Meet Pauline!\",\"body\":\"<p>Check out this interview with Pauline as she discusses her hopes and challanges of her new loan!<\\/p>\",\"date\":\"2009-05-13T20:15:32Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0,\"image\":{\"id\":318954,\"template_id\":1},\"video\":{\"id\":411,\"youtube_id\":\"5ctQ2yxsbqg\"}},{\"id\":135546,\"subject\":\"Update on Grace!\",\"body\":\"<p>Check out this interview with Grace regarding the progress and challenges of her loan and business!<\\/p>\",\"date\":\"2009-05-13T20:05:23Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318948,\"template_id\":1},\"video\":{\"id\":410,\"youtube_id\":\"iOUwClwUnHM\"}},{\"id\":135545,\"subject\":\"Loan update from Nicaragua!\",\"body\":\"<p>Noel is a 42 year old father of two that drives a taxi here in Managua, the capital of Nicaragua. Last July you helped fund a loan on Kiva for Noel to do repairs that would keep the car running, so we stopped in this week to see how Noel has been faring since then.<\\/p>\\\\r\\\\n\\\\r\\\\n<p>When we arrived, his 11 year old son was intensely focused on his homework and copying exercises for his science class. But he actually wants to be an artist someday, and when asked about his art he was more than happy to put off science and begin drawing sea creatures on the same page of his little composition book. In fact, his mother, Noel\\u2019s wife, was actually very supportive of his artistic hopes, boasting about his specialty in drawing Teenage Mutant Ninja Turtles and saying she had heard there were art schools where her son could hopefully apply for a scholarship someday. <\\/p>\\\\r\\\\n\\\\r\\\\n<p>Noel showed us the taxi that he drives, and though he couldn\\u2019t remember exactly which repairs he paid for at which point, he says he used the loan money for what was a badly needed overhaul of the car. Anyone with a car knows that repair expenses can come rapidly and expensively, and over the past year Noel has been very pressed financially because of some pretty serious health problems involving his gastrointestinal system. He found a doctor friend of an in-law to help prescribe treatment, but even the medications have been very expensive, 1600 Cordoba (over $75 U.S.) for even a three month supply. <\\/p>\\\\r\\\\n\\\\r\\\\n<p>An even tougher problem on the horizon are new government regulations that taxis must be cars from 1998 or later, as well as in safe condition. His repairs have his taxi running well now, but it is a 1994 auto that he bought second hand, and he\\u2019s worried that enforcing these new rules would mean he needs a whole new car.<\\/p>\\\\r\\\\n\\\\r\\\\n<p>When times were better Noel used some money to purchase a piece of land in the Nicaraguan countryside, and hopes he can fix it up and move there someday. For now, he said multiple times that he was grateful for the support from this loan, and thankful that there are Kiva lenders to keep his car on the road.<\\/p>\\\\r\\\\n\\\\r\\\\n<p>To meet Noel and see part of his interview, check out the video below!<\\/p>\\\\r\\\\n\\\\r\\\\n<p>To support other loans on Kiva posted by AFODENIC in Nicaragua, <a href=http:\\/\\/www.kiva.org\\/app.php?page=businesses&partner_id=98&status=fundRaising&sortBy=New+to+Old\\/>click here!<\\/a><\\/p>\\\\r\\\\n\",\"date\":\"2009-05-13T19:49:50Z\",\"author\":\"Brent Zettel\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":2,\"image\":{\"id\":318927,\"template_id\":1},\"video\":{\"id\":407,\"youtube_id\":\"jJAh1Vil_Y0\"}},{\"id\":135544,\"subject\":\"Update on Joseph!\",\"body\":\"<p>Check out this interview from April with Joseph regarding the progress and challenges of his business and loan!<\\/p>\",\"date\":\"2009-05-13T19:43:21Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0,\"image\":{\"id\":318941,\"template_id\":1},\"video\":{\"id\":409,\"youtube_id\":\"fMAOTJCrMPc\"}},{\"id\":135543,\"subject\":\"Update on Emelda!\",\"body\":\"<p>Check out this interview from March with Emelda regarding the progress and challenges of her loan and business!<\\/p>\",\"date\":\"2009-05-13T19:34:57Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318933,\"template_id\":1},\"video\":{\"id\":408,\"youtube_id\":\"P1L2N_aYTBQ\"}},{\"id\":135542,\"subject\":\"Update on Helen!\",\"body\":\"<p>Check out this interview with Helen regarding the progress and challenges of her loan and business!<\\/p>\",\"date\":\"2009-05-13T19:09:17Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0,\"image\":{\"id\":318924,\"template_id\":1},\"video\":{\"id\":406,\"youtube_id\":\"xAzlGyD0x8A\"}},{\"id\":135541,\"subject\":\"Update on Mary Akwen!\",\"body\":\"<p>Check out this video interview with Mary regarding the progress and challenges of her loan and business!<\\/p>\",\"date\":\"2009-05-13T18:53:36Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318916,\"template_id\":1},\"video\":{\"id\":405,\"youtube_id\":\"h-lqA191QdQ\"}},{\"id\":135540,\"subject\":\"Update on Jonathan!\",\"body\":\"<p>Check out this interview with Jonathan regardig the progress of his business and loan!<\\/p>\",\"date\":\"2009-05-13T18:43:58Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318915,\"template_id\":1},\"video\":{\"id\":404,\"youtube_id\":\"MLgReubTzCo\"}},{\"id\":135532,\"subject\":\"Update on Regina!\",\"body\":\"<p>Check out this interview with Regina regarding the status of her loan and business!<\\/p>\",\"date\":\"2009-05-13T16:55:19Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318838,\"template_id\":1},\"video\":{\"id\":403,\"youtube_id\":\"kFEydt1mApQ\"}},{\"id\":135530,\"subject\":\"Update on Delphen!\",\"body\":\"<p>Check out this interview with Delphen regarding the status of her loan and business!<\\/p>\",\"date\":\"2009-05-13T16:36:27Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318829,\"template_id\":1},\"video\":{\"id\":402,\"youtube_id\":\"7T_0xmjhCvQ\"}},{\"id\":135529,\"subject\":\"Update on Emmanuel!\",\"body\":\"<p>Check out this interview with Emmanuel regarding the progress and challenges with his loan and business!<\\/p>\",\"date\":\"2009-05-13T16:32:19Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318824,\"template_id\":1},\"video\":{\"id\":401,\"youtube_id\":\"oornvxqiGT0\"}},{\"id\":135528,\"subject\":\"Check out this interview with Samuel!\",\"body\":\"<p>In this video, Samuel discusses the progress of his loan and business!<\\/p>\",\"date\":\"2009-05-13T16:27:15Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318817,\"template_id\":1},\"video\":{\"id\":400,\"youtube_id\":\"b-LDbj0Huu4\"}},{\"id\":135527,\"subject\":\"Watch an Interview with Grace!\",\"body\":\"<p>In this video, Grace discusses the progress and challenges of her loan and business.<\\/p>\",\"date\":\"2009-05-13T16:20:57Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318811,\"template_id\":1},\"video\":{\"id\":399,\"youtube_id\":\"-Bv3vGEJLnI\"}},{\"id\":135525,\"subject\":\"Check out this video with Margaret!\",\"body\":\"<p>In this video, Margaret discusses the progress and challenges she faces with her business and loan!<\\/p>\",\"date\":\"2009-05-13T16:10:54Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318801,\"template_id\":1},\"video\":{\"id\":398,\"youtube_id\":\"xNUEA8VhCQA\"}},{\"id\":135524,\"subject\":\"Check out this interview with Joseph!\",\"body\":\"<p>Watch this video with Joseph regarding the progress of his loan and his business of owning a motorcycle!<\\/p>\",\"date\":\"2009-05-13T16:03:44Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318794,\"template_id\":1},\"video\":{\"id\":397,\"youtube_id\":\"Dw0bEsdAP2s\"}},{\"id\":135523,\"subject\":\"Check out this video with Julie!\",\"body\":\"<p>Watch this interview with Julie regarding the progess of her loan and business!<\\/p>\",\"date\":\"2009-05-13T15:58:46Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318790,\"template_id\":1},\"video\":{\"id\":396,\"youtube_id\":\"-96VLNnLOHk\"}},{\"id\":135520,\"subject\":\"Interview with Mathias!\",\"body\":\"<p>Check out this interview with Mathias regarding the progress and challenges he has faced with his loan and business!<\\/p>\",\"date\":\"2009-05-13T15:50:19Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318779,\"template_id\":1},\"video\":{\"id\":395,\"youtube_id\":\"DONtKEW9emw\"}},{\"id\":135519,\"subject\":\"Video interview with Angeline!\",\"body\":\"<p>Check out this interview with Angeline regarding the progress of her business and loan!<\\/p>\",\"date\":\"2009-05-13T15:45:00Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318772,\"template_id\":1},\"video\":{\"id\":394,\"youtube_id\":\"GdfYuL22Iwg\"}},{\"id\":135518,\"subject\":\"Video with Mary Sirri!\",\"body\":\"<p>Check out this interview with Mary in regards to the progress of her loan and business!<\\/p>\",\"date\":\"2009-05-13T15:37:07Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":1,\"recommendation_count\":0,\"image\":{\"id\":318764,\"template_id\":1},\"video\":{\"id\":393,\"youtube_id\":\"hCosGht5Hqs\"}},{\"id\":135517,\"subject\":\"Update on Julie Swirri!\",\"body\":\"<p>Check out this interview with Julie on the progress of her business and loan!<\\/p>\",\"date\":\"2009-05-13T15:26:20Z\",\"author\":\"Kristy Callahan\",\"bulk\":false,\"comment_count\":0,\"recommendation_count\":0,\"image\":{\"id\":318752,\"template_id\":1},\"video\":{\"id\":392,\"youtube_id\":\"b_LNvQC4lfs\"}}]}",
|
24
|
+
["http://api.kivaws.org/v1/journal_entries/135547/comments.json?", nil]=>
|
25
|
+
"{\"paging\":{\"page\":1,\"total\":1,\"page_size\":20,\"pages\":1},\"comments\":[{\"id\":59049,\"author\":\"Suzanne Johannsen\",\"whereabouts\":\"Bend, Oregon USA\",\"body\":\"Kristy, thank you so much for sharing these interviews with the Kiva lenders. It is so gratifying to hear their stories and see their faces. \",\"date\":\"2009-05-14T03:06:11Z\"}]}"
|
26
|
+
}
|
data/test/generate_fixtures.rb
CHANGED
@@ -24,8 +24,10 @@ je = Kiva::JournalEntry.load 14077
|
|
24
24
|
Kiva::Comment.load(je[0])
|
25
25
|
Kiva::Partner.load
|
26
26
|
Kiva::Templates.load
|
27
|
-
filter = Kiva::
|
27
|
+
filter = Kiva::LoanFilter.new.male.africa
|
28
28
|
Kiva::Loan.search filter
|
29
29
|
Kiva::Release.load
|
30
|
-
|
30
|
+
f = Kiva::JournalFilter.new.media_any
|
31
|
+
e = Kiva::JournalEntry.search f
|
32
|
+
e[0].comments
|
31
33
|
pp $fixtures
|
data/test/release_tested
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
14593
|
data/test/test_kiva.rb
CHANGED
@@ -163,6 +163,35 @@ class TestKiva < Test::Unit::TestCase
|
|
163
163
|
assert_equal("13775", release.id)
|
164
164
|
assert_equal(Time.parse("Thu Mar 19 01:20:37 UTC 2009"), release.date)
|
165
165
|
end
|
166
|
+
|
167
|
+
#todo test loan search
|
168
|
+
def test_journal_entry
|
169
|
+
f = Kiva::JournalFilter.new.media_any
|
170
|
+
entries = Kiva::JournalEntry.search f
|
171
|
+
e = entries[0]
|
172
|
+
assert_equal(20, entries.length)
|
173
|
+
assert_equal(0, e.recommendation_count, "recommendation_count")
|
174
|
+
assert_equal("<p>Check out this interview with Pauline as she discusses her hopes and challanges of her new loan!</p>", e.body, "body")
|
175
|
+
assert_equal(false, e.bulk, "bulk")
|
176
|
+
assert_equal("Kristy Callahan", e.author, "author")
|
177
|
+
assert_equal(1, e.comment_count, "comment_count")
|
178
|
+
assert_equal({"template_id"=>1, "id"=>318954}, e.image, "image")
|
179
|
+
|
180
|
+
#assert_equal("", e.comments, "comments")
|
181
|
+
comments = e.comments
|
182
|
+
c = comments[0]
|
183
|
+
assert_equal(1, comments.length)
|
184
|
+
assert_equal("Kristy, thank you so much for sharing these interviews with the Kiva lenders. It is so gratifying to hear their stories and see their faces. ", c.body, "body")
|
185
|
+
assert_equal("Suzanne Johannsen", c.author, "author")
|
186
|
+
assert_equal("Bend, Oregon USA", c.whereabouts, "whereabouts")
|
187
|
+
assert_equal("Thu May 14 03:06:11 UTC 2009", c.date.to_s, "date")
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
assert_equal("Meet Pauline!", e.subject, "subject")
|
192
|
+
assert_equal("Wed May 13 20:15:32 UTC 2009", e.date.to_s, "date")
|
193
|
+
e = entries[0]
|
194
|
+
end
|
166
195
|
|
167
196
|
|
168
197
|
end
|
data/test/test_webservice.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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
4
|
|
5
5
|
|
6
6
|
require 'test/unit'
|
@@ -166,17 +166,13 @@ class TestWebservice < Test::Unit::TestCase
|
|
166
166
|
return unless @@run_test
|
167
167
|
url = Kiva::LendingAction::LOAD_RECENT
|
168
168
|
j = JSON.parse SimpleHttp.get url
|
169
|
-
check_keys ["
|
169
|
+
check_keys ["lending_actions"], j.keys, url
|
170
170
|
|
171
|
-
assert_equal Array, j["
|
172
|
-
l = j["
|
173
|
-
|
174
|
-
"country_code", "loan_because", "invitee_count",
|
175
|
-
"occupational_info", "uid", "whereabouts", "personal_url",
|
176
|
-
"image", "member_since"]
|
177
|
-
|
171
|
+
assert_equal Array, j["lending_actions"].class
|
172
|
+
l = j["lending_actions"][0]
|
173
|
+
keys_laction = ["date", "id", "lender", "loan"]
|
178
174
|
|
179
|
-
check_keys
|
175
|
+
check_keys keys_laction, l.keys, url
|
180
176
|
|
181
177
|
end
|
182
178
|
|
@@ -194,6 +190,21 @@ class TestWebservice < Test::Unit::TestCase
|
|
194
190
|
check_keys keys, l.keys, url
|
195
191
|
end
|
196
192
|
|
193
|
+
def test_attributes_journal_entry_search
|
194
|
+
return unless @@run_test
|
195
|
+
url = Kiva::JournalEntry::SEARCH
|
196
|
+
j = JSON.parse SimpleHttp.get url
|
197
|
+
check_keys ["journal_entries", "paging"], j.keys, url
|
198
|
+
|
199
|
+
assert_equal Array, j["journal_entries"].class
|
200
|
+
l = j["journal_entries"][0]
|
201
|
+
keys = %w{id body date comment_count author subject bulk recommendation_count image}
|
202
|
+
|
203
|
+
check_keys keys, l.keys, url
|
204
|
+
|
205
|
+
end
|
206
|
+
|
207
|
+
|
197
208
|
def test_attributes_comments
|
198
209
|
return unless @@run_test
|
199
210
|
|
@@ -222,5 +233,7 @@ class TestWebservice < Test::Unit::TestCase
|
|
222
233
|
check_keys keys, l.keys, url
|
223
234
|
end
|
224
235
|
|
236
|
+
|
237
|
+
|
225
238
|
|
226
239
|
end # TestWebservice
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kiva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14593
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Becker <tim@kuriositaet.de>
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-15 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|