Module: YandexCloud::Translate::Languages
- Included in:
- YandexCloud::Translate
- Defined in:
- lib/yandex_cloud/translate/languages.rb
Overview
Module for getting list of languages from Translation service
Instance Method Summary collapse
-
#languages ⇒ Object
Get list.
Instance Method Details
#languages ⇒ Object
Get list
6 7 8 9 10 11 12 |
# File 'lib/yandex_cloud/translate/languages.rb', line 6 def languages # define params for request body = { 'folderId' => folder_id } headers = { 'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => "Bearer #{iam_token}" } # make request self.class.post('/languages', query: body, headers: headers).parsed_response end |