phrase 1.0.1 → 1.0.2
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/README.md +50 -387
- data/docs/AccountsApi.md +2 -4
- data/docs/AuthorizationsApi.md +10 -14
- data/docs/BitbucketSyncApi.md +3 -6
- data/docs/BlacklistedKeysApi.md +10 -14
- data/docs/BranchesApi.md +12 -18
- data/docs/CommentsApi.md +13 -20
- data/docs/DistributionsApi.md +10 -14
- data/docs/FormatsApi.md +1 -2
- data/docs/GitLabSyncApi.md +7 -14
- data/docs/{GlossaryApi.md → GlossariesApi.md} +26 -30
- data/docs/GlossaryTermTranslationsApi.md +8 -10
- data/docs/GlossaryTermsApi.md +10 -14
- data/docs/InvitationsApi.md +11 -16
- data/docs/JobLocalesApi.md +12 -18
- data/docs/JobsApi.md +15 -24
- data/docs/KeysApi.md +18 -26
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/LocalesApi.md +13 -18
- data/docs/MembersApi.md +4 -8
- data/docs/OrdersApi.md +10 -14
- data/docs/ProjectCreateParameters.md +3 -1
- data/docs/ProjectsApi.md +10 -14
- data/docs/ReleasesApi.md +11 -16
- data/docs/ScreenshotMarkersApi.md +10 -14
- data/docs/ScreenshotsApi.md +10 -14
- data/docs/SpacesApi.md +13 -20
- data/docs/StyleGuidesApi.md +10 -14
- data/docs/TagsApi.md +9 -12
- 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/TranslationsApi.md +28 -44
- 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/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/docs/UploadCreateParameters.md +2 -2
- data/docs/UploadsApi.md +12 -10
- data/docs/UsersApi.md +1 -2
- data/docs/VersionsHistoryApi.md +2 -4
- data/docs/WebhooksApi.md +11 -16
- data/git_push.sh +2 -2
- data/lib/phrase.rb +9 -1
- data/lib/phrase/api/authorizations_api.rb +10 -8
- data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
- data/lib/phrase/api/blacklisted_keys_api.rb +10 -8
- data/lib/phrase/api/branches_api.rb +16 -14
- data/lib/phrase/api/comments_api.rb +19 -17
- data/lib/phrase/api/distributions_api.rb +10 -8
- data/lib/phrase/api/git_lab_sync_api.rb +3 -3
- data/lib/phrase/api/{glossary_api.rb → glossaries_api.rb} +31 -29
- data/lib/phrase/api/glossary_term_translations_api.rb +10 -8
- data/lib/phrase/api/glossary_terms_api.rb +10 -8
- data/lib/phrase/api/invitations_api.rb +10 -8
- data/lib/phrase/api/job_locales_api.rb +10 -8
- data/lib/phrase/api/jobs_api.rb +13 -11
- data/lib/phrase/api/keys_api.rb +14 -12
- data/lib/phrase/api/locales_api.rb +15 -13
- data/lib/phrase/api/members_api.rb +3 -3
- data/lib/phrase/api/orders_api.rb +10 -8
- data/lib/phrase/api/projects_api.rb +10 -8
- data/lib/phrase/api/releases_api.rb +10 -8
- data/lib/phrase/api/screenshot_markers_api.rb +10 -8
- data/lib/phrase/api/screenshots_api.rb +10 -8
- data/lib/phrase/api/spaces_api.rb +16 -14
- data/lib/phrase/api/style_guides_api.rb +10 -8
- data/lib/phrase/api/tags_api.rb +10 -8
- data/lib/phrase/api/teams_api.rb +840 -0
- data/lib/phrase/api/translations_api.rb +13 -11
- data/lib/phrase/api/uploads_api.rb +13 -5
- data/lib/phrase/api/webhooks_api.rb +13 -11
- 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_create_parameters.rb +14 -4
- 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/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/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/models/upload_create_parameters.rb +4 -8
- data/lib/phrase/version.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/blacklisted_keys_api_spec.rb +1 -1
- data/spec/api/branches_api_spec.rb +1 -1
- data/spec/api/comments_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/{glossary_api_spec.rb → glossaries_api_spec.rb} +7 -7
- data/spec/api/glossary_term_translations_api_spec.rb +1 -1
- data/spec/api/glossary_terms_api_spec.rb +1 -1
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/job_locales_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +1 -1
- data/spec/api/keys_api_spec.rb +3 -3
- data/spec/api/locales_api_spec.rb +2 -2
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/releases_api_spec.rb +1 -1
- data/spec/api/screenshot_markers_api_spec.rb +1 -1
- data/spec/api/screenshots_api_spec.rb +1 -1
- data/spec/api/spaces_api_spec.rb +1 -1
- data/spec/api/style_guides_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +185 -0
- data/spec/api/translations_api_spec.rb +4 -4
- data/spec/api/uploads_api_spec.rb +3 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/models/project_create_parameters_spec.rb +6 -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
- metadata +183 -151
data/docs/FormatsApi.md
CHANGED
|
@@ -29,8 +29,7 @@ Phrase.configure do |config|
|
|
|
29
29
|
|
|
30
30
|
# Configure API key authorization: Token
|
|
31
31
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
32
|
-
|
|
33
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
32
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
34
33
|
end
|
|
35
34
|
|
|
36
35
|
api_instance = Phrase::FormatsApi.new
|
data/docs/GitLabSyncApi.md
CHANGED
|
@@ -35,8 +35,7 @@ Phrase.configure do |config|
|
|
|
35
35
|
|
|
36
36
|
# Configure API key authorization: Token
|
|
37
37
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
38
|
-
|
|
39
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
38
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
40
39
|
end
|
|
41
40
|
|
|
42
41
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -98,8 +97,7 @@ Phrase.configure do |config|
|
|
|
98
97
|
|
|
99
98
|
# Configure API key authorization: Token
|
|
100
99
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
101
|
-
|
|
102
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
100
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
103
101
|
end
|
|
104
102
|
|
|
105
103
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -162,8 +160,7 @@ Phrase.configure do |config|
|
|
|
162
160
|
|
|
163
161
|
# Configure API key authorization: Token
|
|
164
162
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
165
|
-
|
|
166
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
163
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
167
164
|
end
|
|
168
165
|
|
|
169
166
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -230,8 +227,7 @@ Phrase.configure do |config|
|
|
|
230
227
|
|
|
231
228
|
# Configure API key authorization: Token
|
|
232
229
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
233
|
-
|
|
234
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
230
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
235
231
|
end
|
|
236
232
|
|
|
237
233
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -294,8 +290,7 @@ Phrase.configure do |config|
|
|
|
294
290
|
|
|
295
291
|
# Configure API key authorization: Token
|
|
296
292
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
297
|
-
|
|
298
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
293
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
299
294
|
end
|
|
300
295
|
|
|
301
296
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -356,8 +351,7 @@ Phrase.configure do |config|
|
|
|
356
351
|
|
|
357
352
|
# Configure API key authorization: Token
|
|
358
353
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
359
|
-
|
|
360
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
354
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
361
355
|
end
|
|
362
356
|
|
|
363
357
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -420,8 +414,7 @@ Phrase.configure do |config|
|
|
|
420
414
|
|
|
421
415
|
# Configure API key authorization: Token
|
|
422
416
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
423
|
-
|
|
424
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
417
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
425
418
|
end
|
|
426
419
|
|
|
427
420
|
api_instance = Phrase::GitLabSyncApi.new
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Phrase::
|
|
1
|
+
# Phrase::GlossariesApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.phrase.com/v2*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**glossaries_list**](
|
|
8
|
-
[**glossary_create**](
|
|
9
|
-
[**glossary_delete**](
|
|
10
|
-
[**glossary_show**](
|
|
11
|
-
[**glossary_update**](
|
|
7
|
+
[**glossaries_list**](GlossariesApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List glossaries
|
|
8
|
+
[**glossary_create**](GlossariesApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a glossary
|
|
9
|
+
[**glossary_delete**](GlossariesApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a glossary
|
|
10
|
+
[**glossary_show**](GlossariesApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single glossary
|
|
11
|
+
[**glossary_update**](GlossariesApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a glossary
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -33,11 +33,10 @@ Phrase.configure do |config|
|
|
|
33
33
|
|
|
34
34
|
# Configure API key authorization: Token
|
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
36
|
-
|
|
37
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
36
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
38
37
|
end
|
|
39
38
|
|
|
40
|
-
api_instance = Phrase::
|
|
39
|
+
api_instance = Phrase::GlossariesApi.new
|
|
41
40
|
account_id = 'account_id_example' # String | Account ID
|
|
42
41
|
opts = {
|
|
43
42
|
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
@@ -50,7 +49,7 @@ begin
|
|
|
50
49
|
result = api_instance.glossaries_list(account_id, opts)
|
|
51
50
|
pp result
|
|
52
51
|
rescue Phrase::ApiError => e
|
|
53
|
-
puts "Exception when calling
|
|
52
|
+
puts "Exception when calling GlossariesApi->glossaries_list: #{e}"
|
|
54
53
|
end
|
|
55
54
|
```
|
|
56
55
|
|
|
@@ -80,7 +79,7 @@ Response<([**Array<Glossary>**](Glossary.md))>
|
|
|
80
79
|
|
|
81
80
|
## glossary_create
|
|
82
81
|
|
|
83
|
-
> glossary_create(account_id, glossary_create_parameters, opts)
|
|
82
|
+
> Glossary glossary_create(account_id, glossary_create_parameters, opts)
|
|
84
83
|
|
|
85
84
|
Create a glossary
|
|
86
85
|
|
|
@@ -99,11 +98,10 @@ Phrase.configure do |config|
|
|
|
99
98
|
|
|
100
99
|
# Configure API key authorization: Token
|
|
101
100
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
102
|
-
|
|
103
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
101
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
104
102
|
end
|
|
105
103
|
|
|
106
|
-
api_instance = Phrase::
|
|
104
|
+
api_instance = Phrase::GlossariesApi.new
|
|
107
105
|
account_id = 'account_id_example' # String | Account ID
|
|
108
106
|
glossary_create_parameters = Phrase::GlossaryCreateParameters.new # GlossaryCreateParameters |
|
|
109
107
|
opts = {
|
|
@@ -112,9 +110,10 @@ opts = {
|
|
|
112
110
|
|
|
113
111
|
begin
|
|
114
112
|
#Create a glossary
|
|
115
|
-
api_instance.glossary_create(account_id, glossary_create_parameters, opts)
|
|
113
|
+
result = api_instance.glossary_create(account_id, glossary_create_parameters, opts)
|
|
114
|
+
pp result
|
|
116
115
|
rescue Phrase::ApiError => e
|
|
117
|
-
puts "Exception when calling
|
|
116
|
+
puts "Exception when calling GlossariesApi->glossary_create: #{e}"
|
|
118
117
|
end
|
|
119
118
|
```
|
|
120
119
|
|
|
@@ -129,7 +128,7 @@ Name | Type | Description | Notes
|
|
|
129
128
|
|
|
130
129
|
### Return type
|
|
131
130
|
|
|
132
|
-
Response<(
|
|
131
|
+
Response<([**Glossary**](Glossary.md))>
|
|
133
132
|
|
|
134
133
|
### Authorization
|
|
135
134
|
|
|
@@ -138,7 +137,7 @@ Response<(nil (empty response body))>
|
|
|
138
137
|
### HTTP request headers
|
|
139
138
|
|
|
140
139
|
- **Content-Type**: application/json
|
|
141
|
-
- **Accept**:
|
|
140
|
+
- **Accept**: application/json
|
|
142
141
|
|
|
143
142
|
|
|
144
143
|
## glossary_delete
|
|
@@ -162,11 +161,10 @@ Phrase.configure do |config|
|
|
|
162
161
|
|
|
163
162
|
# Configure API key authorization: Token
|
|
164
163
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
165
|
-
|
|
166
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
164
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
167
165
|
end
|
|
168
166
|
|
|
169
|
-
api_instance = Phrase::
|
|
167
|
+
api_instance = Phrase::GlossariesApi.new
|
|
170
168
|
account_id = 'account_id_example' # String | Account ID
|
|
171
169
|
id = 'id_example' # String | ID
|
|
172
170
|
opts = {
|
|
@@ -177,7 +175,7 @@ begin
|
|
|
177
175
|
#Delete a glossary
|
|
178
176
|
api_instance.glossary_delete(account_id, id, opts)
|
|
179
177
|
rescue Phrase::ApiError => e
|
|
180
|
-
puts "Exception when calling
|
|
178
|
+
puts "Exception when calling GlossariesApi->glossary_delete: #{e}"
|
|
181
179
|
end
|
|
182
180
|
```
|
|
183
181
|
|
|
@@ -225,11 +223,10 @@ Phrase.configure do |config|
|
|
|
225
223
|
|
|
226
224
|
# Configure API key authorization: Token
|
|
227
225
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
228
|
-
|
|
229
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
226
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
230
227
|
end
|
|
231
228
|
|
|
232
|
-
api_instance = Phrase::
|
|
229
|
+
api_instance = Phrase::GlossariesApi.new
|
|
233
230
|
account_id = 'account_id_example' # String | Account ID
|
|
234
231
|
id = 'id_example' # String | ID
|
|
235
232
|
opts = {
|
|
@@ -241,7 +238,7 @@ begin
|
|
|
241
238
|
result = api_instance.glossary_show(account_id, id, opts)
|
|
242
239
|
pp result
|
|
243
240
|
rescue Phrase::ApiError => e
|
|
244
|
-
puts "Exception when calling
|
|
241
|
+
puts "Exception when calling GlossariesApi->glossary_show: #{e}"
|
|
245
242
|
end
|
|
246
243
|
```
|
|
247
244
|
|
|
@@ -289,11 +286,10 @@ Phrase.configure do |config|
|
|
|
289
286
|
|
|
290
287
|
# Configure API key authorization: Token
|
|
291
288
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
292
|
-
|
|
293
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
289
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
294
290
|
end
|
|
295
291
|
|
|
296
|
-
api_instance = Phrase::
|
|
292
|
+
api_instance = Phrase::GlossariesApi.new
|
|
297
293
|
account_id = 'account_id_example' # String | Account ID
|
|
298
294
|
id = 'id_example' # String | ID
|
|
299
295
|
glossary_update_parameters = Phrase::GlossaryUpdateParameters.new # GlossaryUpdateParameters |
|
|
@@ -306,7 +302,7 @@ begin
|
|
|
306
302
|
result = api_instance.glossary_update(account_id, id, glossary_update_parameters, opts)
|
|
307
303
|
pp result
|
|
308
304
|
rescue Phrase::ApiError => e
|
|
309
|
-
puts "Exception when calling
|
|
305
|
+
puts "Exception when calling GlossariesApi->glossary_update: #{e}"
|
|
310
306
|
end
|
|
311
307
|
```
|
|
312
308
|
|
|
@@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|
|
12
12
|
|
|
13
13
|
## glossary_term_translation_create
|
|
14
14
|
|
|
15
|
-
> glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
|
|
15
|
+
> GlossaryTermTranslation glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
|
|
16
16
|
|
|
17
17
|
Create a glossary term translation
|
|
18
18
|
|
|
@@ -31,8 +31,7 @@ Phrase.configure do |config|
|
|
|
31
31
|
|
|
32
32
|
# Configure API key authorization: Token
|
|
33
33
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
34
|
-
|
|
35
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
34
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
36
35
|
end
|
|
37
36
|
|
|
38
37
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
|
@@ -46,7 +45,8 @@ opts = {
|
|
|
46
45
|
|
|
47
46
|
begin
|
|
48
47
|
#Create a glossary term translation
|
|
49
|
-
api_instance.glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
|
|
48
|
+
result = api_instance.glossary_term_translation_create(account_id, glossary_id, term_id, glossary_term_translation_create_parameters, opts)
|
|
49
|
+
pp result
|
|
50
50
|
rescue Phrase::ApiError => e
|
|
51
51
|
puts "Exception when calling GlossaryTermTranslationsApi->glossary_term_translation_create: #{e}"
|
|
52
52
|
end
|
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
|
65
65
|
|
|
66
66
|
### Return type
|
|
67
67
|
|
|
68
|
-
Response<(
|
|
68
|
+
Response<([**GlossaryTermTranslation**](GlossaryTermTranslation.md))>
|
|
69
69
|
|
|
70
70
|
### Authorization
|
|
71
71
|
|
|
@@ -74,7 +74,7 @@ Response<(nil (empty response body))>
|
|
|
74
74
|
### HTTP request headers
|
|
75
75
|
|
|
76
76
|
- **Content-Type**: application/json
|
|
77
|
-
- **Accept**:
|
|
77
|
+
- **Accept**: application/json
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
## glossary_term_translation_delete
|
|
@@ -98,8 +98,7 @@ Phrase.configure do |config|
|
|
|
98
98
|
|
|
99
99
|
# Configure API key authorization: Token
|
|
100
100
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
101
|
-
|
|
102
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
101
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
103
102
|
end
|
|
104
103
|
|
|
105
104
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
|
@@ -165,8 +164,7 @@ Phrase.configure do |config|
|
|
|
165
164
|
|
|
166
165
|
# Configure API key authorization: Token
|
|
167
166
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
168
|
-
|
|
169
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
167
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
170
168
|
end
|
|
171
169
|
|
|
172
170
|
api_instance = Phrase::GlossaryTermTranslationsApi.new
|
data/docs/GlossaryTermsApi.md
CHANGED
|
@@ -14,7 +14,7 @@ Method | HTTP request | Description
|
|
|
14
14
|
|
|
15
15
|
## glossary_term_create
|
|
16
16
|
|
|
17
|
-
> glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
|
|
17
|
+
> GlossaryTerm glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
|
|
18
18
|
|
|
19
19
|
Create a glossary term
|
|
20
20
|
|
|
@@ -33,8 +33,7 @@ Phrase.configure do |config|
|
|
|
33
33
|
|
|
34
34
|
# Configure API key authorization: Token
|
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
36
|
-
|
|
37
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
36
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
38
37
|
end
|
|
39
38
|
|
|
40
39
|
api_instance = Phrase::GlossaryTermsApi.new
|
|
@@ -47,7 +46,8 @@ opts = {
|
|
|
47
46
|
|
|
48
47
|
begin
|
|
49
48
|
#Create a glossary term
|
|
50
|
-
api_instance.glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
|
|
49
|
+
result = api_instance.glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
|
|
50
|
+
pp result
|
|
51
51
|
rescue Phrase::ApiError => e
|
|
52
52
|
puts "Exception when calling GlossaryTermsApi->glossary_term_create: #{e}"
|
|
53
53
|
end
|
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
|
65
65
|
|
|
66
66
|
### Return type
|
|
67
67
|
|
|
68
|
-
Response<(
|
|
68
|
+
Response<([**GlossaryTerm**](GlossaryTerm.md))>
|
|
69
69
|
|
|
70
70
|
### Authorization
|
|
71
71
|
|
|
@@ -74,7 +74,7 @@ Response<(nil (empty response body))>
|
|
|
74
74
|
### HTTP request headers
|
|
75
75
|
|
|
76
76
|
- **Content-Type**: application/json
|
|
77
|
-
- **Accept**:
|
|
77
|
+
- **Accept**: application/json
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
## glossary_term_delete
|
|
@@ -98,8 +98,7 @@ Phrase.configure do |config|
|
|
|
98
98
|
|
|
99
99
|
# Configure API key authorization: Token
|
|
100
100
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
101
|
-
|
|
102
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
101
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
103
102
|
end
|
|
104
103
|
|
|
105
104
|
api_instance = Phrase::GlossaryTermsApi.new
|
|
@@ -163,8 +162,7 @@ Phrase.configure do |config|
|
|
|
163
162
|
|
|
164
163
|
# Configure API key authorization: Token
|
|
165
164
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
166
|
-
|
|
167
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
165
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
168
166
|
end
|
|
169
167
|
|
|
170
168
|
api_instance = Phrase::GlossaryTermsApi.new
|
|
@@ -229,8 +227,7 @@ Phrase.configure do |config|
|
|
|
229
227
|
|
|
230
228
|
# Configure API key authorization: Token
|
|
231
229
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
232
|
-
|
|
233
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
230
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
234
231
|
end
|
|
235
232
|
|
|
236
233
|
api_instance = Phrase::GlossaryTermsApi.new
|
|
@@ -297,8 +294,7 @@ Phrase.configure do |config|
|
|
|
297
294
|
|
|
298
295
|
# Configure API key authorization: Token
|
|
299
296
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
300
|
-
|
|
301
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
297
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
302
298
|
end
|
|
303
299
|
|
|
304
300
|
api_instance = Phrase::GlossaryTermsApi.new
|
data/docs/InvitationsApi.md
CHANGED
|
@@ -15,7 +15,7 @@ Method | HTTP request | Description
|
|
|
15
15
|
|
|
16
16
|
## invitation_create
|
|
17
17
|
|
|
18
|
-
> invitation_create(account_id, invitation_create_parameters, opts)
|
|
18
|
+
> Invitation invitation_create(account_id, invitation_create_parameters, opts)
|
|
19
19
|
|
|
20
20
|
Create a new invitation
|
|
21
21
|
|
|
@@ -34,8 +34,7 @@ Phrase.configure do |config|
|
|
|
34
34
|
|
|
35
35
|
# Configure API key authorization: Token
|
|
36
36
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
37
|
-
|
|
38
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
37
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
39
38
|
end
|
|
40
39
|
|
|
41
40
|
api_instance = Phrase::InvitationsApi.new
|
|
@@ -47,7 +46,8 @@ opts = {
|
|
|
47
46
|
|
|
48
47
|
begin
|
|
49
48
|
#Create a new invitation
|
|
50
|
-
api_instance.invitation_create(account_id, invitation_create_parameters, opts)
|
|
49
|
+
result = api_instance.invitation_create(account_id, invitation_create_parameters, opts)
|
|
50
|
+
pp result
|
|
51
51
|
rescue Phrase::ApiError => e
|
|
52
52
|
puts "Exception when calling InvitationsApi->invitation_create: #{e}"
|
|
53
53
|
end
|
|
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
|
|
|
64
64
|
|
|
65
65
|
### Return type
|
|
66
66
|
|
|
67
|
-
Response<(
|
|
67
|
+
Response<([**Invitation**](Invitation.md))>
|
|
68
68
|
|
|
69
69
|
### Authorization
|
|
70
70
|
|
|
@@ -73,7 +73,7 @@ Response<(nil (empty response body))>
|
|
|
73
73
|
### HTTP request headers
|
|
74
74
|
|
|
75
75
|
- **Content-Type**: application/json
|
|
76
|
-
- **Accept**:
|
|
76
|
+
- **Accept**: application/json
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
## invitation_delete
|
|
@@ -97,8 +97,7 @@ Phrase.configure do |config|
|
|
|
97
97
|
|
|
98
98
|
# Configure API key authorization: Token
|
|
99
99
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
100
|
-
|
|
101
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
100
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
102
101
|
end
|
|
103
102
|
|
|
104
103
|
api_instance = Phrase::InvitationsApi.new
|
|
@@ -160,8 +159,7 @@ Phrase.configure do |config|
|
|
|
160
159
|
|
|
161
160
|
# Configure API key authorization: Token
|
|
162
161
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
163
|
-
|
|
164
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
162
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
165
163
|
end
|
|
166
164
|
|
|
167
165
|
api_instance = Phrase::InvitationsApi.new
|
|
@@ -224,8 +222,7 @@ Phrase.configure do |config|
|
|
|
224
222
|
|
|
225
223
|
# Configure API key authorization: Token
|
|
226
224
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
227
|
-
|
|
228
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
225
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
229
226
|
end
|
|
230
227
|
|
|
231
228
|
api_instance = Phrase::InvitationsApi.new
|
|
@@ -288,8 +285,7 @@ Phrase.configure do |config|
|
|
|
288
285
|
|
|
289
286
|
# Configure API key authorization: Token
|
|
290
287
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
291
|
-
|
|
292
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
288
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
293
289
|
end
|
|
294
290
|
|
|
295
291
|
api_instance = Phrase::InvitationsApi.new
|
|
@@ -354,8 +350,7 @@ Phrase.configure do |config|
|
|
|
354
350
|
|
|
355
351
|
# Configure API key authorization: Token
|
|
356
352
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
357
|
-
|
|
358
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
|
353
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
359
354
|
end
|
|
360
355
|
|
|
361
356
|
api_instance = Phrase::InvitationsApi.new
|