{"id":15510709,"url":"https://github.com/kortirso/yandex_cloud","last_synced_at":"2026-05-17T12:32:17.407Z","repository":{"id":82415930,"uuid":"168661740","full_name":"kortirso/yandex_cloud","owner":"kortirso","description":"Ruby API wrapper for Yandex Cloud services ","archived":false,"fork":false,"pushed_at":"2019-02-01T14:11:00.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T16:55:58.778Z","etag":null,"topics":["api-wrapper","ruby","ruby-gem","ruby-on-rails","yandex","yandex-cloud"],"latest_commit_sha":null,"homepage":null,"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/kortirso.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":"2019-02-01T07:51:44.000Z","updated_at":"2024-04-04T08:11:54.000Z","dependencies_parsed_at":"2023-06-15T14:15:18.150Z","dependency_job_id":null,"html_url":"https://github.com/kortirso/yandex_cloud","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kortirso/yandex_cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fyandex_cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fyandex_cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fyandex_cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fyandex_cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kortirso","download_url":"https://codeload.github.com/kortirso/yandex_cloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fyandex_cloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33138279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-wrapper","ruby","ruby-gem","ruby-on-rails","yandex","yandex-cloud"],"created_at":"2024-10-02T09:50:32.121Z","updated_at":"2026-05-17T12:32:17.390Z","avatar_url":"https://github.com/kortirso.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YandexCloud\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'yandex_cloud'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install yandex_cloud\n\n## Get access to API\n\nTo make api requests in Yandex.Cloud you must include IAM-token in request headers and for getting IAM-token you must have Oauth token.\n\nInstructions for getting Oauth token is [here](https://cloud.yandex.com/docs/iam/operations/iam-token/create)\n\n### Configuration\n\nYou can use your Oauth token directly in spesific requests or put it to the ENV variables.\n\n## Using\n\n## Get IAM-token for cloud API access\n\nRequest for getting IAM-token for access to cloud API. Valid 12 hours.\n\n```ruby\n# with oauth_token in ENV\nauth_service = YandexCloud::Auth.new\nauth_service.token\n\n# or with oauth_token in service declaration\nauth_service = YandexCloud::Auth.new(oauth_token: oauth_token)\nauth_service.token\n```\n\n#### Responses\n\n```ruby\n# successful response\n{ 'iamToken' =\u003e iam_token }\n\n# response with errors\n{ 'code' =\u003e 16, 'message' =\u003e 'Token is invalid or has expired.', 'details' =\u003e [...] } \n```\n\n## Translate service\n\n### Configuration\n\nFor using Translate service you need additionally get FOLDER_ID.\n\nInstruction for getting FOLDER_ID is [here](https://cloud.yandex.com/docs/translate/concepts/auth)\n\nYou can use your FOLDER_ID directly in spesific requests or put it to the ENV variables.\n\n```ruby\n# with FOLDER_ID in ENV\ntranslator = YandexCloud::Translate.new(iam_token: iam_token)\n\n# or with FOLDER_ID in service declaration\ntranslator = YandexCloud::Translate.new(iam_token: iam_token, folder_id: '12345')\n```\n\n#### Options\n\n    iam_token - IAM-token, required\n    folder_id - folder ID of your account at YandexCloud, optional\n\n### Supported languages\n\nRequest for getting list of supported languages is #languages.\n\n```ruby\ntranslator.languages()\n```\n\n#### Responses\n\n```ruby\n# successful response\n{ 'languages' =\u003e [...] }\n\n# response with errors\n{ 'error_message' =\u003e '' }\n```\n\n### Detection\n\nRequest for detecting language of text is #detect.\n\n```ruby\ntranslator.detect(text: 'Hello')\n```\n\n#### Options\n\n    text - text for detection, required\n    hint - list of possible languages, optional, example - 'en,ru'\n\n#### Responses\n\n```ruby\n# successful response\n{ 'language' =\u003e 'es' }\n\n# response with errors\n{ 'error_message' =\u003e '' }\n```\n\n### Translation\n\nRequest for translating text is #translate.\n\n```ruby\ntranslator.translate(text: 'Hola', target: 'en')\n```\n\n#### Options\n\n    text - text for detection, required\n    source - source language, ISO 639-1 format (like 'en'), optional\n    target - target language, ISO 639-1 format (like 'ru'), required\n    format - text format, one of the [plain|html], default - plain, optional\n\n#### Responses\n\n```ruby\n# successful response\n{ 'translations' =\u003e [{ 'text' =\u003e 'Hello' }]}\n\n# response with errors\n{ 'error_message' =\u003e '' }\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kortirso/yandex_cloud.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Disclaimer\n\nUse this package at your own peril and risk.\n\n## Code of Conduct\n\nEveryone interacting in the YandexCloud project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kortirso/yandex_cloud/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fyandex_cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkortirso%2Fyandex_cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fyandex_cloud/lists"}