SYNCER

SYNCER

GET mutes/users/list - ミュートしているユーザーをオブジェクトの一覧で取得する

9件

公開日:

mutes/users/list(GETメソッド)は、自分(アクセストークンの主)がミュートしているユーザーを、オブジェクトの一覧で取得するエンドポイントです。

GET mutes/users/list
GET mutes/users/list
Twitterの公式リファレンス(英語)。mutes/users/listに関する説明があります。

リソース

エンドポイント

GET https://api.twitter.com/1.1/mutes/users/list.json

条件

項目ユーザー認証アプリケーション認証
利用×
パーミッションRead-
レートリミット15 / 15min-

パラメータ

cursor

指定例: 599056298085224449

ページングをする際の取得開始位置を示すカーソルを指定する。カーソルは、リクエストした際のprevious_cursor(前ページ)、またはnext_cursor(次ページ)に含まれる。

include_entities

指定例: true

ツイートオブジェクト内のentitiesプロパティを含めるか否か。

skip_status

指定例: true

ユーザーオブジェクト内のstatusプロパティを除外するか否か。trueの場合は除外する、falseの場合は除外しない。

レスポンス

アクセストークン(OAuth1.0)でリクエストをした場合の例です。

リクエストURL

https://api.twitter.com/1.1/mutes/users/list.json?include_entities=true&skip_status=false

リクエストヘッダー

Authorization: OAuth include_entities=true,oauth_consumer_key=:consumer_key,oauth_nonce=0.92193700+1484716414,oauth_signature_method=HMAC-SHA1,oauth_timestamp=1484716414,oauth_token=:access_token,oauth_version=1.0,skip_status=false,oauth_signature=AwyJlsxF1kyD9PlgwerADCGJB4s%3D

レスポンスボディ (JSON)

JSON

