Ruby Wrapper for the API

3 views
Skip to first unread message

Mark McSpadden

unread,
Feb 4, 2009, 4:43:49 AM2/4/09
to build-kiva
I've started work on a Ruby wrapper for the Kiva API. It's a gem I'll
be hosting up at github and anyone is more than welcome to contribute,
fork it, take over, whatever.

http://github.com/markmcspadden/ruby-kiva

So far I've just implemented a basic Kiva::Loan class and the Loan
Search feature...so there is plenty more left :)

---

Thanks Kiva for opening this up!

Mark McSpadden

skylar

unread,
Feb 4, 2009, 2:49:03 PM2/4/09
to build-kiva
Excellent Mark. I've started an inventory here of API wrappers,
toolkits, and sample code:

http://developers.wiki.kiva.org/KitsAndCode

We'll add to the list as people come up with community resources like
this...

SANAULLAH

unread,
Feb 4, 2009, 3:12:25 PM2/4/09
to build...@googlegroups.com
How about a wrapper in Java. Have started working on it. An library in Java which would reduce the burden of parsing the XML feed again and again and just make use of the methods in the library created to build different applications?

Regards,

Mohamed Sanaulla | Campus Ambassador, Sun Microsystems
http://www.letmeknow.in/
http://osum.sun.com/


2009/2/5 skylar <sky...@gmail.com>

Ashish Tonse

unread,
Feb 4, 2009, 3:20:19 PM2/4/09
to build-kiva
What do you all think about setting up a Google Code project for all
the Kiva libs? Would seem like a good place to handle issues/bugs and
releases, in addition to this wiki.

Suggested name: Kiva API ("kiva" is already taken)

Ashish

On Feb 4, 3:12 pm, SANAULLAH <sanaulla...@gmail.com> wrote:
> How about a wrapper in Java. Have started working on it. An library in Java
> which would reduce the burden of parsing the XML feed again and again and
> just make use of the methods in the library created to build different
> applications?
>
> Regards,
>
> Mohamed Sanaulla | Campus Ambassador, Sun Microsystemshttp://www.letmeknow.in/http://osum.sun.com/

skylar

unread,
Feb 4, 2009, 5:54:36 PM2/4/09
to build-kiva
I think Google Code, github, and other systems are all great ideas for
hosting. It seems to scale well for every project to have it's own
entry (so no special account for all efforts). As for the Kiva API
itself, we hope build.kiva.org (and related resources) shapes up to be
a good central location for all the aggregate activity. For example,
we can provide links to all related projects on the Kiva Developer
wiki. We're certainly open to ideas on how build.kiva.org can be a
better hub.

Mohamed, for your Java project, feel free to get that going on github
or Google Code. :)

skylar

Mark McSpadden

unread,
Feb 5, 2009, 11:32:58 AM2/5/09
to build-kiva
+1 for projects remaining their own entity

As a developer, using the tools/hosting I'm most familiar with allow
more work to go into the code and less into the management of it.

SANAULLAH

unread,
Feb 8, 2009, 4:25:29 PM2/8/09
to build...@googlegroups.com
I have started a project on java.net for creating a Java wrapper for Kiva APIs. Find the project here: https://jkiva.dev.java.net/

I have started working on parsing Loans and providing Loan related data. What i have thought is to implement different Loan related operations as different methods, in that way i will be having getNewestLoans(), getLoanDetail(), getLoanDetail(Array of IDs), getLenders(loanID), getJournalEntries(loanID), serachLoan(). All these methods are defined in the class LoanParser. I will be using SAX Parser for parsing the XML response because the XML response size would be more and using a DOM parser means lot of memory wastage.



Regards,

Mohamed Sanaulla
http://www.letmeknow.in/
http://osum.sun.com/


2009/2/5 Mark McSpadden <markmc...@gmail.com>

Skylar Woodward

unread,
Feb 8, 2009, 5:09:10 PM2/8/09
to build...@googlegroups.com
Excellent - I added all the new wrapper projects to the Wiki.  

SANAULLAH

unread,
Feb 9, 2009, 2:50:17 PM2/9/09
to build...@googlegroups.com
The JKiva project is still under pending approval (https://jkiva.dev.java.net/) so ppl accessing it are asked to login. Hopefully it gets approved at the earliest. Meanwhile i have been working on the Java wrapper and will be ready with it in a week.

Can we have contributed by put up along with the link?
2009/2/9 Skylar Woodward <sky...@kiva.org>

skylar

unread,
Feb 9, 2009, 6:45:25 PM2/9/09
to build-kiva
Mohamed,

I assume you're asking for a list of contributors to be put beside
each link on the wiki. Since the list of contributors to open source
projects can change over time, it seems the best policy is to link to
the project site and have that site be the authority on who the
project contributors/maintainers are. Most hosted project sites have
a general wiki or specific way of tracking project members. Hopefully
once your project is approved on java.net this will work for you.


On Feb 9, 11:50 am, SANAULLAH <sanaulla...@gmail.com> wrote:
> The JKiva <https://jkiva.dev.java.net/> project is still under pending
> approval (https://jkiva.dev.java.net/) so ppl accessing it are asked to
> login. Hopefully it gets approved at the earliest. Meanwhile i have been
> working on the Java wrapper and will be ready with it in a week.
>
> Can we have contributed by put up along with the link?
>
> Regards,
>
> Mohamed Sanaullahttp://www.letmeknow.in/http://osum.sun.com/
>
> 2009/2/9 Skylar Woodward <sky...@kiva.org>
>
> > Excellent - I added all the new wrapper projects to the Wiki.
>
> > On Feb 8, 2009, at 1:25 PM, SANAULLAH wrote:
>
> > I have started a project on java.net for creating a Java wrapper for Kiva
> > APIs. Find the project here:https://jkiva.dev.java.net/
>
> > I have started working on parsing Loans and providing Loan related data.
> > What i have thought is to implement different Loan related operations as
> > different methods, in that way i will be having getNewestLoans(),
> > getLoanDetail(), getLoanDetail(Array of IDs), getLenders(loanID),
> > getJournalEntries(loanID), serachLoan(). All these methods are defined in
> > the class LoanParser. I will be using SAX Parser for parsing the XML
> > response because the XML response size would be more and using a DOM parser
> > means lot of memory wastage.
>
> > Regards,
>
> > Mohamed Sanaulla
> >http://www.letmeknow.in/
> >http://osum.sun.com/
>
> > 2009/2/5 Mark McSpadden <markmcspad...@gmail.com>

SANAULLAH

unread,
Feb 10, 2009, 5:15:54 AM2/10/09
to build...@googlegroups.com
I completely Agree with what u have said.

I have implemented basic functionalities which could have been done by framing the feedURL.
2009/2/10 skylar <sky...@kiva.org>
Reply all
Reply to author
Forward
0 new messages