Stats - Sigimera/sigimera-ruby-client GitHub Wiki

This endpoint returns basic statistical information. Currently it supports statistic about crises and the current user.

Private Endpoint

JSON URL: http://api.sigimera.org/v1/stats/crises or http://api.sigimera.org/v1/stats/crises.json

irb
>> require "sigimera"
>> require "openssl"
>> client = Sigimera::Client.new("YourSecretToken")
>> puts client.get_crises_stat

JSON URL: http://api.sigimera.org/v1/stats/users or http://api.sigimera.org/v1/stats/users.json

irb
>> require "sigimera"
>> require "openssl"
>> client = Sigimera::Client.new("YourSecretToken")
>> puts client.get_user_stat