{"users":[{"id":107367293,"id_str":"107367293","name":"\u304c\u304e\u3050\u3052\u3054\u308d\u3069\u304f\uff01","screen_name":"gorodoku","location":"\u4e0a\u5ddd\u90e1\u9df9\u6816\u753a\/\u65ed\u5ddd\u5e02","description":"\u4f1a\u793e\u52e4\u3081\u306f\u30b7\u30ce\u30ae\u3067\u3059\u3002 \u660e\u308b\u3044\u6c17\u6301\u3061\u306b\u306a\u308c\u305f\u3089\u305d\u308c\u3060\u3051\u3067\u30b7\u30a2\u30ef\u30bb\u3068\u601d\u3044\u307e\u3059\u3002\u30a2\u30a4\u30b3\u30f3\u306f \u307e\u3059\u3053 @masco \u3055\u3093\u306b\u63cf\u3044\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002","url":"https:\/\/t.co\/WAuAFVRmp7","entities":{"url":{"urls":[{"url":"https:\/\/t.co\/WAuAFVRmp7","expanded_url":"http:\/\/blog.56doc.net\/","display_url":"blog.56doc.net","indices":[0,23]}]},"description":{"urls":[]}},"protected":false,"followers_count":810,"friends_count":381,"listed_count":83,"created_at":"Fri Jan 22 09:51:41 +0000 2010","favourites_count":10998,"utc_offset":32400,"time_zone":"Tokyo","geo_enabled":true,"verified":false,"statuses_count":158643,"lang":"ja","status":{"created_at":"Wed Jan 18 05:02:46 +0000 2017","id":821583588189577217,"id_str":"821583588189577217","text":"RT @tabemarche: \u65ed\u5ddd\u30fb\u9280\u5ea7\u4ef2\u898b\u4e16\u901a\u308a\u3067\u300c\u9280\u5ea7\u98df\u3079\u30de\u30eb\u30b7\u30a7\u300d\u3092\u958b\u50ac\u3057\u307e\u3059\u3010\u3068\u304d\u30112017\u5e741\u670828\u65e5(\u571f\u66dc\u65e5) \u5348\u524d10\u6642\u304b\u3089\u5348\u5f8c3\u6642\u307e\u3067\u203b\u98f2\u98df\u95a2\u4fc2\u306f\u5b8c\u58f2\u6b21\u7b2c\u7d42\u4e86 \u3010\u3068\u3053\u308d\u3011\u9280\u5ea7\u4ef2\u898b\u4e16\u901a\u308a\uff08\u65ed\u5ddd\u5e023\u30fb4\u6761\u901a14\u30fb15\u4e01\u76ee\uff09\u3010\u4e3b\u50ac\u3011\u65ed\u5ddd\u9280\u5ea7\u5546\u5e97\u8857\u632f\u8208\u7d44\u5408https:\u2026","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[{"screen_name":"tabemarche","name":"\u5317\u306e\u6075\u307f \u98df\u3079\u30de\u30eb\u30b7\u30a7","id":612977725,"id_str":"612977725","indices":[3,14]}],"urls":[]},"source":"\u003ca href=\"http:\/\/janetter.net\/\" rel=\"nofollow\"\u003eJanetter\u003c\/a\u003e","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,"retweeted_status":{"created_at":"Wed Jan 18 04:36:36 +0000 2017","id":821577003165880320,"id_str":"821577003165880320","text":"\u65ed\u5ddd\u30fb\u9280\u5ea7\u4ef2\u898b\u4e16\u901a\u308a\u3067\u300c\u9280\u5ea7\u98df\u3079\u30de\u30eb\u30b7\u30a7\u300d\u3092\u958b\u50ac\u3057\u307e\u3059\u3010\u3068\u304d\u30112017\u5e741\u670828\u65e5(\u571f\u66dc\u65e5) \u5348\u524d10\u6642\u304b\u3089\u5348\u5f8c3\u6642\u307e\u3067\u203b\u98f2\u98df\u95a2\u4fc2\u306f\u5b8c\u58f2\u6b21\u7b2c\u7d42\u4e86 \u3010\u3068\u3053\u308d\u3011\u9280\u5ea7\u4ef2\u898b\u4e16\u901a\u308a\uff08\u65ed\u5ddd\u5e023\u30fb4\u6761\u901a14\u30fb15\u4e01\u76ee\uff09\u3010\u4e3b\u50ac\u3011\u65ed\u5ddd\u9280\u5ea7\u5546\u5e97\u8857\u632f\u8208\u2026 https:\/\/t.co\/iBIIihTyEo","truncated":true,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[{"url":"https:\/\/t.co\/iBIIihTyEo","expanded_url":"https:\/\/twitter.com\/i\/web\/status\/821577003165880320","display_url":"twitter.com\/i\/web\/status\/8\u2026","indices":[117,140]}]},"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","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,"is_quote_status":false,"retweet_count":2,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"ja"},"is_quote_status":false,"retweet_count":2,"favorite_count":0,"favorited":false,"retweeted":false,"lang":"ja"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"FFFFFF","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme14\/bg.gif","profile_background_tile":true,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/798559836405272576\/Eg698faC_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/798559836405272576\/Eg698faC_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/107367293\/1422663429","profile_link_color":"009999","profile_sidebar_border_color":"000000","profile_sidebar_fill_color":"EFEFEF","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"live_following":false,"follow_request_sent":false,"notifications":false,"muting":true,"blocking":false,"blocked_by":false,"translator_type":"none"},{"id":113785269,"id_str":"113785269","name":"\u3080\u3089\u3057\u3085\u3093","screen_name":"murashun","location":"\u77f3\u5ddd\u770c \u91d1\u6ca2\u5e02","description":"Web\u30c7\u30b6\u30a4\u30ca\u30fc\u3067\u306f\u306a\u3044\u3051\u3069Web\u30c7\u30b6\u30a4\u30f3\u306b\u8208\u5473\u306e\u3042\u308b\u7ba1\u7406\u4eba\u304c\u3001SNS\u3067\u5ec3\u308c\u305f\u500b\u4ebaWeb\u30b5\u30a4\u30c8\u306e\u5fa9\u6a29\u3092\u76ee\u6307\u3057\u3066\u3086\u308b\u3086\u308b\u884c\u304d\u307e\u3059\u0669( '\u03c9' )\u0648 \u30d5\u30a9\u30ed\u30fc\u30fb\u30ea\u30e0\u30fc\u30d6\u306f\u3054\u81ea\u7531\u306b\u3069\u3046\u305e\u3002\u4e00\u7dd2\u306b\u500b\u4ebaWeb\u30b5\u30a4\u30c8\u3092\u4f5c\u308a\u307e\u305b\u3093\u304b\u3002","url":"https:\/\/t.co\/KgJ1saKc5Y","entities":{"url":{"urls":[{"url":"https:\/\/t.co\/KgJ1saKc5Y","expanded_url":"https:\/\/murashun.jp","display_url":"murashun.jp","indices":[0,23]}]},"description":{"urls":[]}},"protected":false,"followers_count":203,"friends_count":30,"listed_count":14,"created_at":"Sat Feb 13 01:39:10 +0000 2010","favourites_count":377,"utc_offset":32400,"time_zone":"Tokyo","geo_enabled":true,"verified":false,"statuses_count":30373,"lang":"ja","status":{"created_at":"Tue Jan 17 23:19:24 +0000 2017","id":821497177629282305,"id_str":"821497177629282305","text":"@arayutw ^\ud83d\ude36$","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[{"screen_name":"arayutw","name":"\u3042\u3089\u3086","id":1528352858,"id_str":"1528352858","indices":[0,8]}],"urls":[]},"source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e","in_reply_to_status_id":821496857180315648,"in_reply_to_status_id_str":"821496857180315648","in_reply_to_user_id":1528352858,"in_reply_to_user_id_str":"1528352858","in_reply_to_screen_name":"arayutw","geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"lang":"und"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/666505887935172608\/R4p71HAB_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/666505887935172608\/R4p71HAB_normal.png","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/113785269\/1448356738","profile_link_color":"3498DB","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":true,"default_profile":false,"default_profile_image":false,"following":false,"live_following":false,"follow_request_sent":false,"notifications":false,"muting":true,"blocking":false,"blocked_by":false,"translator_type":"none"},{"id":1528352858,"id_str":"1528352858","name":"\u3042\u3089\u3086","screen_name":"arayutw","location":"\u6771\u4eac\u90fd\u8db3\u7acb\u533a","description":"SYNCER\u3068\u3044\u3046\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u63b2\u793a\u677f\u2192 https:\/\/t.co\/OAIDbACF3N","url":"https:\/\/t.co\/lW3GYq8sQl","entities":{"url":{"urls":[{"url":"https:\/\/t.co\/lW3GYq8sQl","expanded_url":"https:\/\/syncer.jp\/","display_url":"syncer.jp","indices":[0,23]}]},"description":{"urls":[{"url":"https:\/\/t.co\/OAIDbACF3N","expanded_url":"https:\/\/forum.syncer.jp\/","display_url":"forum.syncer.jp","indices":[26,49]}]}},"protected":false,"followers_count":1418,"friends_count":564,"listed_count":114,"created_at":"Tue Jun 18 17:28:51 +0000 2013","favourites_count":4455,"utc_offset":32400,"time_zone":"Asia\/Tokyo","geo_enabled":true,"verified":false,"statuses_count":34815,"lang":"ja","status":{"created_at":"Wed Jan 18 02:04:36 +0000 2017","id":821538753608986624,"id_str":"821538753608986624","text":"RT @SyncerJP: \u5730\u7344\u3081\u3050\u308a\u306e\u7d39\u4ecb\u8a18\u4e8b\u3067\u3059\uff01\n\n\u304b\u307e\u3069\u5730\u7344@\u5225\u5e9c\u5730\u7344\u3081\u3050\u308a-\u30e6\u30cb\u30fc\u30af\u306a\u30aa\u30d6\u30b8\u30a7\u3068\u8272\u3068\u308a\u3069\u308a\u306e\u6e29\u6cc9\u3092\u697d\u3057\u3082\u3046\uff01\nhttps:\/\/t.co\/osLZs3s3I4","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[{"screen_name":"SyncerJP","name":"SYNCER","id":2905085521,"id_str":"2905085521","indices":[3,12]}],"urls":[{"url":"https:\/\/t.co\/osLZs3s3I4","expanded_url":"https:\/\/syncer.jp\/Travel\/Oita\/Kamado-jigoku\/","display_url":"syncer.jp\/Travel\/Oita\/Ka\u2026","indices":[68,91]}]},"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","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,"retweeted_status":{"created_at":"Wed Jan 18 02:01:59 +0000 2017","id":821538093844992000,"id_str":"821538093844992000","text":"\u5730\u7344\u3081\u3050\u308a\u306e\u7d39\u4ecb\u8a18\u4e8b\u3067\u3059\uff01\n\n\u304b\u307e\u3069\u5730\u7344@\u5225\u5e9c\u5730\u7344\u3081\u3050\u308a-\u30e6\u30cb\u30fc\u30af\u306a\u30aa\u30d6\u30b8\u30a7\u3068\u8272\u3068\u308a\u3069\u308a\u306e\u6e29\u6cc9\u3092\u697d\u3057\u3082\u3046\uff01\nhttps:\/\/t.co\/osLZs3s3I4","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[{"url":"https:\/\/t.co\/osLZs3s3I4","expanded_url":"https:\/\/syncer.jp\/Travel\/Oita\/Kamado-jigoku\/","display_url":"syncer.jp\/Travel\/Oita\/Ka\u2026","indices":[54,77]}]},"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","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,"is_quote_status":false,"retweet_count":2,"favorite_count":2,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"ja"},"is_quote_status":false,"retweet_count":2,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"ja"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":true,"profile_background_color":"2660A1","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/632205394824183808\/FIL3S4z4.png","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/632205394824183808\/FIL3S4z4.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/631038167416619008\/7xfGAEwp_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/631038167416619008\/7xfGAEwp_normal.png","profile_link_color":"D36015","profile_sidebar_border_color":"F2E195","profile_sidebar_fill_color":"FFF7CC","profile_text_color":"0C3E53","profile_use_background_image":false,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"live_following":false,"follow_request_sent":true,"notifications":false,"muting":true,"blocking":false,"blocked_by":false,"translator_type":"regular"}],"next_cursor":0,"next_cursor_str":"0","previous_cursor":0,"previous_cursor_str":"0"}

