{"id":15063671,"url":"https://github.com/kortirso/ex_yandex_cloud","last_synced_at":"2026-01-30T02:40:37.064Z","repository":{"id":57558000,"uuid":"168679369","full_name":"kortirso/ex_yandex_cloud","owner":"kortirso","description":"API Wrapper for Yandex Cloud services with Elixir","archived":false,"fork":false,"pushed_at":"2019-08-14T13:10:19.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T10:17:37.112Z","etag":null,"topics":["api","api-wrapper","elixir","elixir-library","phoenix","phoenix-framework","yandex","yandex-cloud"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-01T10:13:12.000Z","updated_at":"2019-08-14T13:10:21.000Z","dependencies_parsed_at":"2022-08-28T09:30:31.147Z","dependency_job_id":null,"html_url":"https://github.com/kortirso/ex_yandex_cloud","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fex_yandex_cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fex_yandex_cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fex_yandex_cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fex_yandex_cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kortirso","download_url":"https://codeload.github.com/kortirso/ex_yandex_cloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243778849,"owners_count":20346622,"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":["api","api-wrapper","elixir","elixir-library","phoenix","phoenix-framework","yandex","yandex-cloud"],"created_at":"2024-09-25T00:05:54.225Z","updated_at":"2026-01-30T02:40:37.035Z","avatar_url":"https://github.com/kortirso.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YandexCloud\n\nA simple Elixir wrapper to Yandex Cloud API\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `yandex_cloud` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:yandex_cloud, \"~\u003e 0.3.2\"}\n  ]\nend\n```\n\n## Get access to API\n\n### Getting a Cloud API KEY\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\nInstruction for getting Oauth token is [here](https://cloud.yandex.com/docs/iam/operations/iam-token/create)\n\n### Configuration\n\nThe default behaviour is to configure using the application environment:\n\nIn config/config.exs, add:\n\n```elixir\nconfig :yandex_cloud, cloud_api_key: \"API_KEY\"\n```\n\n## Usage\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```elixir\n# without params\nYandexCloud.get_iam_token\n\n# or with key\nYandexCloud.get_iam_token(%{oauth_token: \"API_KEY\"})\n```\n\n#### Options\n\n    oauth_token - API KEY, optional\n\n#### Responses\n\n```elixir\n# successful response\n{:ok, %{\"iamToken\" =\u003e iam_token}}\n\n# response with errors\n{:error, %{\"code\" =\u003e code, \"message\" =\u003e message}}\n```\n\n## Translate service\n\n### Configuration\n\nFor using Translate service you need additionally add FOLDER_ID.\n\nInstruction for getting FOLDER_ID is [here](https://cloud.yandex.com/docs/translate/concepts/auth)\n\nIn config/config.exs, add:\n\n```elixir\nconfig :yandex_cloud, translate_folder_id: \"FOLDER_ID\"\n```\n\nOr you can add folder_id param to each request.\n\n### Supported languages\n\nRequest for getting list of supported languages is #languages.\n\n```elixir\nYandexCloud.Translate.languages(%{iam_token: \"\"})\n```\n\n#### Options\n\n    iam_token - IAM-token, required\n    folder_id - folder ID of your account at Yandex.Cloud, optional\n\n### Detection\n\nRequest for detecting language of text is #detect.\n\n```elixir\nYandexCloud.Translate.detect(%{iam_token: \"\", text: \"Hello\"})\n```\n\n#### Options\n\n    iam_token - IAM-token, required\n    folder_id - folder ID of your account at Yandex.Cloud, optional\n    text - text for detection, required\n    hint - list of possible languages, optional, example - \"en,ru\"\n\n### Translation\n\nRequest for translating text is #translate.\n\n```elixir\nYandexCloud.Translate.translate(%{iam_token: \"\", text: \"Hello\", target: \"ru\"})\n```\n\n#### Options\n\n    iam_token - IAM-token, required\n    folder_id - folder ID of your account at Yandex.Cloud, optional\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## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kortirso/ex_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## Documentation\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/yandex_translator](https://hexdocs.pm/yandex_cloud).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fex_yandex_cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkortirso%2Fex_yandex_cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fex_yandex_cloud/lists"}