koshima pot 2

Jan 28
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やアカウントの表示切り替えができるようになる、ということ。これって、公式サイトの表示も国別の出し分けがデフォルトになるということかな。

(via kashino)

(via hexe)

  1. 2-4-6 reblogged this from kashino
  2. boredcivillians reblogged this from hexe
  3. dotthx reblogged this from hexe
  4. soresore reblogged this from hexe
  5. koshima reblogged this from hexe
  6. hexe reblogged this from yuco
  7. yuco reblogged this from kashino
  8. moji-moji reblogged this from nezzz
  9. nezzz reblogged this from kashino
  10. kashino posted this