{"id":15435886,"url":"https://github.com/uetchy/pupil","last_synced_at":"2026-05-01T10:30:19.062Z","repository":{"id":2055369,"uuid":"2993320","full_name":"uetchy/pupil","owner":"uetchy","description":"The \"Lazy\" Twitter API Library for Ruby","archived":false,"fork":false,"pushed_at":"2014-11-26T11:17:23.000Z","size":480,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T08:04:22.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uetchy.png","metadata":{"files":{"readme":"README.ja.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-16T07:49:26.000Z","updated_at":"2014-11-26T11:17:23.000Z","dependencies_parsed_at":"2022-07-18T08:13:20.351Z","dependency_job_id":null,"html_url":"https://github.com/uetchy/pupil","commit_stats":null,"previous_names":["oame/pupil"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Fpupil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Fpupil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Fpupil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Fpupil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uetchy","download_url":"https://codeload.github.com/uetchy/pupil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240073890,"owners_count":19743825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T18:46:46.279Z","updated_at":"2026-05-01T10:30:19.003Z","avatar_url":"https://github.com/uetchy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pupil\n=============\n\nPupil はRuby 1.9.xのための\"怠惰\"なTwitter APIライブラリです。\n\nフューチャー\n-------------\n\n* Pupilは動的なTwitterAPIラッパーであり、APIの突然の仕様変更に柔軟に対応することができます\n* Ruby on Railsライクな直感的で書きやすい文法\n* 殆どのREST APIをサポートしていますが、一部のAPIはサポートされていません\n* Twitter Streaming APIをサポート\n* コマンドラインからPupilを自由にテスト出来るEyedropsコマンド\n\n問題\n-------------\n\n* 一部のAPIをサポートしていません\n* 不安定です\n* ドキュメントがありません（誰か書いて！）\n\n動作環境\n-------------\n\n* json及びoauth gem\n* Ruby 1.9.x\n\nインストール\n-------------\n\n\tgem install pupil\n\n簡単な使用例\n-------------\n\n\trequire \"pupil\"\n\t\n\toauth_key = {\n\t\t:consumer_key =\u003e \"something\",\n\t\t:consumer_secret =\u003e \"something\",\n\t\t:access_token =\u003e \"something\",\n\t\t:access_token_secret =\u003e \"something\"\n\t}\n  \n\tpupil = Pupil.new(oauth_key)\n\t\n\t# リプライが含まれないタイムラインを取得する\n\tpupil.timeline :count =\u003e 50, :exclude =\u003e :replies\n\t\n\t# @twitterapi をフォローする\n\tpupil.follow :twitterapi\n\t\n\t# プロフィールのURLをアップデートする\n\tpupil.update_profile :url =\u003e \"http://oameya.com\"\n\nStreaming API を使ってみる\n\n\trequire \"pupil/stream\"\n\t\n\toauth_key = {\n\t\t:consumer_key =\u003e \"something\",\n\t\t:consumer_secret =\u003e \"something\",\n\t\t:access_token =\u003e \"something\",\n\t\t:access_token_secret =\u003e \"something\"\n\t}\n\t\n\tstream = Pupil::Stream.new oauth_key\n\t\n\t# ユーザーストリーム\n\tstream.start :userstream do |status|\n\t\tif status.event == :retweeted\n\t\t\tputs \"これはリツイートされた呟きです！ =\u003e #{status.text}\"\n\t\tend\n\tend\n\t\n\t# 検索ストリーム\n\tstream.start :search, :track =\u003e \"#メリークリスマス\" do |status|\n\t\tputs \"メリー・クリスマス、#{status.user.screen_name}！\"\n\tend\n\n`oauth_key` を作る\n\n\trequire \"pupil/keygen\"\n\t\n\tkeygen = Pupil::Keygen.new\n\ttoken = keygen.interactive #=\u003e インタラクティブにoauth_keyを生成\n\nEyedrops, the interactive Pupil\n\n\t\u003e eyedrops -h\n\t\u003e eyedrops -u [name] -i\n\teyedrops\u003e twitter.timeline :count =\u003e 10\n\t...\n\n協力\n-------------\n\n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\nクレジット\n-------------\n\n開発者: [おおあめ](http://twitter.com/o_ame)\n\nライセンス\n-------------\n\nCopyright (c) 2011 おおあめ. LICENSE を見て詳しい情報を得てください。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuetchy%2Fpupil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuetchy%2Fpupil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuetchy%2Fpupil/lists"}