{"id":15608400,"url":"https://github.com/dereknguyen269/threads_client_ruby","last_synced_at":"2025-04-28T11:46:29.695Z","repository":{"id":180389703,"uuid":"665063085","full_name":"dereknguyen269/threads_client_ruby","owner":"dereknguyen269","description":"Unofficial, Reverse-Engineered Ruby client for Meta's Threads. Supports Read and Write.","archived":false,"fork":false,"pushed_at":"2023-07-12T14:35:07.000Z","size":426,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T18:10:00.623Z","etag":null,"topics":["instagram","instagram-api","meta","ruby","ruby-gem","threads","threads-bridge","threads-client","threads-client-ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/threads_client_ruby","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/dereknguyen269.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T10:57:48.000Z","updated_at":"2024-12-16T02:22:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5bf8413-0a57-4818-b1ac-4cc55b1834f1","html_url":"https://github.com/dereknguyen269/threads_client_ruby","commit_stats":null,"previous_names":["dereknguyen269/threads_client","dereknguyen269/threads_client_ruby"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dereknguyen269%2Fthreads_client_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dereknguyen269%2Fthreads_client_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dereknguyen269%2Fthreads_client_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dereknguyen269%2Fthreads_client_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dereknguyen269","download_url":"https://codeload.github.com/dereknguyen269/threads_client_ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251309254,"owners_count":21568776,"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":["instagram","instagram-api","meta","ruby","ruby-gem","threads","threads-bridge","threads-client","threads-client-ruby"],"created_at":"2024-10-03T05:20:37.329Z","updated_at":"2025-04-28T11:46:29.678Z","avatar_url":"https://github.com/dereknguyen269.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [\u003cimg src=\"logo.jpg\" width=\"36\" height=\"36\" /\u003e](https://github.com/dereknguyen269) Threads Client Ruby\n\n\u003e Unofficial, Reverse-Engineered Ruby client for Meta's [Threads](https://threads.net).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"cover.png\" alt=\"cover\" width=\"500px\" /\u003e\n\u003c/p\u003e\n\n# Getting Started\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'threads_client_ruby'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install threads_client_ruby\n\n## Usage\n#### 🌀 Config Threads\n\nUsing **username** and **password** (first time)\n```ruby\ncredentials = {\n  username: \"Instagram's username\",\n  password: \"Instagram's password\"\n}\n\nThreadsClientRuby.config do |config|\n  config.credentials = credentials\nend\n```\n\nUsing **usertoken** and **userid** (get from [here](#🤖-get-usertoken-and-userid))\n```ruby\ncredentials = {\n  usertoken: \"token received after login successfull\",\n  userid: \"Instagram's user id\"\n}\n\nThreadsClientRuby.config do |config|\n  config.credentials = credentials\nend\n```\n\n\u003e💡 TIP: Using **usertoken** and **userid** to avoid Theard rate limit and decrease response time.\n\n#### 🤖 Get usertoken and userid\n\n```ruby\n  userinfo = ThreadsClientRuby.get_userinfo\n  # {\n  #   :usertoken=\u003e \"eyJkc191c2VyX2lkIjoiNTgzOTIyMTY....\",\n  #   :userid=\u003e\"583922...\"\n  # }\n```\n\n#### 📌 Features\n\n- [x] ✅ [Text Threads](#✨-threads-with-image)\n- [x] ✅ [Threads with Image](#✨-threads-with-image)\n- [x] ✅ [Threads with Link Attachment](#✨-threads-with-link-attachment)\n- [x] ✅ [Get Post Id From URL](#✨-get-post-id-from-url)\n- [x] ✅ [Reply to Other Threads](#✨-reply-to-other-threads)\n- [ ] ✅ [Like/Unlike a Thread](#✨-likeunlike-a-thread)\n- [ ] ✅ [Follow/Unfollow a User](#✨-followunfollow-a-user)\n- [ ] ✅ [Delete a Post](#✨-delete-a-post)\n\n**✨ Text Threads**\n\n```ruby\nThreadsClientRuby.publish(text: 'Hello World!')\n```\n\n###### ✨ Threads with Image\n\n```ruby\n# Online image path\nThreadsClientRuby.publish(text: 'Hello World!', image: 'https://fastly.picsum.photos/id/654/536/354.jpg?hmac=Nqd_oi3EIiPJBAVPYhIUjaEvKpRqLjhtTHkxPmjjo7M')\n\n# Or with local image path\nThreadsClientRuby.publish(text: 'Hello World!', image: '/Users/local-path/logo.jpg')\n```\n\n###### ✨ Threads with Link Attachment\n\n```ruby\nThreadsClientRuby.publish(url: 'https://github.com/dereknguyen269/threads_client_ruby')\n```\n\n###### ✨ Get Post Id From URL\n\n```ruby\npost_id = ThreadsClientRuby.get_post_id('https://www.threads.net/t/CugF-EjhQ3r')\n# =\u003e 3143538795635609067\n```\n\n###### ✨ Reply to Other Threads\n\n```ruby\nThreadsClientRuby.publish(reply_id: post_id, text: \"Reply to #{post_id}\")\n```\n\n###### ✨ Like/Unlike a Thread\n\n###### ✨ Follow/Unfollow a User\n\n###### ✨ Delete a Post\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/threads_client_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/threads_client_ruby/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the ThreadsClientRuby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/threads_client_ruby/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdereknguyen269%2Fthreads_client_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdereknguyen269%2Fthreads_client_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdereknguyen269%2Fthreads_client_ruby/lists"}