Fandom

Resighting Wiki

GetUserStatistics Method

71pages on
this wiki
Add New Page
Comments0 Share

Retrieve the statistics for a particular user. The user to get statistics for is specified by the user_id in the url.

If the requested user is the owner of the access token then public and private statistics are returned, otherwise just public statistics are returned.

Statistics need to be used carefully and sometimes require some interpretation. For example in the statistic num_sightings_today ‘today’ refers to the date in the attribute reference_date. If reference_date is not the current system date then num_sightings_today is no longer valid.

Url: https://resighting-api.appspot.com/api/1/users/<user_id>/statistics

HTTP Method: GET

ParametersEdit

Name Type Mandatory Description
access_token String(32) Yes A valid access token.

ReturnsEdit

Returns a UserStats object and HTTP status 200, or an Error object and HTTP status 4xx or 5xx.

Example UsageEdit

curl https://resighting-api.appspot.com/api/1/users/bf10ad015e7b4ceea9279c1b9e8889a5/statistics?access_token=ACCESS_TOKEN

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.