Fandom

Resighting Wiki

ListUserCountryStatistics Method

71pages on
this wiki
Add New Page
Comments0 Share

List the countries that a user has sighted in. The user to list countries for is specified by the user_id in the url.

The access token must be for the specified user otherwise a permission_denied error is raised.

The list is ordered in descending order of number of Sightings in the country.

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

HTTP Method: GET

ParametersEdit

Name Type Mandatory Description
access_token String(32) Yes A valid access token.
cursor String(500) No A cursor returned by a previous call to the method, marking the point where listing should continue from.
fetch_size Integer No The number of results to retrieve. Defaults to 20 if not specified and 20 is the maximum.

ReturnsEdit

Returns a List of UserCountryStats objects 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/countries?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.