Blocks/create does not run in the users/report_spam


#1

https://dev.twitter.com/docs/api/1.1/post/users/report_spam
"Additionally performs the equivalent of POST blocks/create on behalf of the authenticated user."

but,actually blocks/create is not executed.
However, this is only the case of api through, from the web interface(https://twitter.com), blocks/create is also performed.


curl --request ‘POST’ ‘https://api.twitter.com/1.1/users/report_spam.json’ --data ‘screen_name=momo888_auto’ --header ‘Authorization: OAuth oauth_consumer_key=“uAwSNtZb2D8fBrovPNIjwQ”, oauth_nonce=“2238f60169bb04ec004bc12a2bb3c934”, oauth_signature=“myVj8dk6Khg1ry1sZn0ruRk%2FdhQ%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1385514814”, oauth_token=“156907124-wJPA1CgANuOxfvX3MOyXv7n8QbMtoB1iDKGWkRO1”, oauth_version=“1.0”’ --verbose

  • About to connect() to api.twitter.com port 443 (#0)
  • Trying 199.59.148.20… connected
  • Connected to api.twitter.com (199.59.148.20) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • SSL connection using SSL_RSA_WITH_RC4_128_MD5
  • Server certificate:
  •   subject: CN=api.twitter.com,OU=Twitter Security,O="Twitter, Inc.",L=San Francisco,ST=California,C=US
    
  •   start date: Apr 08 00:00:00 2013 GMT
    
  •   expire date: Dec 31 23:59:59 2013 GMT
    
  •   common name: api.twitter.com
    
  •   issuer: CN=VeriSign Class 3 Secure Server CA - G2,OU=Terms of use at https://www.verisign.com/rpa (c)09,OU=VeriSign Trust Network,O="VeriSign, Inc.",C=US
    

POST /1.1/users/report_spam.json HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Host: api.twitter.com
Accept: /
Authorization: OAuth oauth_consumer_key=“uAwSNtZb2D8fBrovPNIjwQ”, oauth_nonce=“2238f60169bb04ec004bc12a2bb3c934”, oauth_signature=“myVj8dk6Khg1ry1sZn0ruRk%2FdhQ%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1385514814”, oauth_token=“156907124-wJPA1CgANuOxfvX3MOyXv7n8QbMtoB1iDKGWkRO1”, oauth_version="1.0"
Content-Length: 24
Content-Type: application/x-www-form-urlencoded

< HTTP/1.1 200 OK
< cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
< content-length: 3329
< content-type: application/json;charset=utf-8
< date: Wed, 27 Nov 2013 01:14:10 GMT
< expires: Tue, 31 Mar 1981 05:00:00 GMT
< last-modified: Wed, 27 Nov 2013 01:14:10 GMT
< pragma: no-cache
< server: tfe
< set-cookie: lang=ja
< set-cookie: guest_id=v1%3A138551485048731460; Domain=.twitter.com; Path=/; Expires=Fri, 27-Nov-2015 01:14:10 UTC
< status: 200 OK
< strict-transport-security: max-age=631138519
< x-access-level: read-write-directmessages
< x-frame-options: SAMEORIGIN
< x-transaction: be2fb5d57a95d311
< x-xss-protection: 1; mode=block
<
{“id”:556670386,“id_str”:“556670386”,“name”:"#follow #RT \u76f8\u4e92\u30d5\u30a9\u30ed\u30fc\u5354\u4f1a",“screen_name”:“momo888_auto”,“location”:"\u5c71\u68a8\u770c",“description”:"\u76f8\u4e92\u30d5\u30a9\u30ed\u30fc\uff11\uff10\uff10\uff05\uff01\u304a\u5f79\u7acb\u3066\u4e0b\u3055\u3044\uff01 \u521d\u5fc3\u8005/autofollowjp/\u30a2\u30d5\u30a3\u30ea/\u30cd\u30c3\u30c8/\u30b2\u30fc\u30e0/\u30a2\u30cb\u30e1/\u643a\u5e2f/\u91ce\u7403/\u30a2\u30de\u30be\u30f3/\u697d\u5929/\u30e9\u30fc\u30e1\u30f3/\u30bd\u30fc\u30d7/\u30ad\u30e3\u30d0\u30af\u30e9/\u305d\u3070/iPhone/iPad/\u30d6\u30ed\u30b0/mixi/\u8b66\u5bdf/\u30ea\u30d5\u30a9\u30ed\u30fc/SMAP/\u76f8\u64b2/\u30b9\u30de\u30db/\u643a\u5e2f/PC/\u6e29\u6cc9/\u30d1\u30c1\u30f3\u30b3/followback/AKB48",“url”:null,“entities”:{“description”:{“urls”:[]}},“protected”:false,“followers_count”:16190,“friends_count”:17806,“listed_count”:40,“created_at”:“Wed Apr 18 08:16:48 +0000 2012”,“favourites_count”:0,“utc_offset”:32400,“time_zone”:“Tokyo”,“geo_enabled”:false,“verified”:false,“statuses_count”:342964,“lang”:“ja”,“status”:{“created_at”:“Wed Nov 27 01:13:08 +0000 2013”,“id”:405504529740738560,“id_str”:“405504529740738560”,“text”:“10\u3000\u76f8\u4e92\u30d5\u30a9\u30ed\u30fc\uff06\u30ea\u30d5\u30a9\u30ed\u30fc\uff11\uff10\uff10\uff05\uff01\u662f\u975e\u3001\u3054\u5229\u7528\u3092\uff01 \u203b\uff32\uff34\u62e1\u6563\uff01 #sougofollow #followback #AKB48 #autofollowjp #SMAP \u30bd\u30fc\u30d7/\u30a2\u30cb\u30e1/\u4e3b\u5a66/\u30a2\u30d5\u30a3\u30ea/\u521d\u5fc3\u8005/\u30d1\u30c1\u30f3\u30b3/\u526f\u696d/\u91ce\u7403/\u6e29\u6cc9/\u5b50\u80b2\u3066/\u30b2\u30fc\u30e0/\u30cd\u30c3\u30c8/\u697d\u5929/PC”,“source”:"\u003ca href=“http://www.twisuke.com” rel=“nofollow”\u003e\u30c4\u30a4\u52a9\u3002\u003c/a\u003e",“truncated”:false,“in_reply_to_status_id”:null,“in_reply_to_status_id_str”:null,“in_reply_to_user_id”:null,“in_reply_to_user_id_str”:null,“in_reply_to_screen_name”:null,“geo”:null,“coordinates”:null,“place”:null,“contributors”:null,“retweet_count”:0,“favorite_count”:0,“entities”:{“hashtags”:[{“text”:“sougofollow”,“indices”:[36,48]},{“text”:“followback”,“indices”:[49,60]},{“text”:“AKB48”,“indices”:[61,67]},{“text”:“autofollowjp”,“indices”:[68,81]},{“text”:“SMAP”,“indices”:[82,87]}],“symbols”:[],“urls”:[],“user_mentions”:[]},“favorited”:false,“retweeted”:false,“lang”:“ja”},“contributors_enabled”:false,“is_translator”:false,“profile_background_color”:“C0DEED”,“profile_background_image_url”:"http://a0.twimg.com/profile_background_images/747274291/fd810aeee262ce3c02f7d895356ac55e.jpeg",“profile_background_image_url_https”:“https://si0.twimg.com/profile_background_images/747274291/fd810aeee262ce3c02f7d895356ac55e.jpeg”,“profile_background_tile”:true,“profile_image_url”:“http://pbs.twimg.com/profile_images/3020453310/10832d4bcf32efa84ef9bea46ca2a0aa_normal.jpeg”,“profile_image_url_https”:“https://pbs.twimg.com/profile_images/3020453310/10832d4bcf32efa84ef9bea46ca2a0aa_normal.jpeg”,“profile_link_color”:“0084B4”,"profile_* Connection #0 to host api.twitter.com left intact

  • Closing connection #0
    sidebar_border_color":“FFFFFF”,“profile_sidebar_fill_color”:“DDEEF6”,“profile_text_color”:“333333”,“profile_use_background_image”:true,“default_profile”:false,“default_profile_image”:false,“following”:false,“follow_request_sent”:false,“notifications”:false}

#2

This feature may be evolving to disinclude side effects. I’ll find out more.