レスポンスヘッダー

HTTP/1.1 200 OK
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
content-disposition: attachment; filename=json.json
content-length: 12554
content-type: application/json;charset=utf-8
date: Wed, 18 Jan 2017 05:13:35 GMT
expires: Tue, 31 Mar 1981 05:00:00 GMT
last-modified: Wed, 18 Jan 2017 05:13:35 GMT
pragma: no-cache
server: tsa_m
set-cookie: lang=ja; Path=/
set-cookie: guest_id=v1%3A148471641498413188; Domain=.twitter.com; Path=/; Expires=Fri, 18-Jan-2019 05:13:35 UTC
status: 200 OK
strict-transport-security: max-age=631138519
x-access-level: read
x-connection-hash: d4df808dbb3a5a1ef4115fa2787080ed
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-rate-limit-limit: 15
x-rate-limit-remaining: 14
x-rate-limit-reset: 1484717314
x-response-time: 138
x-transaction: 00246d1300cc1dfb
x-twitter-response-tags: BouncerCompliant
x-xss-protection: 1; mode=block

デモ

mutes/users/listのリクエストを試すことができます。ユーザー認証のデモを試す場合は、アプリケーション(読取権限)の連携を許可する必要があります。利用後、お手数ですが連携の解除をお願いします。連携を解除し忘れたとしても、当アプリケーションが許可なくデータにアクセスすることはありません。

