Twitter関連Twitter REST API:スパム報告関連
- report spam〔認証ユーザーによって指定したユーザーをブロックし、スパム報告する(要認証)〕
report spam
認証ユーザーによって指定したユーザーをブロックし、スパム報告する(要認証)
2009/7/18
http://api.twitter.com/1/report_spam.[xml|json]
指定したユーザーを認証ユーザーからブロックし、スパム報告します。
パラメーター | 説明 | |
---|---|---|
user_id | 任意 |
スパム報告するユーザーのユーザーIDを指定。 例)http://api.twitter.com/1/report_spam.json?user_id=12345 |
screen_name | 任意 |
スパム報告するユーザーのスクリーンネームをします。 例)http://api.twitter.com/1/report_spam.json?screen_name=****** |
include_entities | 任意 |
ステータス情報に'entities'を含める場合は、true,t,1のいずれかを指定。 例)http://api.twitter.com/1/blocks/blocking.json?include_entities=1 |
取得サンプル(XML/JSON)
report_spam.xml
<?xml version="1.0" encoding="UTF-8"?> <user> <id>55984769</id> <name>つんこ</name> <screen_name>pjroomer</screen_name> <location>Tokyo, Japan</location> <description>てすあか</description> <profile_image_url>http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png</profile_image_url> <url>http://www.sample.com</url> <protected>false</protected> <followers_count>218</followers_count> <profile_background_color>C0DEED</profile_background_color> <profile_text_color>333333</profile_text_color> <profile_link_color>0084B4</profile_link_color> <profile_sidebar_fill_color>DDEEF6</profile_sidebar_fill_color> <profile_sidebar_border_color>C0DEED</profile_sidebar_border_color> <friends_count>1</friends_count> <created_at>Tue Nov 14 06:40:54 +0000 2006</created_at> <favourites_count>0</favourites_count> <utc_offset>-21600</utc_offset> <time_zone>Central Time (US & Canada)</time_zone> <profile_background_image_url>http://a0.twimg.com/images/themes/theme1/bg.png</profile_background_image_url> <profile_background_tile>false</profile_background_tile> <profile_use_background_image>true</profile_use_background_image> <notifications>false</notifications> <geo_enabled>false</geo_enabled> <verified>false</verified> <following>false</following> <statuses_count>1</statuses_count> <lang>en</lang> <contributors_enabled>false</contributors_enabled> <follow_request_sent>false</follow_request_sent> <listed_count>6</listed_count> <show_all_inline_media>false</show_all_inline_media> <default_profile>true</default_profile> <default_profile_image>false</default_profile_image> <is_translator>false</is_translator> <status> <created_at>Wed May 25 08:47:15 +0000 2011</created_at> <id>73309139866095617</id> <text>あいうえお</text> <source>web</source> <truncated>false</truncated> <favorited>false</favorited> <in_reply_to_status_id></in_reply_to_status_id> <in_reply_to_user_id></in_reply_to_user_id> <in_reply_to_screen_name></in_reply_to_screen_name> <retweet_count>2</retweet_count> <retweeted>false</retweeted> <geo/> <coordinates/> <place/> <contributors/> </status> </user>
report_spam.json
json[id_str]=55984769 json[verified]= json[profile_text_color]=333333 json[protected]= json[default_profile]=1 json[profile_sidebar_fill_color]=DDEEF6 json[name]=つんこ json[listed_count]=6 json[notifications]= json[profile_background_tile]= json[favourites_count]=0 json[profile_image_url]=http://a0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png json[show_all_inline_media]= json[geo_enabled]= json[utc_offset]=-21600 json[location]=Tokyo, Japan json[profile_link_color]=0084B4 json[description]=てすあか json[screen_name]=pjroomer json[contributors_enabled]= json[lang]=en json[profile_sidebar_border_color]=C0DEED json[url]=http://www.sample.com json[default_profile_image]= json[statuses_count]=1 json[time_zone]=Central Time (US & Canada) json[profile_use_background_image]=1 json[created_at]=Tue Nov 14 06:40:54 +0000 2006 json[friends_count]=1 json[followers_count]=218 json[id]=12345 json[is_translator]= json[profile_background_color]=C0DEED json[follow_request_sent]= json[profile_background_image_url]=http://a0.twimg.com/images/themes/theme1/bg.png json[following]= json[status]['id_str']=73309139866095617 json[status]['in_reply_to_status_id']= json[status]['text']=あいうえお json[status]['in_reply_to_user_id']= json[status]['retweet_count']=2 json[status]['place']= json[status]['favorited']= json[status]['in_reply_to_status_id_str']= json[status]['id']=26528677887 json[status]['created_at']=Wed May 25 08:47:15 +0000 2011 json[status]['in_reply_to_screen_name']= json[status]['truncated']= json[status]['source']=web json[status]['in_reply_to_user_id_str']= json[status]['contributors']= json[status]['coordinates']= json[status]['geo']= json[status]['retweeted']=