Fandom

Resighting Wiki

Settings Object

71pages on
this wiki
Add New Page
Comments0 Share

The Settings object describes the current profile settings for a User.

AttributesEdit

Name Type Mandatory Description
distance_unit String(9) Yes

The user’s preferred distance unit.

Possible values:

KILOMETRE

MILE

facebook_link_status

String(13) Yes

Whether the user has linked their account with their Facebook account.

Possible values:

FB_NOT_LINKED

FB_LINKED

FB_LINK_ERROR

The latter option indicates that a previous attempt to post to Facebook failed, most probably because the user has revoked Resighting’s access.

facebook_publish_by_default

Boolean No

If the user has linked their account with their Facebook account, this is their preference as to whether the check box to post a Sighting to Facebook should be checked or unchecked by default.

twitter_link_status

String(13) Yes

Whether the user has linked their account with their Twitter account.

Possible values:

TW_NOT_LINKED

TW_LINKED

TW_LINK_ERROR

The latter option indicates that a previous attempt to tweet failed, most probably because the user has revoked Resighting’s access.

tweet_by_default

Boolean No

If the user has linked their account with their Twitter account, this is their preference as to whether the check box to tweet a Sighting should be checked or unchecked by default.

update_date

DateTime Yes

The date/time the user was last updated.

ExampleEdit

{
    "update_date": "2012-04-18T08:52:00.052752Z",
    "distance_unit": "KILOMETRE",
    "tweet_by_default": false,
    "facebook_link_status": "FB_LINKED",
    "twitter_link_status": "TW_LINKED",
    "facebook_publish_by_default": false
}

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.