phrase 0.4.31 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +6 -0
- data/LICENSE +17 -18
- data/README.md +449 -280
- data/Rakefile +7 -4
- data/docs/Account.md +27 -0
- data/docs/AccountDetails.md +27 -0
- data/docs/AccountDetails1.md +17 -0
- data/docs/AccountsApi.md +134 -0
- data/docs/AffectedCount.md +17 -0
- data/docs/AffectedResources.md +17 -0
- data/docs/Authorization.md +31 -0
- data/docs/AuthorizationCreateParameters.md +21 -0
- data/docs/AuthorizationUpdateParameters.md +21 -0
- data/docs/AuthorizationWithToken.md +33 -0
- data/docs/AuthorizationWithToken1.md +17 -0
- data/docs/AuthorizationsApi.md +321 -0
- data/docs/BitbucketSync.md +27 -0
- data/docs/BitbucketSyncApi.md +197 -0
- data/docs/BitbucketSyncExportParameters.md +17 -0
- data/docs/BitbucketSyncExportResponse.md +17 -0
- data/docs/BitbucketSyncImportParameters.md +17 -0
- data/docs/BlacklistedKey.md +23 -0
- data/docs/BlacklistedKeyCreateParameters.md +17 -0
- data/docs/BlacklistedKeyUpdateParameters.md +17 -0
- data/docs/BlacklistedKeysApi.md +333 -0
- data/docs/Branch.md +29 -0
- data/docs/BranchCreateParameters.md +17 -0
- data/docs/BranchMergeParameters.md +17 -0
- data/docs/BranchUpdateParameters.md +17 -0
- data/docs/BranchesApi.md +459 -0
- data/docs/Comment.md +25 -0
- data/docs/CommentCreateParameters.md +19 -0
- data/docs/CommentMarkReadParameters.md +17 -0
- data/docs/CommentUpdateParameters.md +19 -0
- data/docs/CommentsApi.md +548 -0
- data/docs/Distribution.md +29 -0
- data/docs/DistributionCreateParameters.md +29 -0
- data/docs/DistributionPreview.md +29 -0
- data/docs/DistributionUpdateParameters.md +29 -0
- data/docs/DistributionsApi.md +331 -0
- data/docs/Document.md +23 -0
- data/docs/DocumentsApi.md +137 -0
- data/docs/Format.md +35 -0
- data/docs/FormatsApi.md +68 -0
- data/docs/GitHubSyncApi.md +130 -0
- data/docs/GitLabSyncApi.md +463 -0
- data/docs/GithubSyncExportParameters.md +17 -0
- data/docs/GithubSyncImportParameters.md +17 -0
- data/docs/GitlabSync.md +37 -0
- data/docs/GitlabSyncExport.md +19 -0
- data/docs/GitlabSyncExportParameters.md +17 -0
- data/docs/GitlabSyncHistory.md +25 -0
- data/docs/GitlabSyncImportParameters.md +17 -0
- data/docs/GlossariesApi.md +331 -0
- data/docs/Glossary.md +25 -0
- data/docs/GlossaryCreateParameters.md +21 -0
- data/docs/GlossaryTerm.md +31 -0
- data/docs/GlossaryTermCreateParameters.md +23 -0
- data/docs/GlossaryTermTranslation.md +25 -0
- data/docs/GlossaryTermTranslationCreateParameters.md +19 -0
- data/docs/GlossaryTermTranslationUpdateParameters.md +19 -0
- data/docs/GlossaryTermTranslationsApi.md +213 -0
- data/docs/GlossaryTermUpdateParameters.md +23 -0
- data/docs/GlossaryTermsApi.md +341 -0
- data/docs/GlossaryUpdateParameters.md +21 -0
- data/docs/InlineResponse422.md +19 -0
- data/docs/InlineResponse422Errors.md +21 -0
- data/docs/Invitation.md +35 -0
- data/docs/InvitationCreateParameters.md +25 -0
- data/docs/InvitationUpdateParameters.md +23 -0
- data/docs/InvitationsApi.md +395 -0
- data/docs/Job.md +29 -0
- data/docs/JobCompleteParameters.md +17 -0
- data/docs/JobCreateParameters.md +27 -0
- data/docs/JobDetails.md +37 -0
- data/docs/JobDetails1.md +23 -0
- data/docs/JobKeysCreateParameters.md +19 -0
- data/docs/JobLocale.md +23 -0
- data/docs/JobLocaleCompleteParameters.md +17 -0
- data/docs/JobLocaleReopenParameters.md +17 -0
- data/docs/JobLocaleUpdateParameters.md +21 -0
- data/docs/JobLocalesApi.md +483 -0
- data/docs/JobLocalesCreateParameters.md +21 -0
- data/docs/JobPreview.md +21 -0
- data/docs/JobReopenParameters.md +17 -0
- data/docs/JobStartParameters.md +17 -0
- data/docs/JobUpdateParameters.md +23 -0
- data/docs/JobsApi.md +674 -0
- data/docs/KeyCreateParameters.md +45 -0
- data/docs/KeyPreview.md +21 -0
- data/docs/KeyUpdateParameters.md +45 -0
- data/docs/KeysApi.md +609 -0
- data/docs/KeysSearchParameters.md +25 -0
- data/docs/KeysTagParameters.md +23 -0
- data/docs/KeysUntagParameters.md +23 -0
- data/docs/Locale.md +35 -0
- data/docs/LocaleCreateParameters.md +35 -0
- data/docs/LocaleDetails.md +37 -0
- data/docs/LocaleDetails1.md +17 -0
- data/docs/LocalePreview.md +21 -0
- data/docs/LocaleStatistics.md +29 -0
- data/docs/LocaleUpdateParameters.md +35 -0
- data/docs/LocalesApi.md +428 -0
- data/docs/Member.md +25 -0
- data/docs/MemberUpdateParameters.md +23 -0
- data/docs/MembersApi.md +267 -0
- data/docs/OrderConfirmParameters.md +17 -0
- data/docs/OrderCreateParameters.md +43 -0
- data/docs/OrdersApi.md +337 -0
- data/docs/Project.md +31 -0
- data/docs/ProjectCreateParameters.md +29 -0
- data/docs/ProjectDetails.md +33 -0
- data/docs/ProjectDetails1.md +19 -0
- data/docs/ProjectLocales.md +27 -0
- data/docs/ProjectLocales1.md +17 -0
- data/docs/ProjectShort.md +25 -0
- data/docs/ProjectUpdateParameters.md +27 -0
- data/docs/ProjectsApi.md +321 -0
- data/docs/Release.md +37 -0
- data/docs/ReleaseCreateParameters.md +21 -0
- data/docs/ReleasePreview.md +37 -0
- data/docs/ReleaseUpdateParameters.md +21 -0
- data/docs/ReleasesApi.md +407 -0
- data/docs/Screenshot.md +29 -0
- data/docs/ScreenshotCreateParameters.md +21 -0
- data/docs/ScreenshotMarker.md +27 -0
- data/docs/ScreenshotMarkerCreateParameters.md +19 -0
- data/docs/ScreenshotMarkerUpdateParameters.md +19 -0
- data/docs/ScreenshotMarkersApi.md +337 -0
- data/docs/ScreenshotUpdateParameters.md +21 -0
- data/docs/ScreenshotsApi.md +331 -0
- data/docs/Space.md +27 -0
- data/docs/SpaceCreateParameters.md +17 -0
- data/docs/SpaceUpdateParameters.md +17 -0
- data/docs/SpacesApi.md +529 -0
- data/docs/SpacesProjectsCreateParameters.md +17 -0
- data/docs/StyleGuidesApi.md +331 -0
- data/docs/Styleguide.md +23 -0
- data/docs/StyleguideCreateParameters.md +41 -0
- data/docs/StyleguideDetails.md +49 -0
- data/docs/StyleguideDetails1.md +41 -0
- data/docs/StyleguidePreview.md +19 -0
- data/docs/StyleguideUpdateParameters.md +41 -0
- data/docs/Tag.md +23 -0
- data/docs/TagCreateParameters.md +19 -0
- data/docs/TagWithStats.md +25 -0
- data/docs/TagWithStats1.md +17 -0
- data/docs/TagWithStats1Statistics.md +23 -0
- data/docs/TagWithStats1Statistics1.md +19 -0
- data/docs/TagsApi.md +271 -0
- data/docs/Team.md +29 -0
- data/docs/TeamCreateParameters.md +17 -0
- data/docs/TeamDetail.md +29 -0
- data/docs/TeamUpdateParameters.md +17 -0
- data/docs/TeamsApi.md +721 -0
- data/docs/TeamsProjectsCreateParameters.md +17 -0
- data/docs/TeamsSpacesCreateParameters.md +17 -0
- data/docs/TeamsUsersCreateParameters.md +17 -0
- data/docs/Translation.md +37 -0
- data/docs/TranslationCreateParameters.md +31 -0
- data/docs/TranslationDetails.md +41 -0
- data/docs/TranslationDetails1.md +19 -0
- data/docs/TranslationExcludeParameters.md +17 -0
- data/docs/TranslationIncludeParameters.md +17 -0
- data/docs/TranslationKey.md +33 -0
- data/docs/TranslationKeyDetails.md +51 -0
- data/docs/TranslationKeyDetails1.md +33 -0
- data/docs/TranslationOrder.md +49 -0
- data/docs/TranslationReviewParameters.md +17 -0
- data/docs/TranslationUnverifyParameters.md +17 -0
- data/docs/TranslationUpdateParameters.md +27 -0
- data/docs/TranslationVerifyParameters.md +17 -0
- data/docs/TranslationVersion.md +31 -0
- data/docs/TranslationVersionWithUser.md +33 -0
- data/docs/TranslationVersionWithUser1.md +17 -0
- data/docs/TranslationsApi.md +1148 -0
- data/docs/TranslationsExcludeParameters.md +23 -0
- data/docs/TranslationsIncludeParameters.md +23 -0
- data/docs/TranslationsReviewParameters.md +19 -0
- data/docs/TranslationsSearchParameters.md +23 -0
- data/docs/TranslationsUnverifyParameters.md +23 -0
- data/docs/TranslationsVerifyParameters.md +23 -0
- data/docs/Upload.md +31 -0
- data/docs/UploadCreateParameters.md +45 -0
- data/docs/UploadSummary.md +31 -0
- data/docs/UploadsApi.md +234 -0
- data/docs/User.md +29 -0
- data/docs/UserPreview.md +21 -0
- data/docs/UsersApi.md +68 -0
- data/docs/VersionsHistoryApi.md +146 -0
- data/docs/Webhook.md +29 -0
- data/docs/WebhookCreateParameters.md +23 -0
- data/docs/WebhookUpdateParameters.md +23 -0
- data/docs/WebhooksApi.md +394 -0
- data/git_push.sh +58 -0
- data/lib/phrase.rb +212 -55
- data/lib/phrase/api/accounts_api.rb +142 -0
- data/lib/phrase/api/authorizations_api.rb +348 -0
- data/lib/phrase/api/bitbucket_sync_api.rb +219 -0
- data/lib/phrase/api/blacklisted_keys_api.rb +381 -0
- data/lib/phrase/api/branches_api.rb +526 -0
- data/lib/phrase/api/comments_api.rb +659 -0
- data/lib/phrase/api/distributions_api.rb +378 -0
- data/lib/phrase/api/documents_api.rb +152 -0
- data/lib/phrase/api/formats_api.rb +70 -0
- data/lib/phrase/api/git_hub_sync_api.rb +146 -0
- data/lib/phrase/api/git_lab_sync_api.rb +510 -0
- data/lib/phrase/api/glossaries_api.rb +378 -0
- data/lib/phrase/api/glossary_term_translations_api.rb +270 -0
- data/lib/phrase/api/glossary_terms_api.rb +408 -0
- data/lib/phrase/api/invitations_api.rb +450 -0
- data/lib/phrase/api/job_locales_api.rb +589 -0
- data/lib/phrase/api/jobs_api.rb +792 -0
- data/lib/phrase/api/keys_api.rb +702 -0
- data/lib/phrase/api/locales_api.rb +499 -0
- data/lib/phrase/api/members_api.rb +304 -0
- data/lib/phrase/api/orders_api.rb +387 -0
- data/lib/phrase/api/projects_api.rb +348 -0
- data/lib/phrase/api/releases_api.rb +486 -0
- data/lib/phrase/api/screenshot_markers_api.rb +396 -0
- data/lib/phrase/api/screenshots_api.rb +378 -0
- data/lib/phrase/api/spaces_api.rb +610 -0
- data/lib/phrase/api/style_guides_api.rb +378 -0
- data/lib/phrase/api/tags_api.rb +307 -0
- data/lib/phrase/api/teams_api.rb +840 -0
- data/lib/phrase/api/translations_api.rb +1353 -0
- data/lib/phrase/api/uploads_api.rb +273 -0
- data/lib/phrase/api/users_api.rb +70 -0
- data/lib/phrase/api/versions_history_api.rb +172 -0
- data/lib/phrase/api/webhooks_api.rb +448 -0
- data/lib/phrase/api_client.rb +376 -0
- data/lib/phrase/api_error.rb +45 -0
- data/lib/phrase/configuration.rb +243 -0
- data/lib/phrase/models/account.rb +239 -0
- data/lib/phrase/models/account_details.rb +247 -0
- data/lib/phrase/models/account_details1.rb +194 -0
- data/lib/phrase/models/affected_count.rb +194 -0
- data/lib/phrase/models/affected_resources.rb +194 -0
- data/lib/phrase/models/authorization.rb +259 -0
- data/lib/phrase/models/authorization_create_parameters.rb +217 -0
- data/lib/phrase/models/authorization_update_parameters.rb +217 -0
- data/lib/phrase/models/authorization_with_token.rb +276 -0
- data/lib/phrase/models/authorization_with_token1.rb +194 -0
- data/lib/phrase/models/bitbucket_sync.rb +241 -0
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/bitbucket_sync_export_response.rb +194 -0
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/blacklisted_key.rb +221 -0
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +195 -0
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +195 -0
- data/lib/phrase/models/branch.rb +248 -0
- data/lib/phrase/models/branch_create_parameters.rb +195 -0
- data/lib/phrase/models/branch_merge_parameters.rb +195 -0
- data/lib/phrase/models/branch_update_parameters.rb +195 -0
- data/lib/phrase/models/comment.rb +230 -0
- data/lib/phrase/models/comment_create_parameters.rb +205 -0
- data/lib/phrase/models/comment_mark_read_parameters.rb +195 -0
- data/lib/phrase/models/comment_update_parameters.rb +205 -0
- data/lib/phrase/models/distribution.rb +252 -0
- data/lib/phrase/models/distribution_create_parameters.rb +259 -0
- data/lib/phrase/models/distribution_preview.rb +250 -0
- data/lib/phrase/models/distribution_update_parameters.rb +259 -0
- data/lib/phrase/models/document.rb +221 -0
- data/lib/phrase/models/format.rb +275 -0
- data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/gitlab_sync.rb +284 -0
- data/lib/phrase/models/gitlab_sync_export.rb +203 -0
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/gitlab_sync_history.rb +232 -0
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/glossary.rb +232 -0
- data/lib/phrase/models/glossary_create_parameters.rb +217 -0
- data/lib/phrase/models/glossary_term.rb +259 -0
- data/lib/phrase/models/glossary_term_create_parameters.rb +225 -0
- data/lib/phrase/models/glossary_term_translation.rb +230 -0
- data/lib/phrase/models/glossary_term_translation_create_parameters.rb +205 -0
- data/lib/phrase/models/glossary_term_translation_update_parameters.rb +205 -0
- data/lib/phrase/models/glossary_term_update_parameters.rb +225 -0
- data/lib/phrase/models/glossary_update_parameters.rb +217 -0
- data/lib/phrase/models/inline_response422.rb +205 -0
- data/lib/phrase/models/inline_response422_errors.rb +212 -0
- data/lib/phrase/models/invitation.rb +279 -0
- data/lib/phrase/models/invitation_create_parameters.rb +237 -0
- data/lib/phrase/models/invitation_update_parameters.rb +227 -0
- data/lib/phrase/models/job.rb +248 -0
- data/lib/phrase/models/job_complete_parameters.rb +195 -0
- data/lib/phrase/models/job_create_parameters.rb +249 -0
- data/lib/phrase/models/job_details.rb +296 -0
- data/lib/phrase/models/job_details1.rb +225 -0
- data/lib/phrase/models/job_keys_create_parameters.rb +207 -0
- data/lib/phrase/models/job_locale.rb +223 -0
- data/lib/phrase/models/job_locale_complete_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_reopen_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_update_parameters.rb +217 -0
- data/lib/phrase/models/job_locales_create_parameters.rb +217 -0
- data/lib/phrase/models/job_preview.rb +212 -0
- data/lib/phrase/models/job_reopen_parameters.rb +195 -0
- data/lib/phrase/models/job_start_parameters.rb +195 -0
- data/lib/phrase/models/job_update_parameters.rb +225 -0
- data/lib/phrase/models/key_create_parameters.rb +335 -0
- data/lib/phrase/models/key_preview.rb +212 -0
- data/lib/phrase/models/key_update_parameters.rb +335 -0
- data/lib/phrase/models/keys_search_parameters.rb +235 -0
- data/lib/phrase/models/keys_tag_parameters.rb +225 -0
- data/lib/phrase/models/keys_untag_parameters.rb +225 -0
- data/lib/phrase/models/locale.rb +277 -0
- data/lib/phrase/models/locale_create_parameters.rb +285 -0
- data/lib/phrase/models/locale_details.rb +294 -0
- data/lib/phrase/models/locale_details1.rb +194 -0
- data/lib/phrase/models/locale_preview.rb +212 -0
- data/lib/phrase/models/locale_statistics.rb +248 -0
- data/lib/phrase/models/locale_update_parameters.rb +285 -0
- data/lib/phrase/models/member.rb +232 -0
- data/lib/phrase/models/member_update_parameters.rb +227 -0
- data/lib/phrase/models/order_confirm_parameters.rb +195 -0
- data/lib/phrase/models/order_create_parameters.rb +327 -0
- data/lib/phrase/models/project.rb +257 -0
- data/lib/phrase/models/project_create_parameters.rb +255 -0
- data/lib/phrase/models/project_details.rb +274 -0
- data/lib/phrase/models/project_details1.rb +203 -0
- data/lib/phrase/models/project_locales.rb +249 -0
- data/lib/phrase/models/project_locales1.rb +196 -0
- data/lib/phrase/models/project_short.rb +230 -0
- data/lib/phrase/models/project_update_parameters.rb +245 -0
- data/lib/phrase/models/release.rb +290 -0
- data/lib/phrase/models/release_create_parameters.rb +217 -0
- data/lib/phrase/models/release_preview.rb +290 -0
- data/lib/phrase/models/release_update_parameters.rb +217 -0
- data/lib/phrase/models/screenshot.rb +248 -0
- data/lib/phrase/models/screenshot_create_parameters.rb +215 -0
- data/lib/phrase/models/screenshot_marker.rb +239 -0
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +205 -0
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +205 -0
- data/lib/phrase/models/screenshot_update_parameters.rb +215 -0
- data/lib/phrase/models/space.rb +241 -0
- data/lib/phrase/models/space_create_parameters.rb +195 -0
- data/lib/phrase/models/space_update_parameters.rb +195 -0
- data/lib/phrase/models/spaces_projects_create_parameters.rb +195 -0
- data/lib/phrase/models/styleguide.rb +221 -0
- data/lib/phrase/models/styleguide_create_parameters.rb +315 -0
- data/lib/phrase/models/styleguide_details.rb +346 -0
- data/lib/phrase/models/styleguide_details1.rb +302 -0
- data/lib/phrase/models/styleguide_preview.rb +203 -0
- data/lib/phrase/models/styleguide_update_parameters.rb +315 -0
- data/lib/phrase/models/tag.rb +221 -0
- data/lib/phrase/models/tag_create_parameters.rb +205 -0
- data/lib/phrase/models/tag_with_stats.rb +240 -0
- data/lib/phrase/models/tag_with_stats1.rb +196 -0
- data/lib/phrase/models/tag_with_stats1_statistics.rb +221 -0
- data/lib/phrase/models/tag_with_stats1_statistics1.rb +203 -0
- data/lib/phrase/models/team.rb +254 -0
- data/lib/phrase/models/team_create_parameters.rb +195 -0
- data/lib/phrase/models/team_detail.rb +254 -0
- data/lib/phrase/models/team_update_parameters.rb +195 -0
- data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
- data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
- data/lib/phrase/models/translation.rb +286 -0
- data/lib/phrase/models/translation_create_parameters.rb +265 -0
- data/lib/phrase/models/translation_details.rb +312 -0
- data/lib/phrase/models/translation_details1.rb +203 -0
- data/lib/phrase/models/translation_exclude_parameters.rb +195 -0
- data/lib/phrase/models/translation_include_parameters.rb +195 -0
- data/lib/phrase/models/translation_key.rb +268 -0
- data/lib/phrase/models/translation_key_details.rb +357 -0
- data/lib/phrase/models/translation_key_details1.rb +266 -0
- data/lib/phrase/models/translation_order.rb +340 -0
- data/lib/phrase/models/translation_review_parameters.rb +195 -0
- data/lib/phrase/models/translation_unverify_parameters.rb +195 -0
- data/lib/phrase/models/translation_update_parameters.rb +245 -0
- data/lib/phrase/models/translation_verify_parameters.rb +195 -0
- data/lib/phrase/models/translation_version.rb +257 -0
- data/lib/phrase/models/translation_version_with_user.rb +274 -0
- data/lib/phrase/models/translation_version_with_user1.rb +194 -0
- data/lib/phrase/models/translations_exclude_parameters.rb +225 -0
- data/lib/phrase/models/translations_include_parameters.rb +225 -0
- data/lib/phrase/models/translations_review_parameters.rb +205 -0
- data/lib/phrase/models/translations_search_parameters.rb +225 -0
- data/lib/phrase/models/translations_unverify_parameters.rb +225 -0
- data/lib/phrase/models/translations_verify_parameters.rb +225 -0
- data/lib/phrase/models/upload.rb +257 -0
- data/lib/phrase/models/upload_create_parameters.rb +335 -0
- data/lib/phrase/models/upload_summary.rb +257 -0
- data/lib/phrase/models/user.rb +248 -0
- data/lib/phrase/models/user_preview.rb +212 -0
- data/lib/phrase/models/webhook.rb +250 -0
- data/lib/phrase/models/webhook_create_parameters.rb +225 -0
- data/lib/phrase/models/webhook_update_parameters.rb +225 -0
- data/lib/phrase/response.rb +41 -0
- data/lib/phrase/version.rb +1 -1
- data/phrase.gemspec +27 -27
- data/spec/api/accounts_api_spec.rb +50 -0
- data/spec/api/authorizations_api_spec.rb +90 -0
- data/spec/api/bitbucket_sync_api_spec.rb +64 -0
- data/spec/api/blacklisted_keys_api_spec.rb +96 -0
- data/spec/api/branches_api_spec.rb +124 -0
- data/spec/api/comments_api_spec.rb +151 -0
- data/spec/api/distributions_api_spec.rb +95 -0
- data/spec/api/documents_api_spec.rb +52 -0
- data/spec/api/formats_api_spec.rb +35 -0
- data/spec/api/git_hub_sync_api_spec.rb +49 -0
- data/spec/api/git_lab_sync_api_spec.rb +125 -0
- data/spec/api/glossaries_api_spec.rb +95 -0
- data/spec/api/glossary_term_translations_api_spec.rb +72 -0
- data/spec/api/glossary_terms_api_spec.rb +100 -0
- data/spec/api/invitations_api_spec.rb +109 -0
- data/spec/api/job_locales_api_spec.rb +135 -0
- data/spec/api/jobs_api_spec.rb +177 -0
- data/spec/api/keys_api_spec.rb +162 -0
- data/spec/api/locales_api_spec.rb +126 -0
- data/spec/api/members_api_spec.rb +81 -0
- data/spec/api/orders_api_spec.rb +98 -0
- data/spec/api/projects_api_spec.rb +90 -0
- data/spec/api/releases_api_spec.rb +115 -0
- data/spec/api/screenshot_markers_api_spec.rb +98 -0
- data/spec/api/screenshots_api_spec.rb +95 -0
- data/spec/api/spaces_api_spec.rb +141 -0
- data/spec/api/style_guides_api_spec.rb +95 -0
- data/spec/api/tags_api_spec.rb +83 -0
- data/spec/api/teams_api_spec.rb +185 -0
- data/spec/api/translations_api_spec.rb +287 -0
- data/spec/api/uploads_api_spec.rb +82 -0
- data/spec/api/users_api_spec.rb +35 -0
- data/spec/api/versions_history_api_spec.rb +56 -0
- data/spec/api/webhooks_api_spec.rb +109 -0
- data/spec/api_client_spec.rb +214 -0
- data/spec/configuration_spec.rb +30 -0
- data/spec/models/account_details1_spec.rb +29 -0
- data/spec/models/account_details_spec.rb +59 -0
- data/spec/models/account_spec.rb +59 -0
- data/spec/models/affected_count_spec.rb +29 -0
- data/spec/models/affected_resources_spec.rb +29 -0
- data/spec/models/authorization_create_parameters_spec.rb +41 -0
- data/spec/models/authorization_spec.rb +71 -0
- data/spec/models/authorization_update_parameters_spec.rb +41 -0
- data/spec/models/authorization_with_token1_spec.rb +29 -0
- data/spec/models/authorization_with_token_spec.rb +77 -0
- data/spec/models/bitbucket_sync_export_parameters_spec.rb +29 -0
- data/spec/models/bitbucket_sync_export_response_spec.rb +29 -0
- data/spec/models/bitbucket_sync_import_parameters_spec.rb +29 -0
- data/spec/models/bitbucket_sync_spec.rb +59 -0
- data/spec/models/blacklisted_key_create_parameters_spec.rb +29 -0
- data/spec/models/blacklisted_key_spec.rb +47 -0
- data/spec/models/blacklisted_key_update_parameters_spec.rb +29 -0
- data/spec/models/branch_create_parameters_spec.rb +29 -0
- data/spec/models/branch_merge_parameters_spec.rb +29 -0
- data/spec/models/branch_spec.rb +65 -0
- data/spec/models/branch_update_parameters_spec.rb +29 -0
- data/spec/models/comment_create_parameters_spec.rb +35 -0
- data/spec/models/comment_mark_read_parameters_spec.rb +29 -0
- data/spec/models/comment_spec.rb +53 -0
- data/spec/models/comment_update_parameters_spec.rb +35 -0
- data/spec/models/distribution_create_parameters_spec.rb +65 -0
- data/spec/models/distribution_preview_spec.rb +65 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/distribution_update_parameters_spec.rb +65 -0
- data/spec/models/document_spec.rb +47 -0
- data/spec/models/format_spec.rb +83 -0
- data/spec/models/github_sync_export_parameters_spec.rb +29 -0
- data/spec/models/github_sync_import_parameters_spec.rb +29 -0
- data/spec/models/gitlab_sync_export_parameters_spec.rb +29 -0
- data/spec/models/gitlab_sync_export_spec.rb +35 -0
- data/spec/models/gitlab_sync_history_spec.rb +53 -0
- data/spec/models/gitlab_sync_import_parameters_spec.rb +29 -0
- data/spec/models/gitlab_sync_spec.rb +89 -0
- data/spec/models/glossary_create_parameters_spec.rb +41 -0
- data/spec/models/glossary_spec.rb +53 -0
- data/spec/models/glossary_term_create_parameters_spec.rb +47 -0
- data/spec/models/glossary_term_spec.rb +71 -0
- data/spec/models/glossary_term_translation_create_parameters_spec.rb +35 -0
- data/spec/models/glossary_term_translation_spec.rb +53 -0
- data/spec/models/glossary_term_translation_update_parameters_spec.rb +35 -0
- data/spec/models/glossary_term_update_parameters_spec.rb +47 -0
- data/spec/models/glossary_update_parameters_spec.rb +41 -0
- data/spec/models/inline_response422_errors_spec.rb +41 -0
- data/spec/models/inline_response422_spec.rb +35 -0
- data/spec/models/invitation_create_parameters_spec.rb +53 -0
- data/spec/models/invitation_spec.rb +83 -0
- data/spec/models/invitation_update_parameters_spec.rb +47 -0
- data/spec/models/job_complete_parameters_spec.rb +29 -0
- data/spec/models/job_create_parameters_spec.rb +59 -0
- data/spec/models/job_details1_spec.rb +47 -0
- data/spec/models/job_details_spec.rb +89 -0
- data/spec/models/job_keys_create_parameters_spec.rb +35 -0
- data/spec/models/job_locale_complete_parameters_spec.rb +29 -0
- data/spec/models/job_locale_reopen_parameters_spec.rb +29 -0
- data/spec/models/job_locale_spec.rb +47 -0
- data/spec/models/job_locale_update_parameters_spec.rb +41 -0
- data/spec/models/job_locales_create_parameters_spec.rb +41 -0
- data/spec/models/job_preview_spec.rb +41 -0
- data/spec/models/job_reopen_parameters_spec.rb +29 -0
- data/spec/models/job_spec.rb +65 -0
- data/spec/models/job_start_parameters_spec.rb +29 -0
- data/spec/models/job_update_parameters_spec.rb +47 -0
- data/spec/models/key_create_parameters_spec.rb +113 -0
- data/spec/models/key_preview_spec.rb +41 -0
- data/spec/models/key_update_parameters_spec.rb +113 -0
- data/spec/models/keys_search_parameters_spec.rb +53 -0
- data/spec/models/keys_tag_parameters_spec.rb +47 -0
- data/spec/models/keys_untag_parameters_spec.rb +47 -0
- data/spec/models/locale_create_parameters_spec.rb +83 -0
- data/spec/models/locale_details1_spec.rb +29 -0
- data/spec/models/locale_details_spec.rb +89 -0
- data/spec/models/locale_preview_spec.rb +41 -0
- data/spec/models/locale_spec.rb +83 -0
- data/spec/models/locale_statistics_spec.rb +65 -0
- data/spec/models/locale_update_parameters_spec.rb +83 -0
- data/spec/models/member_spec.rb +53 -0
- data/spec/models/member_update_parameters_spec.rb +47 -0
- data/spec/models/order_confirm_parameters_spec.rb +29 -0
- data/spec/models/order_create_parameters_spec.rb +107 -0
- data/spec/models/project_create_parameters_spec.rb +65 -0
- data/spec/models/project_details1_spec.rb +35 -0
- data/spec/models/project_details_spec.rb +77 -0
- data/spec/models/project_locales1_spec.rb +29 -0
- data/spec/models/project_locales_spec.rb +59 -0
- data/spec/models/project_short_spec.rb +53 -0
- data/spec/models/project_spec.rb +71 -0
- data/spec/models/project_update_parameters_spec.rb +59 -0
- data/spec/models/release_create_parameters_spec.rb +41 -0
- data/spec/models/release_preview_spec.rb +89 -0
- data/spec/models/release_spec.rb +89 -0
- data/spec/models/release_update_parameters_spec.rb +41 -0
- data/spec/models/screenshot_create_parameters_spec.rb +41 -0
- data/spec/models/screenshot_marker_create_parameters_spec.rb +35 -0
- data/spec/models/screenshot_marker_spec.rb +59 -0
- data/spec/models/screenshot_marker_update_parameters_spec.rb +35 -0
- data/spec/models/screenshot_spec.rb +65 -0
- data/spec/models/screenshot_update_parameters_spec.rb +41 -0
- data/spec/models/space_create_parameters_spec.rb +29 -0
- data/spec/models/space_spec.rb +59 -0
- data/spec/models/space_update_parameters_spec.rb +29 -0
- data/spec/models/spaces_projects_create_parameters_spec.rb +29 -0
- data/spec/models/styleguide_create_parameters_spec.rb +101 -0
- data/spec/models/styleguide_details1_spec.rb +101 -0
- data/spec/models/styleguide_details_spec.rb +125 -0
- data/spec/models/styleguide_preview_spec.rb +35 -0
- data/spec/models/styleguide_spec.rb +47 -0
- data/spec/models/styleguide_update_parameters_spec.rb +101 -0
- data/spec/models/tag_create_parameters_spec.rb +35 -0
- data/spec/models/tag_spec.rb +47 -0
- data/spec/models/tag_with_stats1_spec.rb +29 -0
- data/spec/models/tag_with_stats1_statistics1_spec.rb +35 -0
- data/spec/models/tag_with_stats1_statistics_spec.rb +47 -0
- data/spec/models/tag_with_stats_spec.rb +53 -0
- data/spec/models/team_create_parameters_spec.rb +29 -0
- data/spec/models/team_detail_spec.rb +65 -0
- data/spec/models/team_spec.rb +65 -0
- data/spec/models/team_update_parameters_spec.rb +29 -0
- data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
- data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
- data/spec/models/teams_users_create_parameters_spec.rb +29 -0
- data/spec/models/translation_create_parameters_spec.rb +71 -0
- data/spec/models/translation_details1_spec.rb +35 -0
- data/spec/models/translation_details_spec.rb +101 -0
- data/spec/models/translation_exclude_parameters_spec.rb +29 -0
- data/spec/models/translation_include_parameters_spec.rb +29 -0
- data/spec/models/translation_key_details1_spec.rb +77 -0
- data/spec/models/translation_key_details_spec.rb +131 -0
- data/spec/models/translation_key_spec.rb +77 -0
- data/spec/models/translation_order_spec.rb +125 -0
- data/spec/models/translation_review_parameters_spec.rb +29 -0
- data/spec/models/translation_spec.rb +89 -0
- data/spec/models/translation_unverify_parameters_spec.rb +29 -0
- data/spec/models/translation_update_parameters_spec.rb +59 -0
- data/spec/models/translation_verify_parameters_spec.rb +29 -0
- data/spec/models/translation_version_spec.rb +71 -0
- data/spec/models/translation_version_with_user1_spec.rb +29 -0
- data/spec/models/translation_version_with_user_spec.rb +77 -0
- data/spec/models/translations_exclude_parameters_spec.rb +47 -0
- data/spec/models/translations_include_parameters_spec.rb +47 -0
- data/spec/models/translations_review_parameters_spec.rb +35 -0
- data/spec/models/translations_search_parameters_spec.rb +47 -0
- data/spec/models/translations_unverify_parameters_spec.rb +47 -0
- data/spec/models/translations_verify_parameters_spec.rb +47 -0
- data/spec/models/upload_create_parameters_spec.rb +113 -0
- data/spec/models/upload_spec.rb +71 -0
- data/spec/models/upload_summary_spec.rb +71 -0
- data/spec/models/user_preview_spec.rb +41 -0
- data/spec/models/user_spec.rb +65 -0
- data/spec/models/webhook_create_parameters_spec.rb +47 -0
- data/spec/models/webhook_spec.rb +65 -0
- data/spec/models/webhook_update_parameters_spec.rb +47 -0
- data/spec/spec_helper.rb +99 -0
- metadata +819 -188
- data/.gitignore +0 -25
- data/.travis.yml +0 -4
- data/Guardfile +0 -29
- data/bin/phrase +0 -8
- data/cacert.pem +0 -3366
- data/lib/ext/all.rb +0 -5
- data/lib/ext/hash.rb +0 -8
- data/lib/ext/object.rb +0 -130
- data/lib/ext/try.rb +0 -57
- data/lib/generators/phrase/install_generator.rb +0 -37
- data/lib/generators/templates/README +0 -11
- data/lib/generators/templates/phrase.rb +0 -21
- data/lib/phrase/adapters/fast_gettext.rb +0 -25
- data/lib/phrase/adapters/i18n.rb +0 -12
- data/lib/phrase/api.rb +0 -7
- data/lib/phrase/api/client.rb +0 -308
- data/lib/phrase/api/client/http.rb +0 -56
- data/lib/phrase/api/config.rb +0 -34
- data/lib/phrase/api/exceptions.rb +0 -9
- data/lib/phrase/api/query_params.rb +0 -22
- data/lib/phrase/backend.rb +0 -7
- data/lib/phrase/backend/base.rb +0 -6
- data/lib/phrase/backend/phrase_service.rb +0 -163
- data/lib/phrase/cache.rb +0 -34
- data/lib/phrase/config.rb +0 -94
- data/lib/phrase/delegate.rb +0 -36
- data/lib/phrase/delegate/fast_gettext.rb +0 -27
- data/lib/phrase/delegate/i18n.rb +0 -166
- data/lib/phrase/engine.rb +0 -14
- data/lib/phrase/formats.rb +0 -172
- data/lib/phrase/formats/angular_translate.rb +0 -19
- data/lib/phrase/formats/csv.rb +0 -19
- data/lib/phrase/formats/custom.rb +0 -40
- data/lib/phrase/formats/gettext.rb +0 -27
- data/lib/phrase/formats/gettext_template.rb +0 -19
- data/lib/phrase/formats/ini.rb +0 -19
- data/lib/phrase/formats/json.rb +0 -19
- data/lib/phrase/formats/laravel.rb +0 -19
- data/lib/phrase/formats/mozilla_properties.rb +0 -8
- data/lib/phrase/formats/nested_json.rb +0 -19
- data/lib/phrase/formats/node_json.rb +0 -23
- data/lib/phrase/formats/php_array.rb +0 -19
- data/lib/phrase/formats/play_properties.rb +0 -15
- data/lib/phrase/formats/plist.rb +0 -19
- data/lib/phrase/formats/properties.rb +0 -19
- data/lib/phrase/formats/properties_xml.rb +0 -19
- data/lib/phrase/formats/qt_phrase_book.rb +0 -19
- data/lib/phrase/formats/qt_translation_source.rb +0 -19
- data/lib/phrase/formats/resx.rb +0 -19
- data/lib/phrase/formats/resx_windowsphone.rb +0 -19
- data/lib/phrase/formats/simple_json.rb +0 -19
- data/lib/phrase/formats/strings.rb +0 -45
- data/lib/phrase/formats/tmx.rb +0 -19
- data/lib/phrase/formats/windows8_resource.rb +0 -19
- data/lib/phrase/formats/xliff.rb +0 -19
- data/lib/phrase/formats/xml.rb +0 -49
- data/lib/phrase/formats/yaml.rb +0 -19
- data/lib/phrase/formats/yaml_symfony.rb +0 -19
- data/lib/phrase/formats/yaml_symfony2.rb +0 -8
- data/lib/phrase/hash_flattener.rb +0 -21
- data/lib/phrase/tool.rb +0 -46
- data/lib/phrase/tool/commands.rb +0 -56
- data/lib/phrase/tool/commands/base.rb +0 -73
- data/lib/phrase/tool/commands/init.rb +0 -51
- data/lib/phrase/tool/commands/pull.rb +0 -109
- data/lib/phrase/tool/commands/push.rb +0 -163
- data/lib/phrase/tool/commands/show_help.rb +0 -26
- data/lib/phrase/tool/commands/show_version.rb +0 -17
- data/lib/phrase/tool/commands/tags.rb +0 -29
- data/lib/phrase/tool/config.rb +0 -120
- data/lib/phrase/tool/encoding_detector.rb +0 -17
- data/lib/phrase/tool/locale.rb +0 -41
- data/lib/phrase/tool/options.rb +0 -32
- data/lib/phrase/tool/options_factory.rb +0 -150
- data/lib/phrase/tool/tag_validator.rb +0 -9
- data/lib/phrase/view_helpers.rb +0 -19
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phrase::TranslationVerifyParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'Phrase'
|
|
13
|
+
|
|
14
|
+
instance = Phrase::TranslationVerifyParameters.new(branch: my-feature-branch)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Phrase::TranslationVersion
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | | [optional]
|
|
8
|
+
**content** | **String** | | [optional]
|
|
9
|
+
**plural_suffix** | **String** | | [optional]
|
|
10
|
+
**key** | [**KeyPreview**](KeyPreview.md) | | [optional]
|
|
11
|
+
**locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
|
12
|
+
**created_at** | **DateTime** | | [optional]
|
|
13
|
+
**updated_at** | **DateTime** | | [optional]
|
|
14
|
+
**changed_at** | **DateTime** | | [optional]
|
|
15
|
+
|
|
16
|
+
## Code Sample
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'Phrase'
|
|
20
|
+
|
|
21
|
+
instance = Phrase::TranslationVersion.new(id: null,
|
|
22
|
+
content: null,
|
|
23
|
+
plural_suffix: null,
|
|
24
|
+
key: null,
|
|
25
|
+
locale: null,
|
|
26
|
+
created_at: null,
|
|
27
|
+
updated_at: null,
|
|
28
|
+
changed_at: null)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Phrase::TranslationVersionWithUser
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | | [optional]
|
|
8
|
+
**content** | **String** | | [optional]
|
|
9
|
+
**plural_suffix** | **String** | | [optional]
|
|
10
|
+
**key** | [**KeyPreview**](KeyPreview.md) | | [optional]
|
|
11
|
+
**locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
|
|
12
|
+
**created_at** | **DateTime** | | [optional]
|
|
13
|
+
**updated_at** | **DateTime** | | [optional]
|
|
14
|
+
**changed_at** | **DateTime** | | [optional]
|
|
15
|
+
**user** | [**UserPreview**](UserPreview.md) | | [optional]
|
|
16
|
+
|
|
17
|
+
## Code Sample
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'Phrase'
|
|
21
|
+
|
|
22
|
+
instance = Phrase::TranslationVersionWithUser.new(id: null,
|
|
23
|
+
content: null,
|
|
24
|
+
plural_suffix: null,
|
|
25
|
+
key: null,
|
|
26
|
+
locale: null,
|
|
27
|
+
created_at: null,
|
|
28
|
+
updated_at: null,
|
|
29
|
+
changed_at: null,
|
|
30
|
+
user: null)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phrase::TranslationVersionWithUser1
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**user** | [**UserPreview**](UserPreview.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'Phrase'
|
|
13
|
+
|
|
14
|
+
instance = Phrase::TranslationVersionWithUser1.new(user: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,1148 @@
|
|
|
1
|
+
# Phrase::TranslationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**translation_create**](TranslationsApi.md#translation_create) | **POST** /projects/{project_id}/translations | Create a translation
|
|
8
|
+
[**translation_exclude**](TranslationsApi.md#translation_exclude) | **PATCH** /projects/{project_id}/translations/{id}/exclude | Exclude a translation from export
|
|
9
|
+
[**translation_include**](TranslationsApi.md#translation_include) | **PATCH** /projects/{project_id}/translations/{id}/include | Revoke exclusion of a translation in export
|
|
10
|
+
[**translation_review**](TranslationsApi.md#translation_review) | **PATCH** /projects/{project_id}/translations/{id}/review | Review a translation
|
|
11
|
+
[**translation_show**](TranslationsApi.md#translation_show) | **GET** /projects/{project_id}/translations/{id} | Get a single translation
|
|
12
|
+
[**translation_unverify**](TranslationsApi.md#translation_unverify) | **PATCH** /projects/{project_id}/translations/{id}/unverify | Mark a translation as unverified
|
|
13
|
+
[**translation_update**](TranslationsApi.md#translation_update) | **PATCH** /projects/{project_id}/translations/{id} | Update a translation
|
|
14
|
+
[**translation_verify**](TranslationsApi.md#translation_verify) | **PATCH** /projects/{project_id}/translations/{id}/verify | Verify a translation
|
|
15
|
+
[**translations_by_key**](TranslationsApi.md#translations_by_key) | **GET** /projects/{project_id}/keys/{key_id}/translations | List translations by key
|
|
16
|
+
[**translations_by_locale**](TranslationsApi.md#translations_by_locale) | **GET** /projects/{project_id}/locales/{locale_id}/translations | List translations by locale
|
|
17
|
+
[**translations_exclude**](TranslationsApi.md#translations_exclude) | **PATCH** /projects/{project_id}/translations/exclude | Set exclude from export flag on translations selected by query
|
|
18
|
+
[**translations_include**](TranslationsApi.md#translations_include) | **PATCH** /projects/{project_id}/translations/include | Remove exlude from import flag from translations selected by query
|
|
19
|
+
[**translations_list**](TranslationsApi.md#translations_list) | **GET** /projects/{project_id}/translations | List all translations
|
|
20
|
+
[**translations_review**](TranslationsApi.md#translations_review) | **PATCH** /projects/{project_id}/translations/review | Review translations selected by query
|
|
21
|
+
[**translations_search**](TranslationsApi.md#translations_search) | **POST** /projects/{project_id}/translations/search | Search translations
|
|
22
|
+
[**translations_unverify**](TranslationsApi.md#translations_unverify) | **PATCH** /projects/{project_id}/translations/unverify | Mark translations selected by query as unverified
|
|
23
|
+
[**translations_verify**](TranslationsApi.md#translations_verify) | **PATCH** /projects/{project_id}/translations/verify | Verify translations selected by query
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## translation_create
|
|
28
|
+
|
|
29
|
+
> TranslationDetails translation_create(project_id, translation_create_parameters, opts)
|
|
30
|
+
|
|
31
|
+
Create a translation
|
|
32
|
+
|
|
33
|
+
Create a translation.
|
|
34
|
+
|
|
35
|
+
### Example
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
# load the gem
|
|
39
|
+
require 'phrase'
|
|
40
|
+
# setup authorization
|
|
41
|
+
Phrase.configure do |config|
|
|
42
|
+
# Configure HTTP basic authorization: Basic
|
|
43
|
+
config.username = 'YOUR USERNAME'
|
|
44
|
+
config.password = 'YOUR PASSWORD'
|
|
45
|
+
|
|
46
|
+
# Configure API key authorization: Token
|
|
47
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
48
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
api_instance = Phrase::TranslationsApi.new
|
|
52
|
+
project_id = 'project_id_example' # String | Project ID
|
|
53
|
+
translation_create_parameters = Phrase::TranslationCreateParameters.new # TranslationCreateParameters |
|
|
54
|
+
opts = {
|
|
55
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
begin
|
|
59
|
+
#Create a translation
|
|
60
|
+
result = api_instance.translation_create(project_id, translation_create_parameters, opts)
|
|
61
|
+
pp result
|
|
62
|
+
rescue Phrase::ApiError => e
|
|
63
|
+
puts "Exception when calling TranslationsApi->translation_create: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
Name | Type | Description | Notes
|
|
71
|
+
------------- | ------------- | ------------- | -------------
|
|
72
|
+
**project_id** | **String**| Project ID |
|
|
73
|
+
**translation_create_parameters** | [**TranslationCreateParameters**](TranslationCreateParameters.md)| |
|
|
74
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: application/json
|
|
87
|
+
- **Accept**: application/json
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## translation_exclude
|
|
91
|
+
|
|
92
|
+
> TranslationDetails translation_exclude(project_id, id, translation_exclude_parameters, opts)
|
|
93
|
+
|
|
94
|
+
Exclude a translation from export
|
|
95
|
+
|
|
96
|
+
Set exclude from export flag on an existing translation.
|
|
97
|
+
|
|
98
|
+
### Example
|
|
99
|
+
|
|
100
|
+
```ruby
|
|
101
|
+
# load the gem
|
|
102
|
+
require 'phrase'
|
|
103
|
+
# setup authorization
|
|
104
|
+
Phrase.configure do |config|
|
|
105
|
+
# Configure HTTP basic authorization: Basic
|
|
106
|
+
config.username = 'YOUR USERNAME'
|
|
107
|
+
config.password = 'YOUR PASSWORD'
|
|
108
|
+
|
|
109
|
+
# Configure API key authorization: Token
|
|
110
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
111
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
api_instance = Phrase::TranslationsApi.new
|
|
115
|
+
project_id = 'project_id_example' # String | Project ID
|
|
116
|
+
id = 'id_example' # String | ID
|
|
117
|
+
translation_exclude_parameters = Phrase::TranslationExcludeParameters.new # TranslationExcludeParameters |
|
|
118
|
+
opts = {
|
|
119
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
begin
|
|
123
|
+
#Exclude a translation from export
|
|
124
|
+
result = api_instance.translation_exclude(project_id, id, translation_exclude_parameters, opts)
|
|
125
|
+
pp result
|
|
126
|
+
rescue Phrase::ApiError => e
|
|
127
|
+
puts "Exception when calling TranslationsApi->translation_exclude: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
Name | Type | Description | Notes
|
|
135
|
+
------------- | ------------- | ------------- | -------------
|
|
136
|
+
**project_id** | **String**| Project ID |
|
|
137
|
+
**id** | **String**| ID |
|
|
138
|
+
**translation_exclude_parameters** | [**TranslationExcludeParameters**](TranslationExcludeParameters.md)| |
|
|
139
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
140
|
+
|
|
141
|
+
### Return type
|
|
142
|
+
|
|
143
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
144
|
+
|
|
145
|
+
### Authorization
|
|
146
|
+
|
|
147
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
148
|
+
|
|
149
|
+
### HTTP request headers
|
|
150
|
+
|
|
151
|
+
- **Content-Type**: application/json
|
|
152
|
+
- **Accept**: application/json
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## translation_include
|
|
156
|
+
|
|
157
|
+
> TranslationDetails translation_include(project_id, id, translation_include_parameters, opts)
|
|
158
|
+
|
|
159
|
+
Revoke exclusion of a translation in export
|
|
160
|
+
|
|
161
|
+
Remove exclude from export flag from an existing translation.
|
|
162
|
+
|
|
163
|
+
### Example
|
|
164
|
+
|
|
165
|
+
```ruby
|
|
166
|
+
# load the gem
|
|
167
|
+
require 'phrase'
|
|
168
|
+
# setup authorization
|
|
169
|
+
Phrase.configure do |config|
|
|
170
|
+
# Configure HTTP basic authorization: Basic
|
|
171
|
+
config.username = 'YOUR USERNAME'
|
|
172
|
+
config.password = 'YOUR PASSWORD'
|
|
173
|
+
|
|
174
|
+
# Configure API key authorization: Token
|
|
175
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
176
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
api_instance = Phrase::TranslationsApi.new
|
|
180
|
+
project_id = 'project_id_example' # String | Project ID
|
|
181
|
+
id = 'id_example' # String | ID
|
|
182
|
+
translation_include_parameters = Phrase::TranslationIncludeParameters.new # TranslationIncludeParameters |
|
|
183
|
+
opts = {
|
|
184
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
begin
|
|
188
|
+
#Revoke exclusion of a translation in export
|
|
189
|
+
result = api_instance.translation_include(project_id, id, translation_include_parameters, opts)
|
|
190
|
+
pp result
|
|
191
|
+
rescue Phrase::ApiError => e
|
|
192
|
+
puts "Exception when calling TranslationsApi->translation_include: #{e}"
|
|
193
|
+
end
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
Name | Type | Description | Notes
|
|
200
|
+
------------- | ------------- | ------------- | -------------
|
|
201
|
+
**project_id** | **String**| Project ID |
|
|
202
|
+
**id** | **String**| ID |
|
|
203
|
+
**translation_include_parameters** | [**TranslationIncludeParameters**](TranslationIncludeParameters.md)| |
|
|
204
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: application/json
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## translation_review
|
|
221
|
+
|
|
222
|
+
> TranslationDetails translation_review(project_id, id, translation_review_parameters, opts)
|
|
223
|
+
|
|
224
|
+
Review a translation
|
|
225
|
+
|
|
226
|
+
Mark an existing translation as reviewed.
|
|
227
|
+
|
|
228
|
+
### Example
|
|
229
|
+
|
|
230
|
+
```ruby
|
|
231
|
+
# load the gem
|
|
232
|
+
require 'phrase'
|
|
233
|
+
# setup authorization
|
|
234
|
+
Phrase.configure do |config|
|
|
235
|
+
# Configure HTTP basic authorization: Basic
|
|
236
|
+
config.username = 'YOUR USERNAME'
|
|
237
|
+
config.password = 'YOUR PASSWORD'
|
|
238
|
+
|
|
239
|
+
# Configure API key authorization: Token
|
|
240
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
241
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
api_instance = Phrase::TranslationsApi.new
|
|
245
|
+
project_id = 'project_id_example' # String | Project ID
|
|
246
|
+
id = 'id_example' # String | ID
|
|
247
|
+
translation_review_parameters = Phrase::TranslationReviewParameters.new # TranslationReviewParameters |
|
|
248
|
+
opts = {
|
|
249
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
begin
|
|
253
|
+
#Review a translation
|
|
254
|
+
result = api_instance.translation_review(project_id, id, translation_review_parameters, opts)
|
|
255
|
+
pp result
|
|
256
|
+
rescue Phrase::ApiError => e
|
|
257
|
+
puts "Exception when calling TranslationsApi->translation_review: #{e}"
|
|
258
|
+
end
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Parameters
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
Name | Type | Description | Notes
|
|
265
|
+
------------- | ------------- | ------------- | -------------
|
|
266
|
+
**project_id** | **String**| Project ID |
|
|
267
|
+
**id** | **String**| ID |
|
|
268
|
+
**translation_review_parameters** | [**TranslationReviewParameters**](TranslationReviewParameters.md)| |
|
|
269
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: application/json
|
|
282
|
+
- **Accept**: application/json
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## translation_show
|
|
286
|
+
|
|
287
|
+
> TranslationDetails translation_show(project_id, id, opts)
|
|
288
|
+
|
|
289
|
+
Get a single translation
|
|
290
|
+
|
|
291
|
+
Get details on a single translation.
|
|
292
|
+
|
|
293
|
+
### Example
|
|
294
|
+
|
|
295
|
+
```ruby
|
|
296
|
+
# load the gem
|
|
297
|
+
require 'phrase'
|
|
298
|
+
# setup authorization
|
|
299
|
+
Phrase.configure do |config|
|
|
300
|
+
# Configure HTTP basic authorization: Basic
|
|
301
|
+
config.username = 'YOUR USERNAME'
|
|
302
|
+
config.password = 'YOUR PASSWORD'
|
|
303
|
+
|
|
304
|
+
# Configure API key authorization: Token
|
|
305
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
306
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
api_instance = Phrase::TranslationsApi.new
|
|
310
|
+
project_id = 'project_id_example' # String | Project ID
|
|
311
|
+
id = 'id_example' # String | ID
|
|
312
|
+
opts = {
|
|
313
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
314
|
+
branch: 'my-feature-branch' # String | specify the branch to use
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
begin
|
|
318
|
+
#Get a single translation
|
|
319
|
+
result = api_instance.translation_show(project_id, id, opts)
|
|
320
|
+
pp result
|
|
321
|
+
rescue Phrase::ApiError => e
|
|
322
|
+
puts "Exception when calling TranslationsApi->translation_show: #{e}"
|
|
323
|
+
end
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
Name | Type | Description | Notes
|
|
330
|
+
------------- | ------------- | ------------- | -------------
|
|
331
|
+
**project_id** | **String**| Project ID |
|
|
332
|
+
**id** | **String**| ID |
|
|
333
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
334
|
+
**branch** | **String**| specify the branch to use | [optional]
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
339
|
+
|
|
340
|
+
### Authorization
|
|
341
|
+
|
|
342
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
343
|
+
|
|
344
|
+
### HTTP request headers
|
|
345
|
+
|
|
346
|
+
- **Content-Type**: Not defined
|
|
347
|
+
- **Accept**: application/json
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## translation_unverify
|
|
351
|
+
|
|
352
|
+
> TranslationDetails translation_unverify(project_id, id, translation_unverify_parameters, opts)
|
|
353
|
+
|
|
354
|
+
Mark a translation as unverified
|
|
355
|
+
|
|
356
|
+
Mark an existing translation as unverified.
|
|
357
|
+
|
|
358
|
+
### Example
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
# load the gem
|
|
362
|
+
require 'phrase'
|
|
363
|
+
# setup authorization
|
|
364
|
+
Phrase.configure do |config|
|
|
365
|
+
# Configure HTTP basic authorization: Basic
|
|
366
|
+
config.username = 'YOUR USERNAME'
|
|
367
|
+
config.password = 'YOUR PASSWORD'
|
|
368
|
+
|
|
369
|
+
# Configure API key authorization: Token
|
|
370
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
371
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
api_instance = Phrase::TranslationsApi.new
|
|
375
|
+
project_id = 'project_id_example' # String | Project ID
|
|
376
|
+
id = 'id_example' # String | ID
|
|
377
|
+
translation_unverify_parameters = Phrase::TranslationUnverifyParameters.new # TranslationUnverifyParameters |
|
|
378
|
+
opts = {
|
|
379
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
begin
|
|
383
|
+
#Mark a translation as unverified
|
|
384
|
+
result = api_instance.translation_unverify(project_id, id, translation_unverify_parameters, opts)
|
|
385
|
+
pp result
|
|
386
|
+
rescue Phrase::ApiError => e
|
|
387
|
+
puts "Exception when calling TranslationsApi->translation_unverify: #{e}"
|
|
388
|
+
end
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Parameters
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
Name | Type | Description | Notes
|
|
395
|
+
------------- | ------------- | ------------- | -------------
|
|
396
|
+
**project_id** | **String**| Project ID |
|
|
397
|
+
**id** | **String**| ID |
|
|
398
|
+
**translation_unverify_parameters** | [**TranslationUnverifyParameters**](TranslationUnverifyParameters.md)| |
|
|
399
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
400
|
+
|
|
401
|
+
### Return type
|
|
402
|
+
|
|
403
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
404
|
+
|
|
405
|
+
### Authorization
|
|
406
|
+
|
|
407
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
408
|
+
|
|
409
|
+
### HTTP request headers
|
|
410
|
+
|
|
411
|
+
- **Content-Type**: application/json
|
|
412
|
+
- **Accept**: application/json
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
## translation_update
|
|
416
|
+
|
|
417
|
+
> TranslationDetails translation_update(project_id, id, translation_update_parameters, opts)
|
|
418
|
+
|
|
419
|
+
Update a translation
|
|
420
|
+
|
|
421
|
+
Update an existing translation.
|
|
422
|
+
|
|
423
|
+
### Example
|
|
424
|
+
|
|
425
|
+
```ruby
|
|
426
|
+
# load the gem
|
|
427
|
+
require 'phrase'
|
|
428
|
+
# setup authorization
|
|
429
|
+
Phrase.configure do |config|
|
|
430
|
+
# Configure HTTP basic authorization: Basic
|
|
431
|
+
config.username = 'YOUR USERNAME'
|
|
432
|
+
config.password = 'YOUR PASSWORD'
|
|
433
|
+
|
|
434
|
+
# Configure API key authorization: Token
|
|
435
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
436
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
api_instance = Phrase::TranslationsApi.new
|
|
440
|
+
project_id = 'project_id_example' # String | Project ID
|
|
441
|
+
id = 'id_example' # String | ID
|
|
442
|
+
translation_update_parameters = Phrase::TranslationUpdateParameters.new # TranslationUpdateParameters |
|
|
443
|
+
opts = {
|
|
444
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
begin
|
|
448
|
+
#Update a translation
|
|
449
|
+
result = api_instance.translation_update(project_id, id, translation_update_parameters, opts)
|
|
450
|
+
pp result
|
|
451
|
+
rescue Phrase::ApiError => e
|
|
452
|
+
puts "Exception when calling TranslationsApi->translation_update: #{e}"
|
|
453
|
+
end
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Parameters
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
Name | Type | Description | Notes
|
|
460
|
+
------------- | ------------- | ------------- | -------------
|
|
461
|
+
**project_id** | **String**| Project ID |
|
|
462
|
+
**id** | **String**| ID |
|
|
463
|
+
**translation_update_parameters** | [**TranslationUpdateParameters**](TranslationUpdateParameters.md)| |
|
|
464
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
465
|
+
|
|
466
|
+
### Return type
|
|
467
|
+
|
|
468
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
469
|
+
|
|
470
|
+
### Authorization
|
|
471
|
+
|
|
472
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
473
|
+
|
|
474
|
+
### HTTP request headers
|
|
475
|
+
|
|
476
|
+
- **Content-Type**: application/json
|
|
477
|
+
- **Accept**: application/json
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
## translation_verify
|
|
481
|
+
|
|
482
|
+
> TranslationDetails translation_verify(project_id, id, translation_verify_parameters, opts)
|
|
483
|
+
|
|
484
|
+
Verify a translation
|
|
485
|
+
|
|
486
|
+
Verify an existing translation.
|
|
487
|
+
|
|
488
|
+
### Example
|
|
489
|
+
|
|
490
|
+
```ruby
|
|
491
|
+
# load the gem
|
|
492
|
+
require 'phrase'
|
|
493
|
+
# setup authorization
|
|
494
|
+
Phrase.configure do |config|
|
|
495
|
+
# Configure HTTP basic authorization: Basic
|
|
496
|
+
config.username = 'YOUR USERNAME'
|
|
497
|
+
config.password = 'YOUR PASSWORD'
|
|
498
|
+
|
|
499
|
+
# Configure API key authorization: Token
|
|
500
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
501
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
api_instance = Phrase::TranslationsApi.new
|
|
505
|
+
project_id = 'project_id_example' # String | Project ID
|
|
506
|
+
id = 'id_example' # String | ID
|
|
507
|
+
translation_verify_parameters = Phrase::TranslationVerifyParameters.new # TranslationVerifyParameters |
|
|
508
|
+
opts = {
|
|
509
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
begin
|
|
513
|
+
#Verify a translation
|
|
514
|
+
result = api_instance.translation_verify(project_id, id, translation_verify_parameters, opts)
|
|
515
|
+
pp result
|
|
516
|
+
rescue Phrase::ApiError => e
|
|
517
|
+
puts "Exception when calling TranslationsApi->translation_verify: #{e}"
|
|
518
|
+
end
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
### Parameters
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
Name | Type | Description | Notes
|
|
525
|
+
------------- | ------------- | ------------- | -------------
|
|
526
|
+
**project_id** | **String**| Project ID |
|
|
527
|
+
**id** | **String**| ID |
|
|
528
|
+
**translation_verify_parameters** | [**TranslationVerifyParameters**](TranslationVerifyParameters.md)| |
|
|
529
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
530
|
+
|
|
531
|
+
### Return type
|
|
532
|
+
|
|
533
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
534
|
+
|
|
535
|
+
### Authorization
|
|
536
|
+
|
|
537
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
538
|
+
|
|
539
|
+
### HTTP request headers
|
|
540
|
+
|
|
541
|
+
- **Content-Type**: application/json
|
|
542
|
+
- **Accept**: application/json
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
## translations_by_key
|
|
546
|
+
|
|
547
|
+
> Array<Translation> translations_by_key(project_id, key_id, opts)
|
|
548
|
+
|
|
549
|
+
List translations by key
|
|
550
|
+
|
|
551
|
+
List translations for a specific key.
|
|
552
|
+
|
|
553
|
+
### Example
|
|
554
|
+
|
|
555
|
+
```ruby
|
|
556
|
+
# load the gem
|
|
557
|
+
require 'phrase'
|
|
558
|
+
# setup authorization
|
|
559
|
+
Phrase.configure do |config|
|
|
560
|
+
# Configure HTTP basic authorization: Basic
|
|
561
|
+
config.username = 'YOUR USERNAME'
|
|
562
|
+
config.password = 'YOUR PASSWORD'
|
|
563
|
+
|
|
564
|
+
# Configure API key authorization: Token
|
|
565
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
566
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
api_instance = Phrase::TranslationsApi.new
|
|
570
|
+
project_id = 'project_id_example' # String | Project ID
|
|
571
|
+
key_id = 'key_id_example' # String | Translation Key ID
|
|
572
|
+
opts = {
|
|
573
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
574
|
+
page: 1, # Integer | Page number
|
|
575
|
+
per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
|
|
576
|
+
branch: 'my-feature-branch', # String | specify the branch to use
|
|
577
|
+
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
578
|
+
order: 'desc', # String | Order direction. Can be one of: asc, desc.
|
|
579
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
begin
|
|
583
|
+
#List translations by key
|
|
584
|
+
result = api_instance.translations_by_key(project_id, key_id, opts)
|
|
585
|
+
pp result
|
|
586
|
+
rescue Phrase::ApiError => e
|
|
587
|
+
puts "Exception when calling TranslationsApi->translations_by_key: #{e}"
|
|
588
|
+
end
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
### Parameters
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
Name | Type | Description | Notes
|
|
595
|
+
------------- | ------------- | ------------- | -------------
|
|
596
|
+
**project_id** | **String**| Project ID |
|
|
597
|
+
**key_id** | **String**| Translation Key ID |
|
|
598
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
599
|
+
**page** | **Integer**| Page number | [optional]
|
|
600
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
|
601
|
+
**branch** | **String**| specify the branch to use | [optional]
|
|
602
|
+
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
|
603
|
+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
|
604
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. | [optional]
|
|
605
|
+
|
|
606
|
+
### Return type
|
|
607
|
+
|
|
608
|
+
Response<([**Array<Translation>**](Translation.md))>
|
|
609
|
+
|
|
610
|
+
### Authorization
|
|
611
|
+
|
|
612
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
613
|
+
|
|
614
|
+
### HTTP request headers
|
|
615
|
+
|
|
616
|
+
- **Content-Type**: Not defined
|
|
617
|
+
- **Accept**: application/json
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
## translations_by_locale
|
|
621
|
+
|
|
622
|
+
> Array<Translation> translations_by_locale(project_id, locale_id, opts)
|
|
623
|
+
|
|
624
|
+
List translations by locale
|
|
625
|
+
|
|
626
|
+
List translations for a specific locale. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
|
|
627
|
+
|
|
628
|
+
### Example
|
|
629
|
+
|
|
630
|
+
```ruby
|
|
631
|
+
# load the gem
|
|
632
|
+
require 'phrase'
|
|
633
|
+
# setup authorization
|
|
634
|
+
Phrase.configure do |config|
|
|
635
|
+
# Configure HTTP basic authorization: Basic
|
|
636
|
+
config.username = 'YOUR USERNAME'
|
|
637
|
+
config.password = 'YOUR PASSWORD'
|
|
638
|
+
|
|
639
|
+
# Configure API key authorization: Token
|
|
640
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
641
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
api_instance = Phrase::TranslationsApi.new
|
|
645
|
+
project_id = 'project_id_example' # String | Project ID
|
|
646
|
+
locale_id = 'locale_id_example' # String | Locale ID
|
|
647
|
+
opts = {
|
|
648
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
649
|
+
page: 1, # Integer | Page number
|
|
650
|
+
per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
|
|
651
|
+
branch: 'my-feature-branch', # String | specify the branch to use
|
|
652
|
+
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
653
|
+
order: 'desc', # String | Order direction. Can be one of: asc, desc.
|
|
654
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
begin
|
|
658
|
+
#List translations by locale
|
|
659
|
+
result = api_instance.translations_by_locale(project_id, locale_id, opts)
|
|
660
|
+
pp result
|
|
661
|
+
rescue Phrase::ApiError => e
|
|
662
|
+
puts "Exception when calling TranslationsApi->translations_by_locale: #{e}"
|
|
663
|
+
end
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
### Parameters
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
Name | Type | Description | Notes
|
|
670
|
+
------------- | ------------- | ------------- | -------------
|
|
671
|
+
**project_id** | **String**| Project ID |
|
|
672
|
+
**locale_id** | **String**| Locale ID |
|
|
673
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
674
|
+
**page** | **Integer**| Page number | [optional]
|
|
675
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
|
676
|
+
**branch** | **String**| specify the branch to use | [optional]
|
|
677
|
+
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
|
678
|
+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
|
679
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. | [optional]
|
|
680
|
+
|
|
681
|
+
### Return type
|
|
682
|
+
|
|
683
|
+
Response<([**Array<Translation>**](Translation.md))>
|
|
684
|
+
|
|
685
|
+
### Authorization
|
|
686
|
+
|
|
687
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
688
|
+
|
|
689
|
+
### HTTP request headers
|
|
690
|
+
|
|
691
|
+
- **Content-Type**: Not defined
|
|
692
|
+
- **Accept**: application/json
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
## translations_exclude
|
|
696
|
+
|
|
697
|
+
> AffectedCount translations_exclude(project_id, translations_exclude_parameters, opts)
|
|
698
|
+
|
|
699
|
+
Set exclude from export flag on translations selected by query
|
|
700
|
+
|
|
701
|
+
Exclude translations matching query from locale export.
|
|
702
|
+
|
|
703
|
+
### Example
|
|
704
|
+
|
|
705
|
+
```ruby
|
|
706
|
+
# load the gem
|
|
707
|
+
require 'phrase'
|
|
708
|
+
# setup authorization
|
|
709
|
+
Phrase.configure do |config|
|
|
710
|
+
# Configure HTTP basic authorization: Basic
|
|
711
|
+
config.username = 'YOUR USERNAME'
|
|
712
|
+
config.password = 'YOUR PASSWORD'
|
|
713
|
+
|
|
714
|
+
# Configure API key authorization: Token
|
|
715
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
716
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
api_instance = Phrase::TranslationsApi.new
|
|
720
|
+
project_id = 'project_id_example' # String | Project ID
|
|
721
|
+
translations_exclude_parameters = Phrase::TranslationsExcludeParameters.new # TranslationsExcludeParameters |
|
|
722
|
+
opts = {
|
|
723
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
begin
|
|
727
|
+
#Set exclude from export flag on translations selected by query
|
|
728
|
+
result = api_instance.translations_exclude(project_id, translations_exclude_parameters, opts)
|
|
729
|
+
pp result
|
|
730
|
+
rescue Phrase::ApiError => e
|
|
731
|
+
puts "Exception when calling TranslationsApi->translations_exclude: #{e}"
|
|
732
|
+
end
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
### Parameters
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
Name | Type | Description | Notes
|
|
739
|
+
------------- | ------------- | ------------- | -------------
|
|
740
|
+
**project_id** | **String**| Project ID |
|
|
741
|
+
**translations_exclude_parameters** | [**TranslationsExcludeParameters**](TranslationsExcludeParameters.md)| |
|
|
742
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
743
|
+
|
|
744
|
+
### Return type
|
|
745
|
+
|
|
746
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
|
747
|
+
|
|
748
|
+
### Authorization
|
|
749
|
+
|
|
750
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
751
|
+
|
|
752
|
+
### HTTP request headers
|
|
753
|
+
|
|
754
|
+
- **Content-Type**: application/json
|
|
755
|
+
- **Accept**: application/json
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
## translations_include
|
|
759
|
+
|
|
760
|
+
> AffectedCount translations_include(project_id, translations_include_parameters, opts)
|
|
761
|
+
|
|
762
|
+
Remove exlude from import flag from translations selected by query
|
|
763
|
+
|
|
764
|
+
Include translations matching query in locale export.
|
|
765
|
+
|
|
766
|
+
### Example
|
|
767
|
+
|
|
768
|
+
```ruby
|
|
769
|
+
# load the gem
|
|
770
|
+
require 'phrase'
|
|
771
|
+
# setup authorization
|
|
772
|
+
Phrase.configure do |config|
|
|
773
|
+
# Configure HTTP basic authorization: Basic
|
|
774
|
+
config.username = 'YOUR USERNAME'
|
|
775
|
+
config.password = 'YOUR PASSWORD'
|
|
776
|
+
|
|
777
|
+
# Configure API key authorization: Token
|
|
778
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
779
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
api_instance = Phrase::TranslationsApi.new
|
|
783
|
+
project_id = 'project_id_example' # String | Project ID
|
|
784
|
+
translations_include_parameters = Phrase::TranslationsIncludeParameters.new # TranslationsIncludeParameters |
|
|
785
|
+
opts = {
|
|
786
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
begin
|
|
790
|
+
#Remove exlude from import flag from translations selected by query
|
|
791
|
+
result = api_instance.translations_include(project_id, translations_include_parameters, opts)
|
|
792
|
+
pp result
|
|
793
|
+
rescue Phrase::ApiError => e
|
|
794
|
+
puts "Exception when calling TranslationsApi->translations_include: #{e}"
|
|
795
|
+
end
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
### Parameters
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
Name | Type | Description | Notes
|
|
802
|
+
------------- | ------------- | ------------- | -------------
|
|
803
|
+
**project_id** | **String**| Project ID |
|
|
804
|
+
**translations_include_parameters** | [**TranslationsIncludeParameters**](TranslationsIncludeParameters.md)| |
|
|
805
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
806
|
+
|
|
807
|
+
### Return type
|
|
808
|
+
|
|
809
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
|
810
|
+
|
|
811
|
+
### Authorization
|
|
812
|
+
|
|
813
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
814
|
+
|
|
815
|
+
### HTTP request headers
|
|
816
|
+
|
|
817
|
+
- **Content-Type**: application/json
|
|
818
|
+
- **Accept**: application/json
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
## translations_list
|
|
822
|
+
|
|
823
|
+
> Array<Translation> translations_list(project_id, opts)
|
|
824
|
+
|
|
825
|
+
List all translations
|
|
826
|
+
|
|
827
|
+
List translations for the given project. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
|
|
828
|
+
|
|
829
|
+
### Example
|
|
830
|
+
|
|
831
|
+
```ruby
|
|
832
|
+
# load the gem
|
|
833
|
+
require 'phrase'
|
|
834
|
+
# setup authorization
|
|
835
|
+
Phrase.configure do |config|
|
|
836
|
+
# Configure HTTP basic authorization: Basic
|
|
837
|
+
config.username = 'YOUR USERNAME'
|
|
838
|
+
config.password = 'YOUR PASSWORD'
|
|
839
|
+
|
|
840
|
+
# Configure API key authorization: Token
|
|
841
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
842
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
api_instance = Phrase::TranslationsApi.new
|
|
846
|
+
project_id = 'project_id_example' # String | Project ID
|
|
847
|
+
opts = {
|
|
848
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
849
|
+
page: 1, # Integer | Page number
|
|
850
|
+
per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
|
|
851
|
+
branch: 'my-feature-branch', # String | specify the branch to use
|
|
852
|
+
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
853
|
+
order: 'desc', # String | Order direction. Can be one of: asc, desc.
|
|
854
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
begin
|
|
858
|
+
#List all translations
|
|
859
|
+
result = api_instance.translations_list(project_id, opts)
|
|
860
|
+
pp result
|
|
861
|
+
rescue Phrase::ApiError => e
|
|
862
|
+
puts "Exception when calling TranslationsApi->translations_list: #{e}"
|
|
863
|
+
end
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
### Parameters
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
Name | Type | Description | Notes
|
|
870
|
+
------------- | ------------- | ------------- | -------------
|
|
871
|
+
**project_id** | **String**| Project ID |
|
|
872
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
873
|
+
**page** | **Integer**| Page number | [optional]
|
|
874
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
|
875
|
+
**branch** | **String**| specify the branch to use | [optional]
|
|
876
|
+
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
|
877
|
+
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
|
878
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. | [optional]
|
|
879
|
+
|
|
880
|
+
### Return type
|
|
881
|
+
|
|
882
|
+
Response<([**Array<Translation>**](Translation.md))>
|
|
883
|
+
|
|
884
|
+
### Authorization
|
|
885
|
+
|
|
886
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
887
|
+
|
|
888
|
+
### HTTP request headers
|
|
889
|
+
|
|
890
|
+
- **Content-Type**: Not defined
|
|
891
|
+
- **Accept**: application/json
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
## translations_review
|
|
895
|
+
|
|
896
|
+
> AffectedCount translations_review(project_id, translations_review_parameters, opts)
|
|
897
|
+
|
|
898
|
+
Review translations selected by query
|
|
899
|
+
|
|
900
|
+
Review translations matching query.
|
|
901
|
+
|
|
902
|
+
### Example
|
|
903
|
+
|
|
904
|
+
```ruby
|
|
905
|
+
# load the gem
|
|
906
|
+
require 'phrase'
|
|
907
|
+
# setup authorization
|
|
908
|
+
Phrase.configure do |config|
|
|
909
|
+
# Configure HTTP basic authorization: Basic
|
|
910
|
+
config.username = 'YOUR USERNAME'
|
|
911
|
+
config.password = 'YOUR PASSWORD'
|
|
912
|
+
|
|
913
|
+
# Configure API key authorization: Token
|
|
914
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
915
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
api_instance = Phrase::TranslationsApi.new
|
|
919
|
+
project_id = 'project_id_example' # String | Project ID
|
|
920
|
+
translations_review_parameters = Phrase::TranslationsReviewParameters.new # TranslationsReviewParameters |
|
|
921
|
+
opts = {
|
|
922
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
begin
|
|
926
|
+
#Review translations selected by query
|
|
927
|
+
result = api_instance.translations_review(project_id, translations_review_parameters, opts)
|
|
928
|
+
pp result
|
|
929
|
+
rescue Phrase::ApiError => e
|
|
930
|
+
puts "Exception when calling TranslationsApi->translations_review: #{e}"
|
|
931
|
+
end
|
|
932
|
+
```
|
|
933
|
+
|
|
934
|
+
### Parameters
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
Name | Type | Description | Notes
|
|
938
|
+
------------- | ------------- | ------------- | -------------
|
|
939
|
+
**project_id** | **String**| Project ID |
|
|
940
|
+
**translations_review_parameters** | [**TranslationsReviewParameters**](TranslationsReviewParameters.md)| |
|
|
941
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
942
|
+
|
|
943
|
+
### Return type
|
|
944
|
+
|
|
945
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
|
946
|
+
|
|
947
|
+
### Authorization
|
|
948
|
+
|
|
949
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
950
|
+
|
|
951
|
+
### HTTP request headers
|
|
952
|
+
|
|
953
|
+
- **Content-Type**: application/json
|
|
954
|
+
- **Accept**: application/json
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
## translations_search
|
|
958
|
+
|
|
959
|
+
> Array<Translation> translations_search(project_id, translations_search_parameters, opts)
|
|
960
|
+
|
|
961
|
+
Search translations
|
|
962
|
+
|
|
963
|
+
Search translations for the given project. Provides the same search interface as <code>translations#index</code> but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
|
|
964
|
+
|
|
965
|
+
### Example
|
|
966
|
+
|
|
967
|
+
```ruby
|
|
968
|
+
# load the gem
|
|
969
|
+
require 'phrase'
|
|
970
|
+
# setup authorization
|
|
971
|
+
Phrase.configure do |config|
|
|
972
|
+
# Configure HTTP basic authorization: Basic
|
|
973
|
+
config.username = 'YOUR USERNAME'
|
|
974
|
+
config.password = 'YOUR PASSWORD'
|
|
975
|
+
|
|
976
|
+
# Configure API key authorization: Token
|
|
977
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
978
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
api_instance = Phrase::TranslationsApi.new
|
|
982
|
+
project_id = 'project_id_example' # String | Project ID
|
|
983
|
+
translations_search_parameters = Phrase::TranslationsSearchParameters.new # TranslationsSearchParameters |
|
|
984
|
+
opts = {
|
|
985
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
986
|
+
page: 1, # Integer | Page number
|
|
987
|
+
per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
begin
|
|
991
|
+
#Search translations
|
|
992
|
+
result = api_instance.translations_search(project_id, translations_search_parameters, opts)
|
|
993
|
+
pp result
|
|
994
|
+
rescue Phrase::ApiError => e
|
|
995
|
+
puts "Exception when calling TranslationsApi->translations_search: #{e}"
|
|
996
|
+
end
|
|
997
|
+
```
|
|
998
|
+
|
|
999
|
+
### Parameters
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
Name | Type | Description | Notes
|
|
1003
|
+
------------- | ------------- | ------------- | -------------
|
|
1004
|
+
**project_id** | **String**| Project ID |
|
|
1005
|
+
**translations_search_parameters** | [**TranslationsSearchParameters**](TranslationsSearchParameters.md)| |
|
|
1006
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
1007
|
+
**page** | **Integer**| Page number | [optional]
|
|
1008
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
|
1009
|
+
|
|
1010
|
+
### Return type
|
|
1011
|
+
|
|
1012
|
+
Response<([**Array<Translation>**](Translation.md))>
|
|
1013
|
+
|
|
1014
|
+
### Authorization
|
|
1015
|
+
|
|
1016
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
1017
|
+
|
|
1018
|
+
### HTTP request headers
|
|
1019
|
+
|
|
1020
|
+
- **Content-Type**: application/json
|
|
1021
|
+
- **Accept**: application/json
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
## translations_unverify
|
|
1025
|
+
|
|
1026
|
+
> AffectedCount translations_unverify(project_id, translations_unverify_parameters, opts)
|
|
1027
|
+
|
|
1028
|
+
Mark translations selected by query as unverified
|
|
1029
|
+
|
|
1030
|
+
Mark translations matching query as unverified.
|
|
1031
|
+
|
|
1032
|
+
### Example
|
|
1033
|
+
|
|
1034
|
+
```ruby
|
|
1035
|
+
# load the gem
|
|
1036
|
+
require 'phrase'
|
|
1037
|
+
# setup authorization
|
|
1038
|
+
Phrase.configure do |config|
|
|
1039
|
+
# Configure HTTP basic authorization: Basic
|
|
1040
|
+
config.username = 'YOUR USERNAME'
|
|
1041
|
+
config.password = 'YOUR PASSWORD'
|
|
1042
|
+
|
|
1043
|
+
# Configure API key authorization: Token
|
|
1044
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
1045
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
api_instance = Phrase::TranslationsApi.new
|
|
1049
|
+
project_id = 'project_id_example' # String | Project ID
|
|
1050
|
+
translations_unverify_parameters = Phrase::TranslationsUnverifyParameters.new # TranslationsUnverifyParameters |
|
|
1051
|
+
opts = {
|
|
1052
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
begin
|
|
1056
|
+
#Mark translations selected by query as unverified
|
|
1057
|
+
result = api_instance.translations_unverify(project_id, translations_unverify_parameters, opts)
|
|
1058
|
+
pp result
|
|
1059
|
+
rescue Phrase::ApiError => e
|
|
1060
|
+
puts "Exception when calling TranslationsApi->translations_unverify: #{e}"
|
|
1061
|
+
end
|
|
1062
|
+
```
|
|
1063
|
+
|
|
1064
|
+
### Parameters
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
Name | Type | Description | Notes
|
|
1068
|
+
------------- | ------------- | ------------- | -------------
|
|
1069
|
+
**project_id** | **String**| Project ID |
|
|
1070
|
+
**translations_unverify_parameters** | [**TranslationsUnverifyParameters**](TranslationsUnverifyParameters.md)| |
|
|
1071
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
1072
|
+
|
|
1073
|
+
### Return type
|
|
1074
|
+
|
|
1075
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
|
1076
|
+
|
|
1077
|
+
### Authorization
|
|
1078
|
+
|
|
1079
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
1080
|
+
|
|
1081
|
+
### HTTP request headers
|
|
1082
|
+
|
|
1083
|
+
- **Content-Type**: application/json
|
|
1084
|
+
- **Accept**: application/json
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
## translations_verify
|
|
1088
|
+
|
|
1089
|
+
> AffectedCount translations_verify(project_id, translations_verify_parameters, opts)
|
|
1090
|
+
|
|
1091
|
+
Verify translations selected by query
|
|
1092
|
+
|
|
1093
|
+
Verify translations matching query.
|
|
1094
|
+
|
|
1095
|
+
### Example
|
|
1096
|
+
|
|
1097
|
+
```ruby
|
|
1098
|
+
# load the gem
|
|
1099
|
+
require 'phrase'
|
|
1100
|
+
# setup authorization
|
|
1101
|
+
Phrase.configure do |config|
|
|
1102
|
+
# Configure HTTP basic authorization: Basic
|
|
1103
|
+
config.username = 'YOUR USERNAME'
|
|
1104
|
+
config.password = 'YOUR PASSWORD'
|
|
1105
|
+
|
|
1106
|
+
# Configure API key authorization: Token
|
|
1107
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
1108
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
1109
|
+
end
|
|
1110
|
+
|
|
1111
|
+
api_instance = Phrase::TranslationsApi.new
|
|
1112
|
+
project_id = 'project_id_example' # String | Project ID
|
|
1113
|
+
translations_verify_parameters = Phrase::TranslationsVerifyParameters.new # TranslationsVerifyParameters |
|
|
1114
|
+
opts = {
|
|
1115
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
begin
|
|
1119
|
+
#Verify translations selected by query
|
|
1120
|
+
result = api_instance.translations_verify(project_id, translations_verify_parameters, opts)
|
|
1121
|
+
pp result
|
|
1122
|
+
rescue Phrase::ApiError => e
|
|
1123
|
+
puts "Exception when calling TranslationsApi->translations_verify: #{e}"
|
|
1124
|
+
end
|
|
1125
|
+
```
|
|
1126
|
+
|
|
1127
|
+
### Parameters
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
Name | Type | Description | Notes
|
|
1131
|
+
------------- | ------------- | ------------- | -------------
|
|
1132
|
+
**project_id** | **String**| Project ID |
|
|
1133
|
+
**translations_verify_parameters** | [**TranslationsVerifyParameters**](TranslationsVerifyParameters.md)| |
|
|
1134
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
1135
|
+
|
|
1136
|
+
### Return type
|
|
1137
|
+
|
|
1138
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
|
1139
|
+
|
|
1140
|
+
### Authorization
|
|
1141
|
+
|
|
1142
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
1143
|
+
|
|
1144
|
+
### HTTP request headers
|
|
1145
|
+
|
|
1146
|
+
- **Content-Type**: application/json
|
|
1147
|
+
- **Accept**: application/json
|
|
1148
|
+
|