{"id":28458277,"url":"https://github.com/chatwoot/twitty","last_synced_at":"2025-07-02T05:31:08.588Z","repository":{"id":50851446,"uuid":"235594506","full_name":"chatwoot/twitty","owner":"chatwoot","description":"Ruby client for Twitter Business APIs","archived":false,"fork":false,"pushed_at":"2024-07-24T22:00:45.000Z","size":37,"stargazers_count":16,"open_issues_count":0,"forks_count":12,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-06-11T11:26:56.795Z","etag":null,"topics":["hacktoberfest","ruby","twitter","twitter-api"],"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/chatwoot.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-01-22T14:47:09.000Z","updated_at":"2024-10-30T14:56:44.000Z","dependencies_parsed_at":"2024-05-19T12:29:24.464Z","dependency_job_id":"6d6a69be-7d32-46e6-a6fa-463d8395e6c9","html_url":"https://github.com/chatwoot/twitty","commit_stats":{"total_commits":27,"total_committers":7,"mean_commits":3.857142857142857,"dds":0.5925925925925926,"last_synced_commit":"4003f3457c50634efcc06de3ffa3c62674084839"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chatwoot/twitty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatwoot%2Ftwitty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatwoot%2Ftwitty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatwoot%2Ftwitty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatwoot%2Ftwitty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatwoot","download_url":"https://codeload.github.com/chatwoot/twitty/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatwoot%2Ftwitty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260908028,"owners_count":23080750,"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":["hacktoberfest","ruby","twitter","twitter-api"],"created_at":"2025-06-07T00:10:41.479Z","updated_at":"2025-07-02T05:31:08.574Z","avatar_url":"https://github.com/chatwoot.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitty\n\nRuby client for Twitter Business APIs\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'twitty'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install twitty\n\n## Usage\n\nInitialize twitty in your project in an intializer or as required  \n\n```\n$twitter = Twitty::Facade.new do |config|\n config.consumer_key = 'consumer key '\n config.consumer_secret = 'consumer secret'\n config.access_token = 'access token'\n config.access_token_secret = 'access token secret'\n config.base_url = 'https://api.twitter.com'\n config.environment = 'chatwootdev'\nend\n```\n\nUse twitty to register your webhook on twitter as below\n\n```\n#fetch existing webhooks\n$twitter.fetch_webhooks\n\n#register a new webhook\n$twitter.register_webhook(url: \"https://xyc.com/webhooks/twitter\")\n```\n\nYou should handle the crc checks from twitter by processing the get requests to your webhooks url with a controller method similar to\n\n```\n def twitter_crc\n    render json: { response_token: \"sha256=#{$twitter.generate_crc(params[:crc_token])}\" }\n end\n```\n\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Adding new endpoints \n\nYou can easily add new endpoints by adding a new hash with `url` and `required_params` in https://github.com/chatwoot/twitty/blob/master/lib/twitty/constants.rb\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/chatwoot/twitty. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.chatwoot.com/docs/code-of-conduct) code of conduct.\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 Twitty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://www.chatwoot.com/docs/code-of-conduct).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatwoot%2Ftwitty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatwoot%2Ftwitty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatwoot%2Ftwitty/lists"}