wrong, rogue and booklog RSS

積読・読書途中の本に関する雑感や、オンライン上の面白コンテンツ、そして世の中の不合理に対する暴言を脊髄反射的に記す。
yutakashino
(柏野 雄太)

another weblog: kashino.exblog.jp

Archive

Jan
27th
Fri
permalink

The new attributes, withheld_in_countries and withheld_scope, will denote which countries the Tweet or the account is being withheld in, as well as the the scope of the data being withheld: at the Tweet level or at the user account level. Furthermore, if we believe the API request itself comes from a country in which that Tweet or account has been withheld, then the Tweet text and/or the user data will be replaced with text indicating it has been withheld.

For instance, if a specific Tweet is withheld in a country, the key-value pairs for “text”, “withheld_in_countries”, and “withheld_scope” will appear in the JSON response body for GET statuses/show (the XML format will be affected as well, though not Atom or RSS at this time) as shown below. So, if a Tweet were theoretically withheld in Japan, the response would include:

“text”: “This Tweet from @chatty is withheld in: Japan.”,
“withheld_scope”: “status”,
“withheld_in_countries”: “JP”,

New Withheld Content Fields in API Responses | Twitter Developers

Twitter APIにレスポンスに新しいフィールドが追加されたね。このフィールドは、”withheld_*”フィールドで、ユーザのステータスtweetやユーザアカウントをある国の人間にわからないように隠す目的みたい。

つまり、国別にtweetやアカウントの表示切り替えができるようになる、ということ。これって、公式サイトの表示も国別の出し分けがデフォルトになるということかな。