updateSettings

fun Account.updateSettings(    sleepTimeEnabled: Boolean? = null,     startSleepTime: Int? = null,     endSleepTime: Int? = null,     timeZone: String? = null,     trendLocationWoeid: Int? = null,     lang: String? = null,     vararg options: Option): JsonObjectApiAction<Account.Settings>

Updates the authenticating user's settings.

Twitter API reference

Receiver

Account endpoint instance.

Return

JsonObjectApiAction for Settings model.

Parameters

sleepTimeEnabled

Optional. When set to true, t or 1, will enable sleep time for the user. Sleep time is the time when push or SMS notifications should not be sent to the user.

startSleepTime

Optional. The hour that sleep time should begin if it is enabled. The value for this parameter should be provided in ISO 8601 format (i.e. 00-23). The time is considered to be in the same timezone as the user's time_zone setting.

endSleepTime

Optional. The hour that sleep time should end if it is enabled. The value for this parameter should be provided in ISO 8601 format (i.e. 00-23). The time is considered to be in the same timezone as the user's time_zone setting.

timeZone

Optional. The timezone dates and times should be displayed in for the user. The timezone must be one of the Rails TimeZone names.

trendLocationWoeid

Optional. The Yahoo! Where On Earth ID to use as the user's default trend location. Global information is available by using 1 as the WOEID. The WOEID must be one of the locations returned by GET trends/available.

lang

Optional. The language which Twitter should render in for this user. The language must be specified by the appropriate two letter ISO 639-1 representation. Currently supported languages are provided by this endpoint.

options

Optional. Custom parameters of this request.


Shorthand extension property to Account.updateSettings.

See also