zzz

Quote January 28 0:57 13 notes

“

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)

reblogged from wrong, rogue and booklog

  1. 2-4-6 reblogged this from kashino
  2. boredcivillians reblogged this from hexe
  3. dotthx liked this
  4. dotthx reblogged this from hexe
  5. soresore reblogged this from hexe
  6. junziphone liked this
  7. koshima reblogged this from hexe
  8. hexe reblogged this from yuco
  9. yuco reblogged this from kashino
  10. moji-moji reblogged this from nezzz
  11. nezzz reblogged this from kashino
  12. kashino posted this
  • Home
  • Archive
  • Ask me anything
  • RSS

© 2011 zzz. Designed by Tom Brunoli.