cursor

include_entities

/

skip_status

/

認証方法 (ユーザー認証のみ)

/

サンプルコード

mutes/users/listのエンドポイントを利用するためのサンプルプログラムです。各種トークンの情報をセットしてからPHPで起動して下さい。リクエストに成功すると、$jsonという変数に目的のデータが代入されます。このデータを整形するなり保存するなり、活用して下さい。

アクセストークン

PHP (OAuth1.0)

<?php
/**************************************************

	[GET mutes/users/list]のお試しプログラム

	認証方式: アクセストークン

	配布: SYNCER
	公式ドキュメント: https://dev.twitter.com/rest/reference/get/mutes/users/list
	日本語解説ページ: https://syncer.jp/Web/API/Twitter/REST_API/GET/mutes/users/list/

**************************************************/

	// 設定
	$api_key = '' ;		// APIキー
	$api_secret = '' ;		// APIシークレット
	$access_token = '' ;		// アクセストークン
	$access_token_secret = '' ;		// アクセストークンシークレット
	$request_url = 'https://api.twitter.com/1.1/mutes/users/list.json' ;		// エンドポイント
	$request_method = 'GET' ;

	// パラメータA (オプション)
	$params_a = array(
//		"cursor" => "599056298085224449",
//		"include_entities" => "true",
//		"skip_status" => "true",
	) ;

	// キーを作成する (URLエンコードする)
	$signature_key = rawurlencode( $api_secret ) . '&' . rawurlencode( $access_token_secret ) ;

	// パラメータB (署名の材料用)
	$params_b = array(
		'oauth_token' => $access_token ,
		'oauth_consumer_key' => $api_key ,
		'oauth_signature_method' => 'HMAC-SHA1' ,
		'oauth_timestamp' => time() ,
		'oauth_nonce' => microtime() ,
		'oauth_version' => '1.0' ,
	) ;

	// パラメータAとパラメータBを合成してパラメータCを作る
	$params_c = array_merge( $params_a , $params_b ) ;

	// 連想配列をアルファベット順に並び替える
	ksort( $params_c ) ;

	// パラメータの連想配列を[キー=値&キー=値...]の文字列に変換する
	$request_params = http_build_query( $params_c , '' , '&' ) ;

	// 一部の文字列をフォロー
	$request_params = str_replace( array( '+' , '%7E' ) , array( '%20' , '~' ) , $request_params ) ;

	// 変換した文字列をURLエンコードする
	$request_params = rawurlencode( $request_params ) ;

	// リクエストメソッドをURLエンコードする
	// ここでは、URL末尾の[?]以下は付けないこと
	$encoded_request_method = rawurlencode( $request_method ) ;
 
	// リクエストURLをURLエンコードする
	$encoded_request_url = rawurlencode( $request_url ) ;
 
	// リクエストメソッド、リクエストURL、パラメータを[&]で繋ぐ
	$signature_data = $encoded_request_method . '&' . $encoded_request_url . '&' . $request_params ;

	// キー[$signature_key]とデータ[$signature_data]を利用して、HMAC-SHA1方式のハッシュ値に変換する
	$hash = hash_hmac( 'sha1' , $signature_data , $signature_key , TRUE ) ;

	// base64エンコードして、署名[$signature]が完成する
	$signature = base64_encode( $hash ) ;

	// パラメータの連想配列、[$params]に、作成した署名を加える
	$params_c['oauth_signature'] = $signature ;

	// パラメータの連想配列を[キー=値,キー=値,...]の文字列に変換する
	$header_params = http_build_query( $params_c , '' , ',' ) ;

	// リクエスト用のコンテキスト
	$context = array(
		'http' => array(
			'method' => $request_method , // リクエストメソッド
			'header' => array(			  // ヘッダー
				'Authorization: OAuth ' . $header_params ,
			) ,
		) ,
	) ;

	// パラメータがある場合、URLの末尾に追加
	if( $params_a ) {
		$request_url .= '?' . http_build_query( $params_a ) ;
	}

	// オプションがある場合、コンテキストにPOSTフィールドを作成する (GETの場合は不要)
