アットウィキロゴ

KANICHAT > TwitterIcon

Twitter APIからのアイコン取得


Twitterのアカウントでかにチャットにアクセスしている人のアイコンを取得するのに必要。

引数

APIid そのAPIでのユーザーID
retry リトライ数?

http://ktacs.kanichat.com/proxy.php/users/show/【APIid】.json?retry=【retry】

戻り値

正常なら;

{
  • id:【その人のID(引数のAPIidと同じ?)】,
  • id_str:【idの文字列版】,
  • name:【ユーザーの名前】,
  • screen_name:【@から始まるアカウント名(@は文字列に含まれていない)】,
  • location:【プロフィールの場所?】,
  • description:【プロフィールの自己紹介】,
  • url:【持ってるホームページやブログ】,
  • entitles: {
    • url: {
      • urls:[{
        • url:【持ってるホームページやブログ】,
        • expanded_url:【短縮されてないurl】,
        • display_url: 【http://などが省略されたURL文字列】,
        • indices:【不明】
      • ]}
    • },
    • description:【不明】
  • },
  • protected:【不明】,
  • followers_count:【フォロワー数】,
  • friends_count:【フォロー数?】,
  • listed_count:【ユーザーが追加されたリストの数】,
  • created_at:【Twitter始めた日?】,
  • favorites_count:【ふぁぼられ数?】,
  • utc_offset:【UTC時間のオフセット?】,
  • time_zone:【タイムゾーン】,
  • geo_enabled:【不明】,
  • verified:【認証済みアカウントかどうか?】,
  • statuses_count:【不明】,
  • lang:【言語】,
  • status:{}【不明】
  • contributors_enabled:【不明】,
  • is_translator:【翻訳者かどうか?】,
  • profile_background_color:【プロフィールの背景色】,
  • profile_background_image_url:【プロフィールの背景画像のURL】,
  • profile_background_image_url_https:【プロフィールの背景画像のhttpsのURL】,
  • profile_background_tile:【プロフィール背景はタイル状かどうか?】,
  • profile_image_url:【プロフィールのアイコンのURL】,              '←これが一番大事かも';
  • profile_image_url_https:【プロフィールのアイコンのhttpsのURL】,
  • profile_banner_url:【Header画像のURL】,
  • profile_link_color:【プロフィールへのリンクの色?】,
  • profile_sidebar_border_color:【プロフィールのサイドバーの色?】,
  • profile_sidebar_fill_color:【プロフィールのサイドバーの色?】,
  • profile_text_color:【プロフィールの文字色】,
  • profile_use_background_image:【プロフィールに背景画像を使う】,
  • default_profile:【デフォルトのプロフィール?】,
  • default_profile_image:【デフォルトの画像?】,
  • following:【フォローしている?】,
  • follow_request_sent:【フォローリクエスト送信?】,
  • notidications:【不明】
}

異常なら;
400 Bad Requestが返る。


Bad Request

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
 
More information about this error may be available in the server error log.

口語訳
バッドリクエスト!
サーバーの中でエラーがでたか、設定がミスっててリクエストが完了できないんだ。すまんね。
サーバーの管理者に、「アドレスが提供されない」という内容と、エラーが発生した時間や、エラーの原因とおもわれる何かを連絡してくだされ。

このエラーの詳細には、サーバーのエラーログで利用可能なものが含まれるからね。

翻訳全然できてねええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええええ

Written by Citrine
最終更新:2013年08月01日 18:05