start_sleep_time / end_sleep_time don't take effect on API 1.1


#1

As described in the subject, start_sleep_time / end_sleep_time don’t take effect on API 1.1.
My code used to be working with API 1.0.

[Mon Nov 05 00:19:49 JST 2012]POST http://api.twitter.com/1.1/account/settings.json
[Mon Nov 05 00:19:49 JST 2012]OAuth base string: POST&http%3A%2F%2Fapi.twitter.com%2F1.1%2Faccount%2Fsettings.json&end_sleep_time%3D08%26include_entities%3D1%26include_rts%3D1%26lang%3Dit%26oauth_consumer_key%3DUSLG8ce1GgCOTzmxODYyg%26oauth_nonce%3D3223435230%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1352042389%26oauth_token%3D6358482-L0JOLVAVMdRt4yiskzTwWW1YfUp4tR7yNjiSFLk%26oauth_version%3D1.0%26sleep_time_enabled%3Dtrue%26start_sleep_time%3D22%26time_zone%3DHelsinki%26trend_location_woeid%3D1
[Mon Nov 05 00:19:49 JST 2012]OAuth signature: R73njUDHh1qIqGKelIApQF6eemY=
[Mon Nov 05 00:19:49 JST 2012]Authorization: ****************************************************************************************************************************************************************************************************************************************************************************
[Mon Nov 05 00:19:49 JST 2012]X-Twitter-Client-URL: http://twitter4j.org/en/twitter4j-3.0.0-SNAPSHOT.xml
[Mon Nov 05 00:19:49 JST 2012]X-Twitter-Client: Twitter4J
[Mon Nov 05 00:19:49 JST 2012]Accept-Encoding: gzip
[Mon Nov 05 00:19:49 JST 2012]User-Agent: twitter4j http://twitter4j.org/ /3.0.0-SNAPSHOT
[Mon Nov 05 00:19:49 JST 2012]X-Twitter-Client-Version: 3.0.0-SNAPSHOT
[Mon Nov 05 00:19:49 JST 2012]Post Params: trend_location_woeid=1&sleep_time_enabled=true&start_sleep_time=22&end_sleep_time=08&time_zone=Helsinki&lang=it&include_entities=1&include_rts=1
[Mon Nov 05 00:19:49 JST 2012]Response:
[Mon Nov 05 00:19:49 JST 2012]HTTP/1.1 200 OK
[Mon Nov 05 00:19:49 JST 2012]X-Runtime: 0.02767
[Mon Nov 05 00:19:49 JST 2012]ETag: “d3edc2c1d5df96ea849983c62deaca96”
[Mon Nov 05 00:19:49 JST 2012]Content-Length: 321
[Mon Nov 05 00:19:49 JST 2012]X-Transaction: 0e6fa6e606c1f75d
[Mon Nov 05 00:19:49 JST 2012]Expires: Tue, 31 Mar 1981 05:00:00 GMT
[Mon Nov 05 00:19:49 JST 2012]X-MID: 51a551ef25e66a63b71c9b6de3016f566c80c4ff
[Mon Nov 05 00:19:49 JST 2012]Last-Modified: Sun, 04 Nov 2012 15:19:49 GMT
[Mon Nov 05 00:19:49 JST 2012]X-Access-Level: read-write
[Mon Nov 05 00:19:49 JST 2012]Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCB2hAcw6ASIKZmxhc2hJQzonQWN0aW9uQ29u%250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJTAz%250ANjNmNTcwMGYyOTNjZTE3NmU2MGJiZDZmOTAwZTE4–d72433209aaaf87a0666be8b2c4dce0fc9e83456; domain=.twitter.com; path=/; HttpOnly
[Mon Nov 05 00:19:49 JST 2012]Set-Cookie: twid=u%3D6358482%7C6bJmBfyN1xaRjiJFFi2rb04s0hU%3D; domain=.twitter.com; path=/; secure
[Mon Nov 05 00:19:49 JST 2012]Set-Cookie: dnt=; domain=.twitter.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
[Mon Nov 05 00:19:49 JST 2012]Set-Cookie: guest_id=v1%3A135204238977661620; domain=.twitter.com; path=/; expires=Wed, 05-Nov-2014 03:19:49 GMT
[Mon Nov 05 00:19:49 JST 2012]Set-Cookie: k=10.36.68.130.1352042389773533; path=/; expires=Sun, 11-Nov-12 15:19:49 GMT; domain=.twitter.com
[Mon Nov 05 00:19:49 JST 2012]Server: tfe
[Mon Nov 05 00:19:49 JST 2012]Pragma: no-cache
[Mon Nov 05 00:19:49 JST 2012]Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
[Mon Nov 05 00:19:49 JST 2012]X-Frame-Options: SAMEORIGIN
[Mon Nov 05 00:19:49 JST 2012]Status: 200 OK
[Mon Nov 05 00:19:49 JST 2012]Vary: Accept-Encoding
[Mon Nov 05 00:19:49 JST 2012]Date: Sun, 04 Nov 2012 15:19:49 GMT
[Mon Nov 05 00:19:49 JST 2012]Content-Encoding: gzip
[Mon Nov 05 00:19:49 JST 2012]Content-Type: application/json; charset=utf-8
[Mon Nov 05 00:19:49 JST 2012]X-Transaction-Mask: a6183ffa5f8ca943ff1b53b5644ef1147802bca3
[Mon Nov 05 00:19:49 JST 2012]{
“always_use_https”: true,
“discoverable_by_email”: false,
“geo_enabled”: true,
“language”: “en”,
“protected”: false,
“screen_name”: “twit4j”,
“show_all_inline_media”: false,
“sleep_time”: {
“enabled”: true,
“end_time”: 23,
“start_time”: 23
},
“time_zone”: {
“name”: “Rome”,
“tzinfo_name”: “Europe/Rome”,
“utc_offset”: 3600
},
“trend_location”: [{
“country”: “”,
“countryCode”: null,
“name”: “Universale”,
“placeType”: {
“code”: 19,
“name”: “Supername”
},
“url”: “http://where.yahooapis.com/v1/place/1”,
“woeid”: 1
}],
“use_cookie_personalization”: true
}


#2

Thanks for the report @yusuke, I’ll send it along to the team.