Skip to content
forked from aurels/geni

A Ruby client to the geni.com API

License

Notifications You must be signed in to change notification settings

whynotmatt/geni

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Not done yet

  • This gem needs some specs
  • This gem only access profile and immediate family information. I don't have a paid account, I cannot implement everything now.

Feedback and help

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

About

A Ruby client to the geni.com API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%