Project

geni

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Ruby client to the geni.com API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8.7
= 2.5.0

Runtime

= 1.5.0
= 0.1.1
 Project Readme

About

Simple Ruby client to the Geni REST/OAuth API.

Installation

$ gem install geni

Example usage

geni = Geni::Client.new({
  :app_id     => 'XX',
  :app_secret => 'XX',
  :token      => 'XX'
})

me = geni.get_profile

profile = geni.get_profile('an_id')

puts profile.name
puts profile.birth_date

profile.parents.each do |profile|
  puts profile.name
end

profile.children.each do |profile|
  puts profile.name
end

profile.siblings.each do |profile|
  puts profile.name
end

Support is available for profiles, documents, photos, projects, unions, videos.

I've also put a demo Rails app online to show the usage of the gem with Rails or Sinatra.

Tests

To run the specs :

$ rake spec

All request responses are stubbed via Faraday in spec/support/mocked_responses.

Feedback and help

Please send me your feedback if you are using the Gem and have any remarks (or not).