Crises - Sigimera/sigimera-ruby-client GitHub Wiki
There are two type of crises endpoints one is public available (no authentication needed) and the second is only accessible after free registration.
Public Crises Endpoint
JSON URL: http://api.sigimera.org/public/crises or http://api.sigimera.org/public/crises.json
irb
>> require "sigimera"
>> require "openssl"
>> puts Sigimera::Client.get_public_crises
RSS Feed URL: http://api.sigimera.org/public/crises.rss
irb
>> require "sigimera"
>> require "openssl"
>> puts Sigimera::Client.get_public_rss_feed
Private Crises Endpoint
Accessible after free registration and authentication token generation.
JSON URL: http://api.sigimera.org/v1/crises or http://api.sigimera.org/v1/crises.json
irb
>> require "sigimera"
>> require "openssl"
>> client = Sigimera::Client.new("YourSecretToken")
>> puts client.get_latest_crises
>> puts client.get_latest_crises({ :type => "earthquakes" })