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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -387
  3. data/docs/AccountsApi.md +2 -4
  4. data/docs/AuthorizationsApi.md +10 -14
  5. data/docs/BitbucketSyncApi.md +3 -6
  6. data/docs/BlacklistedKeysApi.md +10 -14
  7. data/docs/BranchesApi.md +12 -18
  8. data/docs/CommentsApi.md +13 -20
  9. data/docs/DistributionsApi.md +10 -14
  10. data/docs/FormatsApi.md +1 -2
  11. data/docs/GitLabSyncApi.md +7 -14
  12. data/docs/{GlossaryApi.md → GlossariesApi.md} +26 -30
  13. data/docs/GlossaryTermTranslationsApi.md +8 -10
  14. data/docs/GlossaryTermsApi.md +10 -14
  15. data/docs/InvitationsApi.md +11 -16
  16. data/docs/JobLocalesApi.md +12 -18
  17. data/docs/JobsApi.md +15 -24
  18. data/docs/KeysApi.md +18 -26
  19. data/docs/KeysSearchParameters.md +1 -1
  20. data/docs/KeysTagParameters.md +1 -1
  21. data/docs/KeysUntagParameters.md +1 -1
  22. data/docs/LocalesApi.md +13 -18
  23. data/docs/MembersApi.md +4 -8
  24. data/docs/OrdersApi.md +10 -14
  25. data/docs/ProjectCreateParameters.md +3 -1
  26. data/docs/ProjectsApi.md +10 -14
  27. data/docs/ReleasesApi.md +11 -16
  28. data/docs/ScreenshotMarkersApi.md +10 -14
  29. data/docs/ScreenshotsApi.md +10 -14
  30. data/docs/SpacesApi.md +13 -20
  31. data/docs/StyleGuidesApi.md +10 -14
  32. data/docs/TagsApi.md +9 -12
  33. data/docs/Team.md +29 -0
  34. data/docs/TeamCreateParameters.md +17 -0
  35. data/docs/TeamDetail.md +29 -0
  36. data/docs/TeamUpdateParameters.md +17 -0
  37. data/docs/TeamsApi.md +721 -0
  38. data/docs/TeamsProjectsCreateParameters.md +17 -0
  39. data/docs/TeamsSpacesCreateParameters.md +17 -0
  40. data/docs/TeamsUsersCreateParameters.md +17 -0
  41. data/docs/TranslationsApi.md +28 -44
  42. data/docs/TranslationsExcludeParameters.md +1 -1
  43. data/docs/TranslationsIncludeParameters.md +1 -1
  44. data/docs/TranslationsReviewParameters.md +1 -1
  45. data/docs/TranslationsSearchParameters.md +1 -1
  46. data/docs/TranslationsUnverifyParameters.md +1 -1
  47. data/docs/TranslationsVerifyParameters.md +1 -1
  48. data/docs/UploadCreateParameters.md +2 -2
  49. data/docs/UploadsApi.md +12 -10
  50. data/docs/UsersApi.md +1 -2
  51. data/docs/VersionsHistoryApi.md +2 -4
  52. data/docs/WebhooksApi.md +11 -16
  53. data/git_push.sh +2 -2
  54. data/lib/phrase.rb +9 -1
  55. data/lib/phrase/api/authorizations_api.rb +10 -8
  56. data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
  57. data/lib/phrase/api/blacklisted_keys_api.rb +10 -8
  58. data/lib/phrase/api/branches_api.rb +16 -14
  59. data/lib/phrase/api/comments_api.rb +19 -17
  60. data/lib/phrase/api/distributions_api.rb +10 -8
  61. data/lib/phrase/api/git_lab_sync_api.rb +3 -3
  62. data/lib/phrase/api/{glossary_api.rb → glossaries_api.rb} +31 -29
  63. data/lib/phrase/api/glossary_term_translations_api.rb +10 -8
  64. data/lib/phrase/api/glossary_terms_api.rb +10 -8
  65. data/lib/phrase/api/invitations_api.rb +10 -8
  66. data/lib/phrase/api/job_locales_api.rb +10 -8
  67. data/lib/phrase/api/jobs_api.rb +13 -11
  68. data/lib/phrase/api/keys_api.rb +14 -12
  69. data/lib/phrase/api/locales_api.rb +15 -13
  70. data/lib/phrase/api/members_api.rb +3 -3
  71. data/lib/phrase/api/orders_api.rb +10 -8
  72. data/lib/phrase/api/projects_api.rb +10 -8
  73. data/lib/phrase/api/releases_api.rb +10 -8
  74. data/lib/phrase/api/screenshot_markers_api.rb +10 -8
  75. data/lib/phrase/api/screenshots_api.rb +10 -8
  76. data/lib/phrase/api/spaces_api.rb +16 -14
  77. data/lib/phrase/api/style_guides_api.rb +10 -8
  78. data/lib/phrase/api/tags_api.rb +10 -8
  79. data/lib/phrase/api/teams_api.rb +840 -0
  80. data/lib/phrase/api/translations_api.rb +13 -11
  81. data/lib/phrase/api/uploads_api.rb +13 -5
  82. data/lib/phrase/api/webhooks_api.rb +13 -11
  83. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  84. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  85. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  86. data/lib/phrase/models/project_create_parameters.rb +14 -4
  87. data/lib/phrase/models/team.rb +254 -0
  88. data/lib/phrase/models/team_create_parameters.rb +195 -0
  89. data/lib/phrase/models/team_detail.rb +254 -0
  90. data/lib/phrase/models/team_update_parameters.rb +195 -0
  91. data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
  92. data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
  93. data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
  94. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  95. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  96. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  97. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  98. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  99. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  100. data/lib/phrase/models/upload_create_parameters.rb +4 -8
  101. data/lib/phrase/version.rb +1 -1
  102. data/spec/api/authorizations_api_spec.rb +1 -1
  103. data/spec/api/blacklisted_keys_api_spec.rb +1 -1
  104. data/spec/api/branches_api_spec.rb +1 -1
  105. data/spec/api/comments_api_spec.rb +1 -1
  106. data/spec/api/distributions_api_spec.rb +1 -1
  107. data/spec/api/{glossary_api_spec.rb → glossaries_api_spec.rb} +7 -7
  108. data/spec/api/glossary_term_translations_api_spec.rb +1 -1
  109. data/spec/api/glossary_terms_api_spec.rb +1 -1
  110. data/spec/api/invitations_api_spec.rb +1 -1
  111. data/spec/api/job_locales_api_spec.rb +1 -1
  112. data/spec/api/jobs_api_spec.rb +1 -1
  113. data/spec/api/keys_api_spec.rb +3 -3
  114. data/spec/api/locales_api_spec.rb +2 -2
  115. data/spec/api/orders_api_spec.rb +1 -1
  116. data/spec/api/projects_api_spec.rb +1 -1
  117. data/spec/api/releases_api_spec.rb +1 -1
  118. data/spec/api/screenshot_markers_api_spec.rb +1 -1
  119. data/spec/api/screenshots_api_spec.rb +1 -1
  120. data/spec/api/spaces_api_spec.rb +1 -1
  121. data/spec/api/style_guides_api_spec.rb +1 -1
  122. data/spec/api/tags_api_spec.rb +1 -1
  123. data/spec/api/teams_api_spec.rb +185 -0
  124. data/spec/api/translations_api_spec.rb +4 -4
  125. data/spec/api/uploads_api_spec.rb +3 -1
  126. data/spec/api/webhooks_api_spec.rb +1 -1
  127. data/spec/models/project_create_parameters_spec.rb +6 -0
  128. data/spec/models/team_create_parameters_spec.rb +29 -0
  129. data/spec/models/team_detail_spec.rb +65 -0
  130. data/spec/models/team_spec.rb +65 -0
  131. data/spec/models/team_update_parameters_spec.rb +29 -0
  132. data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
  133. data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
  134. data/spec/models/teams_users_create_parameters_spec.rb +29 -0
  135. metadata +183 -151