//	if( $params_a ) {
//		$context['http']['content'] = http_build_query( $params_a ) ;
//	}

	// cURLを使ってリクエスト
	$curl = curl_init() ;
	curl_setopt( $curl, CURLOPT_URL , $request_url ) ;
	curl_setopt( $curl, CURLOPT_HEADER, 1 ) ; 
	curl_setopt( $curl, CURLOPT_CUSTOMREQUEST , $context['http']['method'] ) ;	// メソッド
	curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER , false ) ;	// 証明書の検証を行わない
	curl_setopt( $curl, CURLOPT_RETURNTRANSFER , true ) ;	// curl_execの結果を文字列で返す
	curl_setopt( $curl, CURLOPT_HTTPHEADER , $context['http']['header'] ) ;	// ヘッダー
//	if( isset( $context['http']['content'] ) && !empty( $context['http']['content'] ) ) {		// GETの場合は不要
//		curl_setopt( $curl , CURLOPT_POSTFIELDS , $context['http']['content'] ) ;	// リクエストボディ
//	}
	curl_setopt( $curl , CURLOPT_TIMEOUT , 5 ) ;	// タイムアウトの秒数
	$res1 = curl_exec( $curl ) ;
	$res2 = curl_getinfo( $curl ) ;
	curl_close( $curl ) ;

	// 取得したデータ
	$json = substr( $res1, $res2['header_size'] ) ;		// 取得したデータ(JSONなど)
	$header = substr( $res1, 0, $res2['header_size'] ) ;	// レスポンスヘッダー (検証に利用したい場合にどうぞ)

	// [cURL]ではなく、[file_get_contents()]を使うには下記の通りです…
	// $json = file_get_contents( $request_url , false , stream_context_create( $context ) ) ;

	// JSONをオブジェクトに変換
	$obj = json_decode( $json ) ;

	// HTML用
	$html = '' ;

	// タイトル
	$html .= '<h1 style="text-align:center; border-bottom:1px solid #555; padding-bottom:12px; margin-bottom:48px; color:#D36015;">GET mutes/users/list</h1>' ;

	// エラー判定
	if( !$json || !$obj ) {
		$html .= '<h2>エラー内容</h2>' ;
		$html .= '<p>データを取得することができませんでした…。設定を見直して下さい。</p>' ;
	}

	// 検証用
	$html .= '<h2>取得したデータ</h2>' ;
	$html .= '<p>下記のデータを取得できました。</p>' ;
	$html .= 	'<h3>ボディ(JSON)</h3>' ;
	$html .= 	'<p><textarea style="width:80%" rows="8">' . $json . '</textarea></p>' ;
	$html .= 	'<h3>レスポンスヘッダー</h3>' ;
	$html .= 	'<p><textarea style="width:80%" rows="8">' . $header . '</textarea></p>' ;

	// 検証用
	$html .= '<h2>リクエストしたデータ</h2>' ;
	$html .= '<p>下記内容でリクエストをしました。</p>' ;
	$html .= 	'<h3>URL</h3>' ;
	$html .= 	'<p><textarea style="width:80%" rows="8">' . $context['http']['method'] . ' ' . $request_url . '</textarea></p>' ;
	$html .= 	'<h3>ヘッダー</h3>' ;
	$html .= 	'<p><textarea style="width:80%" rows="8">' . implode( "\r\n" , $context['http']['header'] ) . '</textarea></p>' ;

	// フッター
	$html .= '<small style="display:block; border-top:1px solid #555; padding-top:12px; margin-top:72px; text-align:center; font-weight:700;">プログラムの説明: <a href="https://syncer.jp/Web/API/Twitter/REST_API/GET/mutes/users/list/" target="_blank">SYNCER</a></small>' ;

	// 出力 (本稼働時はHTMLのヘッダー、フッターを付けよう)
	echo $html ;