{"id":14955850,"url":"https://github.com/ademdc/ruby-vibe","last_synced_at":"2025-10-08T18:29:15.742Z","repository":{"id":44789353,"uuid":"384560109","full_name":"ademdc/ruby-vibe","owner":"ademdc","description":"Ruby client for Viber REST API","archived":false,"fork":false,"pushed_at":"2023-02-15T11:48:18.000Z","size":133,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T13:43:55.411Z","etag":null,"topics":["gem","ruby","ruby-gem","ruby-on-rails","rubygems","rubyonrails","viber","viber-api","viber-bot","viber-chat","viber-chatbot","viber-client"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/ruby-vibe","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/ademdc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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":"2021-07-09T22:04:59.000Z","updated_at":"2023-12-07T09:41:27.000Z","dependencies_parsed_at":"2024-09-22T00:00:31.471Z","dependency_job_id":null,"html_url":"https://github.com/ademdc/ruby-vibe","commit_stats":{"total_commits":59,"total_committers":3,"mean_commits":"19.666666666666668","dds":"0.47457627118644063","last_synced_commit":"aa7dc16037ee427bdc2fe07b3b8b209e9ea3cef0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ademdc/ruby-vibe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ademdc%2Fruby-vibe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ademdc%2Fruby-vibe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ademdc%2Fruby-vibe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ademdc%2Fruby-vibe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ademdc","download_url":"https://codeload.github.com/ademdc/ruby-vibe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ademdc%2Fruby-vibe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891763,"owners_count":26063863,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gem","ruby","ruby-gem","ruby-on-rails","rubygems","rubyonrails","viber","viber-api","viber-bot","viber-chat","viber-chatbot","viber-client"],"created_at":"2024-09-24T13:11:54.088Z","updated_at":"2025-10-08T18:29:15.709Z","avatar_url":"https://github.com/ademdc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-vibe\nRuby client for Viber REST API\n\n## Installation\nInstall from source:\n\n```bash\ngit clone https://www.github.com/ademdc/ruby-vibe.git \\\n\u0026\u0026 cd ruby-vibe \\\n\u0026\u0026 bundle install\n```\n\nTo build gem and install it locally:\n\n```bash\n# clone repo from previous step\nrake build\ngem install pkg/ruby-vibe-2.0.3.gem\n```\n\nFrom Gemfile:\n\n```ruby\ngem 'ruby-vibe', '2.0.3'\n```\n\n...followed with:\n```bash\nbundle install\n```\n\n\n## Usage\n \u003eRun `yard` to generate documentation.  \n\nTo initialize new bot, call Bot with viber authentication token:\n\n```ruby\nbot = RubyVibe::Bot.new(token: \u003cYOUR_AUTH_TOKEN\u003e)\n```\n\nAlso, it is possible to add a `ruby-vibe.rb` file in in the initializers folder with the following content:\n\n```ruby\nRubyVibe::TOKEN = \u003cYOUR_AUTH_TOKEN\u003e\nRubyVibe::NAME = \u003cYOUR_SENDER_NAME\u003e\nRubyVibe::AVATAR = \u003cAVATAR_HTTPS_URL\u003e\n```\n\nIn this case the bot can be initialized without any params: `bot = RubyVibe::Bot.new`\n\n### Send message\n```ruby\nbot.send_message(text: 'hello viber from ruby!', receiver: 'someone')\n```\nIf you configure token as constant `RubyVibe::TOKEN`, you can use class (shortcut) methods:\n\n```ruby\nRubyVibe::Message[text: 'my message', receiver: 'user_id']\n\nRubyVibe::GetOnline[user_id]\n```\n\n### Get account info\n```ruby\nbot.get_account_info\n```\n\n### Response\n \u003e_:hash changed to :data to make rubocop happy_  \n\nThe reponse of each method is a `Struct` with three keys: `success?`, `data` and `error_message`. \\\n\nFor a send message request the response could look like this:  \n\n```ruby\n#\u003cstruct :success?=true, data={\"status\"=\u003e0, \"status_message\"=\u003e\"ok\", \"message_token\"=\u003e5595771666503728439, \"chat_hostname\"=\u003e\"SN-CHAT-16_\"}, error_message=nil\u003e \n```\n\n### Tests\n - Run `rspec` to execute all tests. Feel free to write new ones!\n - Run `rubocop` to inspect code quality. `.rubocop_todo.yml` contain current issues that need to be solved in future.\n\n## Thank you for using RubyVibe!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fademdc%2Fruby-vibe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fademdc%2Fruby-vibe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fademdc%2Fruby-vibe/lists"}