@@ -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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
@@ -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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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::GlossaryApi
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**](GlossaryApi.md#glossaries_list) | **GET** /accounts/{account_id}/glossaries | List glossaries
8
- [**glossary_create**](GlossaryApi.md#glossary_create) | **POST** /accounts/{account_id}/glossaries | Create a glossary
9
- [**glossary_delete**](GlossaryApi.md#glossary_delete) | **DELETE** /accounts/{account_id}/glossaries/{id} | Delete a glossary
10
- [**glossary_show**](GlossaryApi.md#glossary_show) | **GET** /accounts/{account_id}/glossaries/{id} | Get a single glossary
11
- [**glossary_update**](GlossaryApi.md#glossary_update) | **PATCH** /accounts/{account_id}/glossaries/{id} | Update a glossary
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
- #config.api_key_prefix['Authorization'] = 'Bearer'
36
+ config.api_key_prefix['Authorization'] = 'token'
38
37
  end
39
38
 
40
- api_instance = Phrase::GlossaryApi.new
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 GlossaryApi->glossaries_list: #{e}"
52
+ puts "Exception when calling GlossariesApi->glossaries_list: #{e}"
54
53
  end
55
54
  ```
56
55
 
@@ -80,7 +79,7 @@ Response<([**Array&lt;Glossary&gt;**](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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
103
- #config.api_key_prefix['Authorization'] = 'Bearer'
101
+ config.api_key_prefix['Authorization'] = 'token'
104
102
  end
105
103
 
106
- api_instance = Phrase::GlossaryApi.new
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 GlossaryApi->glossary_create: #{e}"
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<(nil (empty response body))>
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**: Not defined
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
166
- #config.api_key_prefix['Authorization'] = 'Bearer'
164
+ config.api_key_prefix['Authorization'] = 'token'
167
165
  end
168
166
 
169
- api_instance = Phrase::GlossaryApi.new
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 GlossaryApi->glossary_delete: #{e}"
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
229
- #config.api_key_prefix['Authorization'] = 'Bearer'
226
+ config.api_key_prefix['Authorization'] = 'token'
230
227
  end
231
228
 
232
- api_instance = Phrase::GlossaryApi.new
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 GlossaryApi->glossary_show: #{e}"
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
293
- #config.api_key_prefix['Authorization'] = 'Bearer'
289
+ config.api_key_prefix['Authorization'] = 'token'
294
290
  end
295
291
 
296
- api_instance = Phrase::GlossaryApi.new
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 GlossaryApi->glossary_update: #{e}"
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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<(nil (empty response body))>
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**: Not defined
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
@@ -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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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<(nil (empty response body))>
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**: Not defined
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
@@ -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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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<(nil (empty response body))>
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**: Not defined
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
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