Ruby on Rails API

Skip to first unread message

Peter Hamilton

Sep 11, 2011, 8:15:59 PM9/11/11
to 50/50 API,
Hi All,

Made a quick API wrapper for the 5050 project.

Available as a gem: "gem install fiftyfifty"

Or visit the github page here:

Feel free to get involved and improve on it!


Peter Hamilton

Sep 11, 2011, 8:16:44 PM9/11/11
to 50/50 API
Should have also said, example session/usage is available at the
github link above.

Andrew Senter

Sep 12, 2011, 5:13:17 AM9/12/11
Incredible, thanks for making it even easier for people to get involved.

Peter Hamilton

Sep 12, 2011, 5:49:35 AM9/12/11
No worries, planning on implementing something class-based to make it
a bit easier to do nice rails-y things like projects[0].donations
instead of project_donations(projects[0].id) but for now it works
pretty well :)

Any chance you could help me work out how to track donations for users
and also how to pass through a donation amount for unicef to autofill?

This can either be done by:

We use return_url to get info from unicef straight to our project and
then tell 5050 it happened via a donation registration
We go from unicef back to 5050 which records the donation and
redirects back to our project which then reads the newest donations
and matches them to users using the name/data params

On an API note, would be good to be able to use a POST for giving
donation info. That way we could send more than just the amount e.g
source/name/uniqueref etc? This is needed for full third party
integration I think and is probably relatively easy to do for you.
Once you've done it either I or yourself can update the gem
accordingly. Do you have a github username? Will add you as a
developer for the gem so you can make tweaks and changes.


Reply all
Reply to author
0 new messages