-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
34 lines (20 loc) · 906 Bytes
/
README
File metadata and controls
34 lines (20 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Let's get started building this thing.
I'll be jumping on the Google Group (http://groups.google.com/group/build-kiva) but
feel free to email me if you want to help/contribute/pursue a hostile takeover ;)
Mark McSpadden
markmcspadden@gmail.com
=== Requirements
json
=== Installation
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install markmcspadden-ruby-kiva
=== Examples
Kiva::Loan.search(:q => "farming", :status => "fundraising")
#=> {"paging" => {"total" => 7, "page_size" => 20, "pages" => 1, "page" => 1},
"loans" => [{ loan 1 attributes },{ loan 2 attributes }]}
Kiva::Loan.search_results(:q => "fertilizer", :status => "paid")
#=> [#<Kiva::Loan:0x14b9ca8 @id=77220, @sector="Agriculture", @borrower_count=1 ... >, #<Kiva::Loan ... >]
=== More Info about the Kiva API
http://build.kiva.org