phrase 3.7.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/README.md +13 -37
- data/docs/JobCommentCreateParameters.md +3 -1
- data/docs/JobCommentUpdateParameters.md +3 -1
- data/docs/JobCommentsApi.md +6 -6
- data/docs/JobDetails.md +2 -0
- data/docs/JobKeysDeleteParameters.md +19 -0
- data/docs/JobLocalesApi.md +6 -6
- data/docs/JobsApi.md +16 -14
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -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/LocalesApi.md +3 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +4 -2
- data/docs/QualityPerformanceScoreApi.md +8 -8
- data/docs/QualityPerformanceScoreList200Response.md +21 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +19 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +17 -0
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md → QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md → QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScoreRequest.md → QualityPerformanceScoreListRequest.md} +2 -2
- data/docs/RepoSyncEvent.md +3 -3
- data/docs/RepoSyncEventsApi.md +138 -0
- data/docs/RepoSyncsApi.md +2 -132
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/Upload.md +3 -1
- data/lib/phrase/api/job_comments_api.rb +6 -6
- data/lib/phrase/api/job_locales_api.rb +6 -6
- data/lib/phrase/api/jobs_api.rb +24 -16
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +3 -0
- data/lib/phrase/api/quality_performance_score_api.rb +15 -15
- data/lib/phrase/api/repo_sync_events_api.rb +160 -0
- data/lib/phrase/api/repo_syncs_api.rb +4 -154
- data/lib/phrase/models/job_comment_create_parameters.rb +14 -4
- data/lib/phrase/models/job_comment_update_parameters.rb +14 -4
- data/lib/phrase/models/job_details.rb +10 -1
- data/lib/phrase/models/job_keys_delete_parameters.rb +214 -0
- 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/project_update_parameters.rb +48 -4
- data/lib/phrase/models/{projects_quality_performance_score200_response.rb → quality_performance_score_list200_response.rb} +6 -6
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of.rb → quality_performance_score_list200_response_any_of.rb} +5 -5
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data.rb → quality_performance_score_list200_response_any_of_data.rb} +4 -4
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data_translations_inner.rb → quality_performance_score_list200_response_any_of_data_translations_inner.rb} +3 -3
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_errors_inner.rb → quality_performance_score_list200_response_any_of_errors_inner.rb} +3 -3
- data/lib/phrase/models/{projects_quality_performance_score_request.rb → quality_performance_score_list_request.rb} +3 -3
- data/lib/phrase/models/repo_sync_event.rb +15 -15
- data/lib/phrase/models/upload.rb +14 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -22
- data/spec/api/job_comments_api_spec.rb +3 -3
- data/spec/api/job_locales_api_spec.rb +3 -3
- data/spec/api/jobs_api_spec.rb +6 -5
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/quality_performance_score_api_spec.rb +4 -4
- data/spec/api/repo_sync_events_api_spec.rb +52 -0
- data/spec/api/repo_syncs_api_spec.rb +2 -31
- data/spec/models/job_comment_create_parameters_spec.rb +6 -0
- data/spec/models/job_comment_update_parameters_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/{gitlab_sync_export_spec.rb → job_keys_delete_parameters_spec.rb} +8 -8
- data/spec/models/project_update_parameters_spec.rb +10 -0
- data/spec/models/quality_performance_score_list200_response_any_of_data_spec.rb +29 -0
- data/spec/models/{projects_quality_performance_score200_response_any_of_data_translations_inner_spec.rb → quality_performance_score_list200_response_any_of_data_translations_inner_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_any_of_errors_inner_spec.rb → quality_performance_score_list200_response_any_of_errors_inner_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_any_of_spec.rb → quality_performance_score_list200_response_any_of_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_spec.rb → quality_performance_score_list200_response_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score_request_spec.rb → quality_performance_score_list_request_spec.rb} +6 -6
- data/spec/models/repo_sync_event_spec.rb +2 -2
- data/spec/models/upload_spec.rb +6 -0
- metadata +265 -321
- data/docs/BitbucketSync.md +0 -27
- data/docs/BitbucketSyncApi.md +0 -197
- data/docs/BitbucketSyncExportParameters.md +0 -17
- data/docs/BitbucketSyncExportResponse.md +0 -17
- data/docs/BitbucketSyncImportParameters.md +0 -17
- data/docs/GitHubSyncApi.md +0 -130
- data/docs/GitLabSyncApi.md +0 -463
- data/docs/GithubSyncExportParameters.md +0 -17
- data/docs/GithubSyncImportParameters.md +0 -17
- data/docs/GitlabSync.md +0 -37
- data/docs/GitlabSyncExport.md +0 -19
- data/docs/GitlabSyncExportParameters.md +0 -17
- data/docs/GitlabSyncHistory.md +0 -25
- data/docs/GitlabSyncHistoryErrorsInner.md +0 -19
- data/docs/GitlabSyncImportParameters.md +0 -17
- data/docs/ProjectsQualityPerformanceScore200Response.md +0 -21
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +0 -19
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +0 -17
- data/docs/RepoSyncEventErrorsInner.md +0 -16
- data/lib/phrase/api/bitbucket_sync_api.rb +0 -219
- data/lib/phrase/api/git_hub_sync_api.rb +0 -146
- data/lib/phrase/api/git_lab_sync_api.rb +0 -510
- data/lib/phrase/models/bitbucket_sync.rb +0 -243
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/bitbucket_sync_export_response.rb +0 -196
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync.rb +0 -286
- data/lib/phrase/models/gitlab_sync_export.rb +0 -205
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync_history.rb +0 -234
- data/lib/phrase/models/gitlab_sync_history_errors_inner.rb +0 -205
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/repo_sync_event_errors_inner.rb +0 -207
- data/spec/api/bitbucket_sync_api_spec.rb +0 -64
- data/spec/api/git_hub_sync_api_spec.rb +0 -49
- data/spec/api/git_lab_sync_api_spec.rb +0 -125
- data/spec/models/bitbucket_sync_export_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_export_response_spec.rb +0 -29
- data/spec/models/bitbucket_sync_import_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_spec.rb +0 -59
- data/spec/models/github_sync_export_parameters_spec.rb +0 -29
- data/spec/models/github_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_export_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_history_errors_inner_spec.rb +0 -35
- data/spec/models/gitlab_sync_history_spec.rb +0 -53
- data/spec/models/gitlab_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_spec.rb +0 -89
- data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +0 -29
- data/spec/models/repo_sync_event_errors_inner_spec.rb +0 -23
data/docs/BitbucketSync.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# Phrase::BitbucketSync
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | | [optional]
|
8
|
-
**repository_name** | **String** | | [optional]
|
9
|
-
**last_export_to_bitbucket_at** | **Time** | | [optional]
|
10
|
-
**last_import_from_bitbucket_at** | **Time** | | [optional]
|
11
|
-
**valid_phraseapp_yaml** | **Boolean** | | [optional]
|
12
|
-
**phraseapp_projects** | [**Array<ProjectShort>**](ProjectShort.md) | | [optional]
|
13
|
-
|
14
|
-
## Code Sample
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'Phrase'
|
18
|
-
|
19
|
-
instance = Phrase::BitbucketSync.new(id: null,
|
20
|
-
repository_name: null,
|
21
|
-
last_export_to_bitbucket_at: null,
|
22
|
-
last_import_from_bitbucket_at: null,
|
23
|
-
valid_phraseapp_yaml: null,
|
24
|
-
phraseapp_projects: null)
|
25
|
-
```
|
26
|
-
|
27
|
-
|
data/docs/BitbucketSyncApi.md
DELETED
@@ -1,197 +0,0 @@
|
|
1
|
-
# Phrase::BitbucketSyncApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**bitbucket_sync_export**](BitbucketSyncApi.md#bitbucket_sync_export) | **POST** /bitbucket_syncs/{id}/export | Export from Phrase Strings to Bitbucket
|
8
|
-
[**bitbucket_sync_import**](BitbucketSyncApi.md#bitbucket_sync_import) | **POST** /bitbucket_syncs/{id}/import | Import to Phrase Strings from Bitbucket
|
9
|
-
[**bitbucket_syncs_list**](BitbucketSyncApi.md#bitbucket_syncs_list) | **GET** /bitbucket_syncs | List Bitbucket syncs
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## bitbucket_sync_export
|
14
|
-
|
15
|
-
> BitbucketSyncExportResponse bitbucket_sync_export(id, bitbucket_sync_export_parameters, opts)
|
16
|
-
|
17
|
-
Export from Phrase Strings to Bitbucket
|
18
|
-
|
19
|
-
Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
20
|
-
|
21
|
-
### Example
|
22
|
-
|
23
|
-
```ruby
|
24
|
-
# load the gem
|
25
|
-
require 'phrase'
|
26
|
-
# setup authorization
|
27
|
-
Phrase.configure do |config|
|
28
|
-
# Configure HTTP basic authorization: Basic
|
29
|
-
config.username = 'YOUR USERNAME'
|
30
|
-
config.password = 'YOUR PASSWORD'
|
31
|
-
|
32
|
-
# Configure API key authorization: Token
|
33
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
34
|
-
config.api_key_prefix['Authorization'] = 'token'
|
35
|
-
end
|
36
|
-
|
37
|
-
api_instance = Phrase::BitbucketSyncApi.new
|
38
|
-
id = 'id_example' # String | ID
|
39
|
-
bitbucket_sync_export_parameters = Phrase::BitbucketSyncExportParameters.new # BitbucketSyncExportParameters |
|
40
|
-
opts = {
|
41
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
42
|
-
}
|
43
|
-
|
44
|
-
begin
|
45
|
-
#Export from Phrase Strings to Bitbucket
|
46
|
-
result = api_instance.bitbucket_sync_export(id, bitbucket_sync_export_parameters, opts)
|
47
|
-
pp result
|
48
|
-
rescue Phrase::ApiError => e
|
49
|
-
puts "Exception when calling BitbucketSyncApi->bitbucket_sync_export: #{e}"
|
50
|
-
end
|
51
|
-
```
|
52
|
-
|
53
|
-
### Parameters
|
54
|
-
|
55
|
-
|
56
|
-
Name | Type | Description | Notes
|
57
|
-
------------- | ------------- | ------------- | -------------
|
58
|
-
**id** | **String**| ID |
|
59
|
-
**bitbucket_sync_export_parameters** | [**BitbucketSyncExportParameters**](BitbucketSyncExportParameters.md)| |
|
60
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
61
|
-
|
62
|
-
### Return type
|
63
|
-
|
64
|
-
Response<([**BitbucketSyncExportResponse**](BitbucketSyncExportResponse.md))>
|
65
|
-
|
66
|
-
### Authorization
|
67
|
-
|
68
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
69
|
-
|
70
|
-
### HTTP request headers
|
71
|
-
|
72
|
-
- **Content-Type**: application/json
|
73
|
-
- **Accept**: application/json
|
74
|
-
|
75
|
-
|
76
|
-
## bitbucket_sync_import
|
77
|
-
|
78
|
-
> bitbucket_sync_import(id, bitbucket_sync_import_parameters, opts)
|
79
|
-
|
80
|
-
Import to Phrase Strings from Bitbucket
|
81
|
-
|
82
|
-
Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
83
|
-
|
84
|
-
### Example
|
85
|
-
|
86
|
-
```ruby
|
87
|
-
# load the gem
|
88
|
-
require 'phrase'
|
89
|
-
# setup authorization
|
90
|
-
Phrase.configure do |config|
|
91
|
-
# Configure HTTP basic authorization: Basic
|
92
|
-
config.username = 'YOUR USERNAME'
|
93
|
-
config.password = 'YOUR PASSWORD'
|
94
|
-
|
95
|
-
# Configure API key authorization: Token
|
96
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
97
|
-
config.api_key_prefix['Authorization'] = 'token'
|
98
|
-
end
|
99
|
-
|
100
|
-
api_instance = Phrase::BitbucketSyncApi.new
|
101
|
-
id = 'id_example' # String | ID
|
102
|
-
bitbucket_sync_import_parameters = Phrase::BitbucketSyncImportParameters.new # BitbucketSyncImportParameters |
|
103
|
-
opts = {
|
104
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
105
|
-
}
|
106
|
-
|
107
|
-
begin
|
108
|
-
#Import to Phrase Strings from Bitbucket
|
109
|
-
api_instance.bitbucket_sync_import(id, bitbucket_sync_import_parameters, opts)
|
110
|
-
rescue Phrase::ApiError => e
|
111
|
-
puts "Exception when calling BitbucketSyncApi->bitbucket_sync_import: #{e}"
|
112
|
-
end
|
113
|
-
```
|
114
|
-
|
115
|
-
### Parameters
|
116
|
-
|
117
|
-
|
118
|
-
Name | Type | Description | Notes
|
119
|
-
------------- | ------------- | ------------- | -------------
|
120
|
-
**id** | **String**| ID |
|
121
|
-
**bitbucket_sync_import_parameters** | [**BitbucketSyncImportParameters**](BitbucketSyncImportParameters.md)| |
|
122
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
123
|
-
|
124
|
-
### Return type
|
125
|
-
|
126
|
-
Response<(nil (empty response body))>
|
127
|
-
|
128
|
-
### Authorization
|
129
|
-
|
130
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
131
|
-
|
132
|
-
### HTTP request headers
|
133
|
-
|
134
|
-
- **Content-Type**: application/json
|
135
|
-
- **Accept**: Not defined
|
136
|
-
|
137
|
-
|
138
|
-
## bitbucket_syncs_list
|
139
|
-
|
140
|
-
> Array<BitbucketSync> bitbucket_syncs_list(opts)
|
141
|
-
|
142
|
-
List Bitbucket syncs
|
143
|
-
|
144
|
-
List all Bitbucket repositories for which synchronisation with Phrase Strings is activated.
|
145
|
-
|
146
|
-
### Example
|
147
|
-
|
148
|
-
```ruby
|
149
|
-
# load the gem
|
150
|
-
require 'phrase'
|
151
|
-
# setup authorization
|
152
|
-
Phrase.configure do |config|
|
153
|
-
# Configure HTTP basic authorization: Basic
|
154
|
-
config.username = 'YOUR USERNAME'
|
155
|
-
config.password = 'YOUR PASSWORD'
|
156
|
-
|
157
|
-
# Configure API key authorization: Token
|
158
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
159
|
-
config.api_key_prefix['Authorization'] = 'token'
|
160
|
-
end
|
161
|
-
|
162
|
-
api_instance = Phrase::BitbucketSyncApi.new
|
163
|
-
opts = {
|
164
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
165
|
-
account_id: 'abcd1234' # String | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
|
166
|
-
}
|
167
|
-
|
168
|
-
begin
|
169
|
-
#List Bitbucket syncs
|
170
|
-
result = api_instance.bitbucket_syncs_list(opts)
|
171
|
-
pp result
|
172
|
-
rescue Phrase::ApiError => e
|
173
|
-
puts "Exception when calling BitbucketSyncApi->bitbucket_syncs_list: #{e}"
|
174
|
-
end
|
175
|
-
```
|
176
|
-
|
177
|
-
### Parameters
|
178
|
-
|
179
|
-
|
180
|
-
Name | Type | Description | Notes
|
181
|
-
------------- | ------------- | ------------- | -------------
|
182
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
183
|
-
**account_id** | **String**| Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
184
|
-
|
185
|
-
### Return type
|
186
|
-
|
187
|
-
Response<([**Array<BitbucketSync>**](BitbucketSync.md))>
|
188
|
-
|
189
|
-
### Authorization
|
190
|
-
|
191
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
192
|
-
|
193
|
-
### HTTP request headers
|
194
|
-
|
195
|
-
- **Content-Type**: Not defined
|
196
|
-
- **Accept**: application/json
|
197
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::BitbucketSyncExportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**account_id** | **String** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::BitbucketSyncExportParameters.new(account_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::BitbucketSyncExportResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**status_path** | **String** | | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::BitbucketSyncExportResponse.new(status_path: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::BitbucketSyncImportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**account_id** | **String** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::BitbucketSyncImportParameters.new(account_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/GitHubSyncApi.md
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
# Phrase::GitHubSyncApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**github_sync_export**](GitHubSyncApi.md#github_sync_export) | **POST** /github_syncs/export | Export from Phrase Strings to GitHub
|
8
|
-
[**github_sync_import**](GitHubSyncApi.md#github_sync_import) | **POST** /github_syncs/import | Import to Phrase Strings from GitHub
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
## github_sync_export
|
13
|
-
|
14
|
-
> github_sync_export(github_sync_export_parameters, opts)
|
15
|
-
|
16
|
-
Export from Phrase Strings to GitHub
|
17
|
-
|
18
|
-
Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
19
|
-
|
20
|
-
### Example
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
# load the gem
|
24
|
-
require 'phrase'
|
25
|
-
# setup authorization
|
26
|
-
Phrase.configure do |config|
|
27
|
-
# Configure HTTP basic authorization: Basic
|
28
|
-
config.username = 'YOUR USERNAME'
|
29
|
-
config.password = 'YOUR PASSWORD'
|
30
|
-
|
31
|
-
# Configure API key authorization: Token
|
32
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
33
|
-
config.api_key_prefix['Authorization'] = 'token'
|
34
|
-
end
|
35
|
-
|
36
|
-
api_instance = Phrase::GitHubSyncApi.new
|
37
|
-
github_sync_export_parameters = Phrase::GithubSyncExportParameters.new # GithubSyncExportParameters |
|
38
|
-
opts = {
|
39
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
40
|
-
}
|
41
|
-
|
42
|
-
begin
|
43
|
-
#Export from Phrase Strings to GitHub
|
44
|
-
api_instance.github_sync_export(github_sync_export_parameters, opts)
|
45
|
-
rescue Phrase::ApiError => e
|
46
|
-
puts "Exception when calling GitHubSyncApi->github_sync_export: #{e}"
|
47
|
-
end
|
48
|
-
```
|
49
|
-
|
50
|
-
### Parameters
|
51
|
-
|
52
|
-
|
53
|
-
Name | Type | Description | Notes
|
54
|
-
------------- | ------------- | ------------- | -------------
|
55
|
-
**github_sync_export_parameters** | [**GithubSyncExportParameters**](GithubSyncExportParameters.md)| |
|
56
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
57
|
-
|
58
|
-
### Return type
|
59
|
-
|
60
|
-
Response<(nil (empty response body))>
|
61
|
-
|
62
|
-
### Authorization
|
63
|
-
|
64
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
65
|
-
|
66
|
-
### HTTP request headers
|
67
|
-
|
68
|
-
- **Content-Type**: application/json
|
69
|
-
- **Accept**: application/json
|
70
|
-
|
71
|
-
|
72
|
-
## github_sync_import
|
73
|
-
|
74
|
-
> github_sync_import(github_sync_import_parameters, opts)
|
75
|
-
|
76
|
-
Import to Phrase Strings from GitHub
|
77
|
-
|
78
|
-
Import files to Phrase Strings from your connected GitHub repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
79
|
-
|
80
|
-
### Example
|
81
|
-
|
82
|
-
```ruby
|
83
|
-
# load the gem
|
84
|
-
require 'phrase'
|
85
|
-
# setup authorization
|
86
|
-
Phrase.configure do |config|
|
87
|
-
# Configure HTTP basic authorization: Basic
|
88
|
-
config.username = 'YOUR USERNAME'
|
89
|
-
config.password = 'YOUR PASSWORD'
|
90
|
-
|
91
|
-
# Configure API key authorization: Token
|
92
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
93
|
-
config.api_key_prefix['Authorization'] = 'token'
|
94
|
-
end
|
95
|
-
|
96
|
-
api_instance = Phrase::GitHubSyncApi.new
|
97
|
-
github_sync_import_parameters = Phrase::GithubSyncImportParameters.new # GithubSyncImportParameters |
|
98
|
-
opts = {
|
99
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
100
|
-
}
|
101
|
-
|
102
|
-
begin
|
103
|
-
#Import to Phrase Strings from GitHub
|
104
|
-
api_instance.github_sync_import(github_sync_import_parameters, opts)
|
105
|
-
rescue Phrase::ApiError => e
|
106
|
-
puts "Exception when calling GitHubSyncApi->github_sync_import: #{e}"
|
107
|
-
end
|
108
|
-
```
|
109
|
-
|
110
|
-
### Parameters
|
111
|
-
|
112
|
-
|
113
|
-
Name | Type | Description | Notes
|
114
|
-
------------- | ------------- | ------------- | -------------
|
115
|
-
**github_sync_import_parameters** | [**GithubSyncImportParameters**](GithubSyncImportParameters.md)| |
|
116
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
117
|
-
|
118
|
-
### Return type
|
119
|
-
|
120
|
-
Response<(nil (empty response body))>
|
121
|
-
|
122
|
-
### Authorization
|
123
|
-
|
124
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
125
|
-
|
126
|
-
### HTTP request headers
|
127
|
-
|
128
|
-
- **Content-Type**: application/json
|
129
|
-
- **Accept**: application/json
|
130
|
-
|