phrase 4.4.0 → 4.7.0
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 +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +7 -5
- data/docs/BranchesApi.md +3 -3
- data/docs/CommentRepliesApi.md +3 -5
- data/docs/CommentsApi.md +3 -5
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/DistributionUpdateParameters.md +1 -1
- data/docs/InvitationCreateParameters.md +2 -2
- data/docs/InvitationsApi.md +7 -7
- data/docs/JobsApi.md +4 -4
- data/docs/KeyCreateParameters.md +3 -1
- data/docs/KeyPreview.md +3 -1
- data/docs/KeyUpdateParameters.md +3 -1
- data/docs/KeysApi.md +4 -4
- data/docs/KeysExcludeParameters.md +1 -1
- data/docs/KeysIncludeParameters.md +1 -1
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/Locale.md +2 -0
- data/docs/LocaleCreateParameters.md +3 -3
- data/docs/LocaleDetails.md +2 -0
- data/docs/LocaleDownloadCreateParameters.md +7 -5
- data/docs/LocaleDownloadsApi.md +8 -8
- data/docs/LocaleUpdateParameters.md +3 -3
- data/docs/LocalesApi.md +17 -15
- data/docs/MemberUpdateParameters.md +1 -1
- data/docs/MembersApi.md +5 -5
- data/docs/OrdersApi.md +1 -1
- data/docs/ProjectCreateParameters.md +5 -5
- data/docs/ProjectUpdateParameters.md +6 -6
- data/docs/ReleaseTriggersApi.md +1 -1
- data/docs/ScreenshotMarkerCreateParameters.md +1 -1
- data/docs/ScreenshotMarkerUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/SearchApi.md +1 -1
- data/docs/TagsApi.md +2 -0
- data/docs/TranslationCreateParameters.md +1 -1
- data/docs/TranslationKey.md +2 -0
- data/docs/TranslationKeyDetails.md +2 -0
- data/docs/TranslationUnreviewParameters.md +17 -0
- data/docs/TranslationUpdateParameters.md +1 -1
- data/docs/TranslationsApi.md +143 -13
- data/docs/TranslationsExcludeParameters.md +1 -1
- data/docs/TranslationsIncludeParameters.md +1 -1
- data/docs/TranslationsReviewParameters.md +1 -1
- data/docs/TranslationsSearchParameters.md +1 -1
- data/docs/TranslationsUnreviewParameters.md +19 -0
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/docs/UploadSummary.md +5 -1
- data/docs/UploadsApi.md +2 -0
- data/lib/phrase/api/branches_api.rb +6 -6
- data/lib/phrase/api/comment_replies_api.rb +4 -12
- data/lib/phrase/api/comments_api.rb +4 -12
- data/lib/phrase/api/invitations_api.rb +14 -14
- data/lib/phrase/api/jobs_api.rb +4 -4
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locale_downloads_api.rb +8 -8
- data/lib/phrase/api/locales_api.rb +17 -14
- data/lib/phrase/api/members_api.rb +10 -10
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/release_triggers_api.rb +2 -2
- data/lib/phrase/api/search_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +3 -0
- data/lib/phrase/api/translations_api.rb +170 -16
- data/lib/phrase/api/uploads_api.rb +3 -0
- data/lib/phrase/models/distribution_create_parameters.rb +1 -1
- data/lib/phrase/models/distribution_update_parameters.rb +1 -1
- data/lib/phrase/models/invitation_create_parameters.rb +2 -2
- data/lib/phrase/models/key_create_parameters.rb +11 -1
- data/lib/phrase/models/key_preview.rb +13 -4
- data/lib/phrase/models/key_update_parameters.rb +11 -1
- data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
- data/lib/phrase/models/keys_include_parameters.rb +1 -1
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/locale.rb +12 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -3
- data/lib/phrase/models/locale_details.rb +12 -1
- data/lib/phrase/models/locale_download_create_parameters.rb +18 -8
- data/lib/phrase/models/locale_update_parameters.rb +3 -3
- data/lib/phrase/models/member_update_parameters.rb +1 -1
- data/lib/phrase/models/project_create_parameters.rb +4 -4
- data/lib/phrase/models/project_update_parameters.rb +5 -5
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +1 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +1 -1
- data/lib/phrase/models/translation_create_parameters.rb +1 -1
- data/lib/phrase/models/translation_key.rb +10 -1
- data/lib/phrase/models/translation_key_details.rb +10 -1
- data/lib/phrase/models/{comments_list_parameters.rb → translation_unreview_parameters.rb} +8 -52
- data/lib/phrase/models/translation_update_parameters.rb +1 -1
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/{replies_list_parameters.rb → translations_unreview_parameters.rb} +12 -34
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/models/upload_summary.rb +22 -4
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +2 -2
- data/spec/api/branches_api_spec.rb +3 -3
- data/spec/api/comment_replies_api_spec.rb +0 -1
- data/spec/api/comments_api_spec.rb +0 -1
- data/spec/api/invitations_api_spec.rb +7 -7
- data/spec/api/jobs_api_spec.rb +2 -2
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locale_downloads_api_spec.rb +4 -4
- data/spec/api/members_api_spec.rb +5 -5
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/release_triggers_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -0
- data/spec/api/translations_api_spec.rb +37 -8
- data/spec/models/key_create_parameters_spec.rb +6 -0
- data/spec/models/key_preview_spec.rb +6 -0
- data/spec/models/key_update_parameters_spec.rb +6 -0
- data/spec/models/locale_details_spec.rb +6 -0
- data/spec/models/locale_download_create_parameters_spec.rb +6 -0
- data/spec/models/locale_spec.rb +6 -0
- data/spec/models/translation_key_details_spec.rb +6 -0
- data/spec/models/translation_key_spec.rb +6 -0
- data/spec/models/translation_unreview_parameters_spec.rb +29 -0
- data/spec/models/translations_unreview_parameters_spec.rb +35 -0
- data/spec/models/upload_summary_spec.rb +12 -0
- metadata +236 -236
- data/docs/CommentsListParameters.md +0 -25
- data/docs/RepliesListParameters.md +0 -23
- data/spec/models/comments_list_parameters_spec.rb +0 -53
- data/spec/models/replies_list_parameters_spec.rb +0 -47
data/docs/TranslationsApi.md
CHANGED
@@ -9,6 +9,7 @@ Method | HTTP request | Description
|
|
9
9
|
[**translation_include**](TranslationsApi.md#translation_include) | **PATCH** /projects/{project_id}/translations/{id}/include | Include a translation
|
10
10
|
[**translation_review**](TranslationsApi.md#translation_review) | **PATCH** /projects/{project_id}/translations/{id}/review | Review a translation
|
11
11
|
[**translation_show**](TranslationsApi.md#translation_show) | **GET** /projects/{project_id}/translations/{id} | Get a single translation
|
12
|
+
[**translation_unreview**](TranslationsApi.md#translation_unreview) | **PATCH** /projects/{project_id}/translations/{id}/unreview | Unreview a translation
|
12
13
|
[**translation_unverify**](TranslationsApi.md#translation_unverify) | **PATCH** /projects/{project_id}/translations/{id}/unverify | Mark a translation as unverified
|
13
14
|
[**translation_update**](TranslationsApi.md#translation_update) | **PATCH** /projects/{project_id}/translations/{id} | Update a translation
|
14
15
|
[**translation_verify**](TranslationsApi.md#translation_verify) | **PATCH** /projects/{project_id}/translations/{id}/verify | Verify a translation
|
@@ -19,6 +20,7 @@ Method | HTTP request | Description
|
|
19
20
|
[**translations_list**](TranslationsApi.md#translations_list) | **GET** /projects/{project_id}/translations | List all translations
|
20
21
|
[**translations_review_collection**](TranslationsApi.md#translations_review_collection) | **PATCH** /projects/{project_id}/translations/review | Review translations selected by query
|
21
22
|
[**translations_search**](TranslationsApi.md#translations_search) | **POST** /projects/{project_id}/translations/search | Search translations
|
23
|
+
[**translations_unreview_collection**](TranslationsApi.md#translations_unreview_collection) | **PATCH** /projects/{project_id}/translations/unreview | Unreview translations selected by query
|
22
24
|
[**translations_unverify_collection**](TranslationsApi.md#translations_unverify_collection) | **PATCH** /projects/{project_id}/translations/unverify | Unverify translations by query
|
23
25
|
[**translations_verify_collection**](TranslationsApi.md#translations_verify_collection) | **PATCH** /projects/{project_id}/translations/verify | Verify translations by query
|
24
26
|
|
@@ -347,6 +349,71 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
347
349
|
- **Accept**: application/json
|
348
350
|
|
349
351
|
|
352
|
+
## translation_unreview
|
353
|
+
|
354
|
+
> TranslationDetails translation_unreview(project_id, id, translation_unreview_parameters, opts)
|
355
|
+
|
356
|
+
Unreview a translation
|
357
|
+
|
358
|
+
Mark a reviewed translation as translated.
|
359
|
+
|
360
|
+
### Example
|
361
|
+
|
362
|
+
```ruby
|
363
|
+
# load the gem
|
364
|
+
require 'phrase'
|
365
|
+
# setup authorization
|
366
|
+
Phrase.configure do |config|
|
367
|
+
# Configure HTTP basic authorization: Basic
|
368
|
+
config.username = 'YOUR USERNAME'
|
369
|
+
config.password = 'YOUR PASSWORD'
|
370
|
+
|
371
|
+
# Configure API key authorization: Token
|
372
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
373
|
+
config.api_key_prefix['Authorization'] = 'token'
|
374
|
+
end
|
375
|
+
|
376
|
+
api_instance = Phrase::TranslationsApi.new
|
377
|
+
project_id = 'project_id_example' # String | Project ID
|
378
|
+
id = 'id_example' # String | ID
|
379
|
+
translation_unreview_parameters = Phrase::TranslationUnreviewParameters.new # TranslationUnreviewParameters |
|
380
|
+
opts = {
|
381
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
382
|
+
}
|
383
|
+
|
384
|
+
begin
|
385
|
+
#Unreview a translation
|
386
|
+
result = api_instance.translation_unreview(project_id, id, translation_unreview_parameters, opts)
|
387
|
+
pp result
|
388
|
+
rescue Phrase::ApiError => e
|
389
|
+
puts "Exception when calling TranslationsApi->translation_unreview: #{e}"
|
390
|
+
end
|
391
|
+
```
|
392
|
+
|
393
|
+
### Parameters
|
394
|
+
|
395
|
+
|
396
|
+
Name | Type | Description | Notes
|
397
|
+
------------- | ------------- | ------------- | -------------
|
398
|
+
**project_id** | **String**| Project ID |
|
399
|
+
**id** | **String**| ID |
|
400
|
+
**translation_unreview_parameters** | [**TranslationUnreviewParameters**](TranslationUnreviewParameters.md)| |
|
401
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
402
|
+
|
403
|
+
### Return type
|
404
|
+
|
405
|
+
Response<([**TranslationDetails**](TranslationDetails.md))>
|
406
|
+
|
407
|
+
### Authorization
|
408
|
+
|
409
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
410
|
+
|
411
|
+
### HTTP request headers
|
412
|
+
|
413
|
+
- **Content-Type**: application/json
|
414
|
+
- **Accept**: application/json
|
415
|
+
|
416
|
+
|
350
417
|
## translation_unverify
|
351
418
|
|
352
419
|
> TranslationDetails translation_unverify(project_id, id, translation_unverify_parameters, opts)
|
@@ -576,7 +643,7 @@ opts = {
|
|
576
643
|
branch: 'my-feature-branch', # String | specify the branch to use
|
577
644
|
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
578
645
|
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)
|
646
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `unverified:{true|false}` for verification status * `tags:XYZ` for tags on the translation * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
|
580
647
|
}
|
581
648
|
|
582
649
|
begin
|
@@ -601,7 +668,7 @@ Name | Type | Description | Notes
|
|
601
668
|
**branch** | **String**| specify the branch to use | [optional]
|
602
669
|
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
603
670
|
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
604
|
-
**q** | **String**| Specify a query to find translations by content (including wildcards)
|
671
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `unverified:{true|false}` for verification status * `tags:XYZ` for tags on the translation * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
605
672
|
|
606
673
|
### Return type
|
607
674
|
|
@@ -623,7 +690,7 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
623
690
|
|
624
691
|
List translations by locale
|
625
692
|
|
626
|
-
List translations for a specific locale. If you want to download all translations for one locale we recommend to use the
|
693
|
+
List translations for a specific locale. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
|
627
694
|
|
628
695
|
### Example
|
629
696
|
|
@@ -651,7 +718,7 @@ opts = {
|
|
651
718
|
branch: 'my-feature-branch', # String | specify the branch to use
|
652
719
|
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
653
720
|
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)
|
721
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `unverified:{true|false}` for verification status - `tags:XYZ` for tags on the translation - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples).
|
655
722
|
}
|
656
723
|
|
657
724
|
begin
|
@@ -676,7 +743,7 @@ Name | Type | Description | Notes
|
|
676
743
|
**branch** | **String**| specify the branch to use | [optional]
|
677
744
|
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
678
745
|
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
679
|
-
**q** | **String**| Specify a query to find translations by content (including wildcards)
|
746
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `unverified:{true|false}` for verification status - `tags:XYZ` for tags on the translation - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
680
747
|
|
681
748
|
### Return type
|
682
749
|
|
@@ -824,7 +891,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
824
891
|
|
825
892
|
List all translations
|
826
893
|
|
827
|
-
List translations for the given project. If you want to download all translations for one locale we recommend to use the
|
894
|
+
List translations for the given project. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
|
828
895
|
|
829
896
|
### Example
|
830
897
|
|
@@ -846,14 +913,14 @@ api_instance = Phrase::TranslationsApi.new
|
|
846
913
|
project_id = 'project_id_example' # String | Project ID
|
847
914
|
opts = {
|
848
915
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
849
|
-
if_modified_since: 'if_modified_since_example', # String | Last modified condition, see
|
850
|
-
if_none_match: 'if_none_match_example', # String | ETag condition, see
|
916
|
+
if_modified_since: 'if_modified_since_example', # String | Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
917
|
+
if_none_match: 'if_none_match_example', # String | ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
851
918
|
page: 1, # Integer | Page number
|
852
919
|
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
853
920
|
branch: 'my-feature-branch', # String | specify the branch to use
|
854
921
|
sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
|
855
922
|
order: 'desc', # String | Order direction. Can be one of: asc, desc.
|
856
|
-
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards)
|
923
|
+
q: 'PhraseApp*%20unverified:true%20excluded:true%20tags:feature,center' # String | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
|
857
924
|
}
|
858
925
|
|
859
926
|
begin
|
@@ -872,14 +939,14 @@ Name | Type | Description | Notes
|
|
872
939
|
------------- | ------------- | ------------- | -------------
|
873
940
|
**project_id** | **String**| Project ID |
|
874
941
|
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
875
|
-
**if_modified_since** | **String**| Last modified condition, see
|
876
|
-
**if_none_match** | **String**| ETag condition, see
|
942
|
+
**if_modified_since** | **String**| Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional) | [optional]
|
943
|
+
**if_none_match** | **String**| ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional) | [optional]
|
877
944
|
**page** | **Integer**| Page number | [optional]
|
878
945
|
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
879
946
|
**branch** | **String**| specify the branch to use | [optional]
|
880
947
|
**sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
881
948
|
**order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
|
882
|
-
**q** | **String**| Specify a query to find translations by content (including wildcards)
|
949
|
+
**q** | **String**| Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `reviewed_after:2013-02-21T00:00:00Z` for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
883
950
|
|
884
951
|
### Return type
|
885
952
|
|
@@ -964,7 +1031,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
964
1031
|
|
965
1032
|
Search translations
|
966
1033
|
|
967
|
-
Search translations for the given project. Provides the same search interface as
|
1034
|
+
Search translations for the given project. Provides the same search interface as `translations#index` 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 `locales#download` endpoint.
|
968
1035
|
|
969
1036
|
### Example
|
970
1037
|
|
@@ -1025,6 +1092,69 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
1025
1092
|
- **Accept**: application/json
|
1026
1093
|
|
1027
1094
|
|
1095
|
+
## translations_unreview_collection
|
1096
|
+
|
1097
|
+
> AffectedCount translations_unreview_collection(project_id, translations_unreview_parameters, opts)
|
1098
|
+
|
1099
|
+
Unreview translations selected by query
|
1100
|
+
|
1101
|
+
Unreview translations matching query.
|
1102
|
+
|
1103
|
+
### Example
|
1104
|
+
|
1105
|
+
```ruby
|
1106
|
+
# load the gem
|
1107
|
+
require 'phrase'
|
1108
|
+
# setup authorization
|
1109
|
+
Phrase.configure do |config|
|
1110
|
+
# Configure HTTP basic authorization: Basic
|
1111
|
+
config.username = 'YOUR USERNAME'
|
1112
|
+
config.password = 'YOUR PASSWORD'
|
1113
|
+
|
1114
|
+
# Configure API key authorization: Token
|
1115
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1116
|
+
config.api_key_prefix['Authorization'] = 'token'
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
api_instance = Phrase::TranslationsApi.new
|
1120
|
+
project_id = 'project_id_example' # String | Project ID
|
1121
|
+
translations_unreview_parameters = Phrase::TranslationsUnreviewParameters.new # TranslationsUnreviewParameters |
|
1122
|
+
opts = {
|
1123
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
begin
|
1127
|
+
#Unreview translations selected by query
|
1128
|
+
result = api_instance.translations_unreview_collection(project_id, translations_unreview_parameters, opts)
|
1129
|
+
pp result
|
1130
|
+
rescue Phrase::ApiError => e
|
1131
|
+
puts "Exception when calling TranslationsApi->translations_unreview_collection: #{e}"
|
1132
|
+
end
|
1133
|
+
```
|
1134
|
+
|
1135
|
+
### Parameters
|
1136
|
+
|
1137
|
+
|
1138
|
+
Name | Type | Description | Notes
|
1139
|
+
------------- | ------------- | ------------- | -------------
|
1140
|
+
**project_id** | **String**| Project ID |
|
1141
|
+
**translations_unreview_parameters** | [**TranslationsUnreviewParameters**](TranslationsUnreviewParameters.md)| |
|
1142
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
1143
|
+
|
1144
|
+
### Return type
|
1145
|
+
|
1146
|
+
Response<([**AffectedCount**](AffectedCount.md))>
|
1147
|
+
|
1148
|
+
### Authorization
|
1149
|
+
|
1150
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
1151
|
+
|
1152
|
+
### HTTP request headers
|
1153
|
+
|
1154
|
+
- **Content-Type**: application/json
|
1155
|
+
- **Accept**: application/json
|
1156
|
+
|
1157
|
+
|
1028
1158
|
## translations_unverify_collection
|
1029
1159
|
|
1030
1160
|
> AffectedCount translations_unverify_collection(project_id, translations_unverify_parameters, opts)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
8
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
9
9
|
**sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
10
10
|
**order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
8
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `tags:XYZ` for tags on the translation - `unverified:{true|false}` for verification status - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
9
9
|
**sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
10
10
|
**order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
8
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
9
9
|
|
10
10
|
## Code Sample
|
11
11
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
8
|
**sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
9
9
|
**order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
|
10
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
10
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - `id:translation_id,...` for queries on a comma-separated list of ids - `tags:XYZ` for tags on the translation - `unverified:{true|false}` for verification status - `excluded:{true|false}` for exclusion status - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Phrase::TranslationsUnreviewParameters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'Phrase'
|
14
|
+
|
15
|
+
instance = Phrase::TranslationsUnreviewParameters.new(branch: my-feature-branch,
|
16
|
+
q: PhraseApp*%reviewed:true%20tags:feature,center)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
8
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
9
9
|
**sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
10
10
|
**order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
|
11
11
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
8
|
**locale_id** | **String** | specify the locale of the translations to be verified | [optional]
|
9
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
9
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
data/docs/UploadSummary.md
CHANGED
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
|
|
12
12
|
**translations_updated** | **Integer** | | [optional]
|
13
13
|
**tags_created** | **Integer** | | [optional]
|
14
14
|
**translation_keys_ignored** | **Integer** | | [optional]
|
15
|
+
**processed_translations** | **Integer** | | [optional]
|
16
|
+
**upload_total_translations** | **Integer** | | [optional]
|
15
17
|
|
16
18
|
## Code Sample
|
17
19
|
|
@@ -25,7 +27,9 @@ instance = Phrase::UploadSummary.new(locales_created: null,
|
|
25
27
|
translations_created: null,
|
26
28
|
translations_updated: null,
|
27
29
|
tags_created: null,
|
28
|
-
translation_keys_ignored: null
|
30
|
+
translation_keys_ignored: null,
|
31
|
+
processed_translations: null,
|
32
|
+
upload_total_translations: null)
|
29
33
|
```
|
30
34
|
|
31
35
|
|
data/docs/UploadsApi.md
CHANGED
@@ -54,6 +54,7 @@ opts = {
|
|
54
54
|
locale_mapping: { ... }, # Object | Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
|
55
55
|
format_options: { ... }, # Object | Additional options available for specific formats. See our format guide for the [complete list](https://support.phrase.com/hc/en-us/articles/9652464547740-List-of-Supported-File-Types-Strings).
|
56
56
|
autotranslate: true, # Boolean | If set, translations for the uploaded language will be fetched automatically.
|
57
|
+
verify_mentioned_translations: true, # Boolean | Indicates whether all translations mentioned in the upload should be verified.
|
57
58
|
mark_reviewed: true, # Boolean | Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
|
58
59
|
tag_only_affected_keys: true, # Boolean | Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is `false`
|
59
60
|
translation_key_prefix: 'translation_key_prefix_example' # String | This prefix will be added to all uploaded translation key names to prevent collisions. Use a meaningful prefix related to your project or file to keep key names organized.
|
@@ -91,6 +92,7 @@ Name | Type | Description | Notes
|
|
91
92
|
**locale_mapping** | [**Object**](Object.md)| Mapping between locale names and translation columns. Required in some formats like CSV or XLSX. | [optional]
|
92
93
|
**format_options** | [**Object**](Object.md)| Additional options available for specific formats. See our format guide for the [complete list](https://support.phrase.com/hc/en-us/articles/9652464547740-List-of-Supported-File-Types-Strings). | [optional]
|
93
94
|
**autotranslate** | **Boolean**| If set, translations for the uploaded language will be fetched automatically. | [optional]
|
95
|
+
**verify_mentioned_translations** | **Boolean**| Indicates whether all translations mentioned in the upload should be verified. | [optional] [default to false]
|
94
96
|
**mark_reviewed** | **Boolean**| Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project. | [optional]
|
95
97
|
**tag_only_affected_keys** | **Boolean**| Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is `false` | [optional] [default to false]
|
96
98
|
**translation_key_prefix** | **String**| This prefix will be added to all uploaded translation key names to prevent collisions. Use a meaningful prefix related to your project or file to keep key names organized. | [optional]
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
10
|
# Compare branches
|
11
|
-
# Compare branch with main branch.
|
11
|
+
# Compare branch with main branch. *Note: Comparing a branch may take several minutes depending on the project size.*
|
12
12
|
# @param project_id [String] Project ID
|
13
13
|
# @param name [String] name
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -20,7 +20,7 @@ module Phrase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Compare branches
|
23
|
-
# Compare branch with main branch.
|
23
|
+
# Compare branch with main branch. *Note: Comparing a branch may take several minutes depending on the project size.*
|
24
24
|
# @param project_id [String] Project ID
|
25
25
|
# @param name [String] name
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -78,7 +78,7 @@ module Phrase
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Create a branch
|
81
|
-
# Create a new branch.
|
81
|
+
# Create a new branch. *Note: Creating a new branch may take several minutes depending on the project size.*
|
82
82
|
# @param project_id [String] Project ID
|
83
83
|
# @param branch_create_parameters [BranchCreateParameters]
|
84
84
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module Phrase
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# Create a branch
|
93
|
-
# Create a new branch.
|
93
|
+
# Create a new branch. *Note: Creating a new branch may take several minutes depending on the project size.*
|
94
94
|
# @param project_id [String] Project ID
|
95
95
|
# @param branch_create_parameters [BranchCreateParameters]
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -222,7 +222,7 @@ module Phrase
|
|
222
222
|
end
|
223
223
|
|
224
224
|
# Merge a branch
|
225
|
-
# Merge an existing branch.
|
225
|
+
# Merge an existing branch. *Note: Merging a branch may take several minutes depending on diff size.*
|
226
226
|
# @param project_id [String] Project ID
|
227
227
|
# @param name [String] name
|
228
228
|
# @param branch_merge_parameters [BranchMergeParameters]
|
@@ -235,7 +235,7 @@ module Phrase
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# Merge a branch
|
238
|
-
# Merge an existing branch.
|
238
|
+
# Merge an existing branch. *Note: Merging a branch may take several minutes depending on diff size.*
|
239
239
|
# @param project_id [String] Project ID
|
240
240
|
# @param name [String] name
|
241
241
|
# @param branch_merge_parameters [BranchMergeParameters]
|
@@ -12,7 +12,6 @@ module Phrase
|
|
12
12
|
# @param project_id [String] Project ID
|
13
13
|
# @param key_id [String] Translation Key ID
|
14
14
|
# @param comment_id [String] Comment ID
|
15
|
-
# @param replies_list_parameters [RepliesListParameters]
|
16
15
|
# @param [Hash] opts the optional parameters
|
17
16
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
18
17
|
# @option opts [Integer] :page Page number
|
@@ -22,8 +21,8 @@ module Phrase
|
|
22
21
|
# @option opts [Array<String>] :filters Specify the filter for the comments
|
23
22
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
24
23
|
# @return [Array<Comment>]
|
25
|
-
def replies_list(project_id, key_id, comment_id,
|
26
|
-
data, _status_code, _headers = replies_list_with_http_info(project_id, key_id, comment_id,
|
24
|
+
def replies_list(project_id, key_id, comment_id, opts = {})
|
25
|
+
data, _status_code, _headers = replies_list_with_http_info(project_id, key_id, comment_id, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
@@ -32,7 +31,6 @@ module Phrase
|
|
32
31
|
# @param project_id [String] Project ID
|
33
32
|
# @param key_id [String] Translation Key ID
|
34
33
|
# @param comment_id [String] Comment ID
|
35
|
-
# @param replies_list_parameters [RepliesListParameters]
|
36
34
|
# @param [Hash] opts the optional parameters
|
37
35
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
38
36
|
# @option opts [Integer] :page Page number
|
@@ -42,7 +40,7 @@ module Phrase
|
|
42
40
|
# @option opts [Array<String>] :filters Specify the filter for the comments
|
43
41
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
44
42
|
# @return [Array<(Response<(Array<Comment>)>, Integer, Hash)>] Response<(Array<Comment>)> data, response status code and response headers
|
45
|
-
def replies_list_with_http_info(project_id, key_id, comment_id,
|
43
|
+
def replies_list_with_http_info(project_id, key_id, comment_id, opts = {})
|
46
44
|
if @api_client.config.debugging
|
47
45
|
@api_client.config.logger.debug 'Calling API: CommentRepliesApi.replies_list ...'
|
48
46
|
end
|
@@ -58,10 +56,6 @@ module Phrase
|
|
58
56
|
if @api_client.config.client_side_validation && comment_id.nil?
|
59
57
|
fail ArgumentError, "Missing the required parameter 'comment_id' when calling CommentRepliesApi.replies_list"
|
60
58
|
end
|
61
|
-
# verify the required parameter 'replies_list_parameters' is set
|
62
|
-
if @api_client.config.client_side_validation && replies_list_parameters.nil?
|
63
|
-
fail ArgumentError, "Missing the required parameter 'replies_list_parameters' when calling CommentRepliesApi.replies_list"
|
64
|
-
end
|
65
59
|
# resource path
|
66
60
|
local_var_path = '/projects/{project_id}/keys/{key_id}/comments/{comment_id}/replies'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s)).sub('{' + 'comment_id' + '}', CGI.escape(comment_id.to_s))
|
67
61
|
|
@@ -78,15 +72,13 @@ module Phrase
|
|
78
72
|
header_params = opts[:header_params] || {}
|
79
73
|
# HTTP header 'Accept' (if needed)
|
80
74
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
81
|
-
# HTTP header 'Content-Type'
|
82
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
83
75
|
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
84
76
|
|
85
77
|
# form parameters
|
86
78
|
form_params = opts[:form_params] || {}
|
87
79
|
|
88
80
|
# http body (model)
|
89
|
-
post_body = opts[:body]
|
81
|
+
post_body = opts[:body]
|
90
82
|
|
91
83
|
# return_type
|
92
84
|
return_type = opts[:return_type] || 'Array<Comment>'
|
@@ -579,7 +579,6 @@ module Phrase
|
|
579
579
|
# List all comments for a key.
|
580
580
|
# @param project_id [String] Project ID
|
581
581
|
# @param key_id [String] Translation Key ID
|
582
|
-
# @param comments_list_parameters [CommentsListParameters]
|
583
582
|
# @param [Hash] opts the optional parameters
|
584
583
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
585
584
|
# @option opts [Integer] :page Page number
|
@@ -590,8 +589,8 @@ module Phrase
|
|
590
589
|
# @option opts [Array<String>] :filters Specify the filter for the comments
|
591
590
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
592
591
|
# @return [Array<Comment>]
|
593
|
-
def comments_list(project_id, key_id,
|
594
|
-
data, _status_code, _headers = comments_list_with_http_info(project_id, key_id,
|
592
|
+
def comments_list(project_id, key_id, opts = {})
|
593
|
+
data, _status_code, _headers = comments_list_with_http_info(project_id, key_id, opts)
|
595
594
|
data
|
596
595
|
end
|
597
596
|
|
@@ -599,7 +598,6 @@ module Phrase
|
|
599
598
|
# List all comments for a key.
|
600
599
|
# @param project_id [String] Project ID
|
601
600
|
# @param key_id [String] Translation Key ID
|
602
|
-
# @param comments_list_parameters [CommentsListParameters]
|
603
601
|
# @param [Hash] opts the optional parameters
|
604
602
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
605
603
|
# @option opts [Integer] :page Page number
|
@@ -610,7 +608,7 @@ module Phrase
|
|
610
608
|
# @option opts [Array<String>] :filters Specify the filter for the comments
|
611
609
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
612
610
|
# @return [Array<(Response<(Array<Comment>)>, Integer, Hash)>] Response<(Array<Comment>)> data, response status code and response headers
|
613
|
-
def comments_list_with_http_info(project_id, key_id,
|
611
|
+
def comments_list_with_http_info(project_id, key_id, opts = {})
|
614
612
|
if @api_client.config.debugging
|
615
613
|
@api_client.config.logger.debug 'Calling API: CommentsApi.comments_list ...'
|
616
614
|
end
|
@@ -622,10 +620,6 @@ module Phrase
|
|
622
620
|
if @api_client.config.client_side_validation && key_id.nil?
|
623
621
|
fail ArgumentError, "Missing the required parameter 'key_id' when calling CommentsApi.comments_list"
|
624
622
|
end
|
625
|
-
# verify the required parameter 'comments_list_parameters' is set
|
626
|
-
if @api_client.config.client_side_validation && comments_list_parameters.nil?
|
627
|
-
fail ArgumentError, "Missing the required parameter 'comments_list_parameters' when calling CommentsApi.comments_list"
|
628
|
-
end
|
629
623
|
# resource path
|
630
624
|
local_var_path = '/projects/{project_id}/keys/{key_id}/comments'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
631
625
|
|
@@ -643,15 +637,13 @@ module Phrase
|
|
643
637
|
header_params = opts[:header_params] || {}
|
644
638
|
# HTTP header 'Accept' (if needed)
|
645
639
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
646
|
-
# HTTP header 'Content-Type'
|
647
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
648
640
|
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
649
641
|
|
650
642
|
# form parameters
|
651
643
|
form_params = opts[:form_params] || {}
|
652
644
|
|
653
645
|
# http body (model)
|
654
|
-
post_body = opts[:body]
|
646
|
+
post_body = opts[:body]
|
655
647
|
|
656
648
|
# return_type
|
657
649
|
return_type = opts[:return_type] || 'Array<Comment>'
|