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
@@ -30,8 +30,7 @@ Phrase.configure do |config|
30
30
 
31
31
  # Configure API key authorization: Token
32
32
  config.api_key['Authorization'] = 'YOUR API KEY'
33
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
- #config.api_key_prefix['Authorization'] = 'Bearer'
33
+ config.api_key_prefix['Authorization'] = 'token'
35
34
  end
36
35
 
37
36
  api_instance = Phrase::AccountsApi.new
@@ -92,8 +91,7 @@ Phrase.configure do |config|
92
91
 
93
92
  # Configure API key authorization: Token
94
93
  config.api_key['Authorization'] = 'YOUR API KEY'
95
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
96
- #config.api_key_prefix['Authorization'] = 'Bearer'
94
+ config.api_key_prefix['Authorization'] = 'token'
97
95
  end
98
96
 
99
97
  api_instance = Phrase::AccountsApi.new
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## authorization_create
16
16
 
17
- > authorization_create(authorization_create_parameters, opts)
17
+ > AuthorizationWithToken authorization_create(authorization_create_parameters, opts)
18
18
 
19
19
  Create an authorization
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::AuthorizationsApi.new
@@ -45,7 +44,8 @@ opts = {
45
44
 
46
45
  begin
47
46
  #Create an authorization
48
- api_instance.authorization_create(authorization_create_parameters, opts)
47
+ result = api_instance.authorization_create(authorization_create_parameters, opts)
48
+ pp result
49
49
  rescue Phrase::ApiError => e
50
50
  puts "Exception when calling AuthorizationsApi->authorization_create: #{e}"
51
51
  end
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
61
61
 
62
62
  ### Return type
63
63
 
64
- Response<(nil (empty response body))>
64
+ Response<([**AuthorizationWithToken**](AuthorizationWithToken.md))>
65
65
 
66
66
  ### Authorization
67
67
 
@@ -70,7 +70,7 @@ Response<(nil (empty response body))>
70
70
  ### HTTP request headers
71
71
 
72
72
  - **Content-Type**: application/json
73
- - **Accept**: Not defined
73
+ - **Accept**: application/json
74
74
 
75
75
 
76
76
  ## authorization_delete
@@ -94,8 +94,7 @@ Phrase.configure do |config|
94
94
 
95
95
  # Configure API key authorization: Token
96
96
  config.api_key['Authorization'] = 'YOUR API KEY'
97
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
98
- #config.api_key_prefix['Authorization'] = 'Bearer'
97
+ config.api_key_prefix['Authorization'] = 'token'
99
98
  end
100
99
 
101
100
  api_instance = Phrase::AuthorizationsApi.new
@@ -155,8 +154,7 @@ Phrase.configure do |config|
155
154
 
156
155
  # Configure API key authorization: Token
157
156
  config.api_key['Authorization'] = 'YOUR API KEY'
158
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
159
- #config.api_key_prefix['Authorization'] = 'Bearer'
157
+ config.api_key_prefix['Authorization'] = 'token'
160
158
  end
161
159
 
162
160
  api_instance = Phrase::AuthorizationsApi.new
@@ -217,8 +215,7 @@ Phrase.configure do |config|
217
215
 
218
216
  # Configure API key authorization: Token
219
217
  config.api_key['Authorization'] = 'YOUR API KEY'
220
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
221
- #config.api_key_prefix['Authorization'] = 'Bearer'
218
+ config.api_key_prefix['Authorization'] = 'token'
222
219
  end
223
220
 
224
221
  api_instance = Phrase::AuthorizationsApi.new
@@ -281,8 +278,7 @@ Phrase.configure do |config|
281
278
 
282
279
  # Configure API key authorization: Token
283
280
  config.api_key['Authorization'] = 'YOUR API KEY'
284
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
285
- #config.api_key_prefix['Authorization'] = 'Bearer'
281
+ config.api_key_prefix['Authorization'] = 'token'
286
282
  end
287
283
 
288
284
  api_instance = Phrase::AuthorizationsApi.new
@@ -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::BitbucketSyncApi.new
@@ -95,8 +94,7 @@ Phrase.configure do |config|
95
94
 
96
95
  # Configure API key authorization: Token
97
96
  config.api_key['Authorization'] = 'YOUR API KEY'
98
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
99
- #config.api_key_prefix['Authorization'] = 'Bearer'
97
+ config.api_key_prefix['Authorization'] = 'token'
100
98
  end
101
99
 
102
100
  api_instance = Phrase::BitbucketSyncApi.new
@@ -158,8 +156,7 @@ Phrase.configure do |config|
158
156
 
159
157
  # Configure API key authorization: Token
160
158
  config.api_key['Authorization'] = 'YOUR API KEY'
161
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
162
- #config.api_key_prefix['Authorization'] = 'Bearer'
159
+ config.api_key_prefix['Authorization'] = 'token'
163
160
  end
164
161
 
165
162
  api_instance = Phrase::BitbucketSyncApi.new
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## blacklisted_key_create
16
16
 
17
- > blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
17
+ > BlacklistedKey blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
18
18
 
19
19
  Create a blacklisted key
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::BlacklistedKeysApi.new
@@ -46,7 +45,8 @@ opts = {
46
45
 
47
46
  begin
48
47
  #Create a blacklisted key
49
- api_instance.blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
48
+ result = api_instance.blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts)
49
+ pp result
50
50
  rescue Phrase::ApiError => e
51
51
  puts "Exception when calling BlacklistedKeysApi->blacklisted_key_create: #{e}"
52
52
  end
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
63
63
 
64
64
  ### Return type
65
65
 
66
- Response<(nil (empty response body))>
66
+ Response<([**BlacklistedKey**](BlacklistedKey.md))>
67
67
 
68
68
  ### Authorization
69
69
 
@@ -72,7 +72,7 @@ Response<(nil (empty response body))>
72
72
  ### HTTP request headers
73
73
 
74
74
  - **Content-Type**: application/json
75
- - **Accept**: Not defined
75
+ - **Accept**: application/json
76
76
 
77
77
 
78
78
  ## blacklisted_key_delete
@@ -96,8 +96,7 @@ Phrase.configure do |config|
96
96
 
97
97
  # Configure API key authorization: Token
98
98
  config.api_key['Authorization'] = 'YOUR API KEY'
99
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100
- #config.api_key_prefix['Authorization'] = 'Bearer'
99
+ config.api_key_prefix['Authorization'] = 'token'
101
100
  end
102
101
 
103
102
  api_instance = Phrase::BlacklistedKeysApi.new
@@ -159,8 +158,7 @@ Phrase.configure do |config|
159
158
 
160
159
  # Configure API key authorization: Token
161
160
  config.api_key['Authorization'] = 'YOUR API KEY'
162
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
163
- #config.api_key_prefix['Authorization'] = 'Bearer'
161
+ config.api_key_prefix['Authorization'] = 'token'
164
162
  end
165
163
 
166
164
  api_instance = Phrase::BlacklistedKeysApi.new
@@ -223,8 +221,7 @@ Phrase.configure do |config|
223
221
 
224
222
  # Configure API key authorization: Token
225
223
  config.api_key['Authorization'] = 'YOUR API KEY'
226
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
227
- #config.api_key_prefix['Authorization'] = 'Bearer'
224
+ config.api_key_prefix['Authorization'] = 'token'
228
225
  end
229
226
 
230
227
  api_instance = Phrase::BlacklistedKeysApi.new
@@ -289,8 +286,7 @@ 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
292
  api_instance = Phrase::BlacklistedKeysApi.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::BranchesApi.new
@@ -79,7 +78,7 @@ Response<(nil (empty response body))>
79
78
 
80
79
  ## branch_create
81
80
 
82
- > branch_create(project_id, branch_create_parameters, opts)
81
+ > Branch branch_create(project_id, branch_create_parameters, opts)
83
82
 
84
83
  Create a branch
85
84
 
@@ -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::BranchesApi.new
@@ -111,7 +109,8 @@ opts = {
111
109
 
112
110
  begin
113
111
  #Create a branch
114
- api_instance.branch_create(project_id, branch_create_parameters, opts)
112
+ result = api_instance.branch_create(project_id, branch_create_parameters, opts)
113
+ pp result
115
114
  rescue Phrase::ApiError => e
116
115
  puts "Exception when calling BranchesApi->branch_create: #{e}"
117
116
  end
@@ -128,7 +127,7 @@ Name | Type | Description | Notes
128
127
 
129
128
  ### Return type
130
129
 
131
- Response<(nil (empty response body))>
130
+ Response<([**Branch**](Branch.md))>
132
131
 
133
132
  ### Authorization
134
133
 
@@ -137,7 +136,7 @@ Response<(nil (empty response body))>
137
136
  ### HTTP request headers
138
137
 
139
138
  - **Content-Type**: application/json
140
- - **Accept**: Not defined
139
+ - **Accept**: application/json
141
140
 
142
141
 
143
142
  ## branch_delete
@@ -161,8 +160,7 @@ Phrase.configure do |config|
161
160
 
162
161
  # Configure API key authorization: Token
163
162
  config.api_key['Authorization'] = 'YOUR API KEY'
164
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
165
- #config.api_key_prefix['Authorization'] = 'Bearer'
163
+ config.api_key_prefix['Authorization'] = 'token'
166
164
  end
167
165
 
168
166
  api_instance = Phrase::BranchesApi.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::BranchesApi.new
@@ -289,8 +286,7 @@ 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
292
  api_instance = Phrase::BranchesApi.new
@@ -353,8 +349,7 @@ Phrase.configure do |config|
353
349
 
354
350
  # Configure API key authorization: Token
355
351
  config.api_key['Authorization'] = 'YOUR API KEY'
356
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
357
- #config.api_key_prefix['Authorization'] = 'Bearer'
352
+ config.api_key_prefix['Authorization'] = 'token'
358
353
  end
359
354
 
360
355
  api_instance = Phrase::BranchesApi.new
@@ -419,8 +414,7 @@ Phrase.configure do |config|
419
414
 
420
415
  # Configure API key authorization: Token
421
416
  config.api_key['Authorization'] = 'YOUR API KEY'
422
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
423
- #config.api_key_prefix['Authorization'] = 'Bearer'
417
+ config.api_key_prefix['Authorization'] = 'token'
424
418
  end
425
419
 
426
420
  api_instance = Phrase::BranchesApi.new
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
  ## comment_create
19
19
 
20
- > comment_create(project_id, key_id, comment_create_parameters, opts)
20
+ > Comment comment_create(project_id, key_id, comment_create_parameters, opts)
21
21
 
22
22
  Create a comment
23
23
 
@@ -36,8 +36,7 @@ Phrase.configure do |config|
36
36
 
37
37
  # Configure API key authorization: Token
38
38
  config.api_key['Authorization'] = 'YOUR API KEY'
39
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
40
- #config.api_key_prefix['Authorization'] = 'Bearer'
39
+ config.api_key_prefix['Authorization'] = 'token'
41
40
  end
42
41
 
43
42
  api_instance = Phrase::CommentsApi.new
@@ -50,7 +49,8 @@ opts = {
50
49
 
51
50
  begin
52
51
  #Create a comment
53
- api_instance.comment_create(project_id, key_id, comment_create_parameters, opts)
52
+ result = api_instance.comment_create(project_id, key_id, comment_create_parameters, opts)
53
+ pp result
54
54
  rescue Phrase::ApiError => e
55
55
  puts "Exception when calling CommentsApi->comment_create: #{e}"
56
56
  end
@@ -68,7 +68,7 @@ Name | Type | Description | Notes
68
68
 
69
69
  ### Return type
70
70
 
71
- Response<(nil (empty response body))>
71
+ Response<([**Comment**](Comment.md))>
72
72
 
73
73
  ### Authorization
74
74
 
@@ -77,7 +77,7 @@ Response<(nil (empty response body))>
77
77
  ### HTTP request headers
78
78
 
79
79
  - **Content-Type**: application/json
80
- - **Accept**: Not defined
80
+ - **Accept**: application/json
81
81
 
82
82
 
83
83
  ## comment_delete
@@ -101,8 +101,7 @@ Phrase.configure do |config|
101
101
 
102
102
  # Configure API key authorization: Token
103
103
  config.api_key['Authorization'] = 'YOUR API KEY'
104
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
- #config.api_key_prefix['Authorization'] = 'Bearer'
104
+ config.api_key_prefix['Authorization'] = 'token'
106
105
  end
107
106
 
108
107
  api_instance = Phrase::CommentsApi.new
@@ -168,8 +167,7 @@ Phrase.configure do |config|
168
167
 
169
168
  # Configure API key authorization: Token
170
169
  config.api_key['Authorization'] = 'YOUR API KEY'
171
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
172
- #config.api_key_prefix['Authorization'] = 'Bearer'
170
+ config.api_key_prefix['Authorization'] = 'token'
173
171
  end
174
172
 
175
173
  api_instance = Phrase::CommentsApi.new
@@ -235,8 +233,7 @@ Phrase.configure do |config|
235
233
 
236
234
  # Configure API key authorization: Token
237
235
  config.api_key['Authorization'] = 'YOUR API KEY'
238
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
239
- #config.api_key_prefix['Authorization'] = 'Bearer'
236
+ config.api_key_prefix['Authorization'] = 'token'
240
237
  end
241
238
 
242
239
  api_instance = Phrase::CommentsApi.new
@@ -302,8 +299,7 @@ Phrase.configure do |config|
302
299
 
303
300
  # Configure API key authorization: Token
304
301
  config.api_key['Authorization'] = 'YOUR API KEY'
305
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
306
- #config.api_key_prefix['Authorization'] = 'Bearer'
302
+ config.api_key_prefix['Authorization'] = 'token'
307
303
  end
308
304
 
309
305
  api_instance = Phrase::CommentsApi.new
@@ -369,8 +365,7 @@ Phrase.configure do |config|
369
365
 
370
366
  # Configure API key authorization: Token
371
367
  config.api_key['Authorization'] = 'YOUR API KEY'
372
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
373
- #config.api_key_prefix['Authorization'] = 'Bearer'
368
+ config.api_key_prefix['Authorization'] = 'token'
374
369
  end
375
370
 
376
371
  api_instance = Phrase::CommentsApi.new
@@ -437,8 +432,7 @@ Phrase.configure do |config|
437
432
 
438
433
  # Configure API key authorization: Token
439
434
  config.api_key['Authorization'] = 'YOUR API KEY'
440
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
441
- #config.api_key_prefix['Authorization'] = 'Bearer'
435
+ config.api_key_prefix['Authorization'] = 'token'
442
436
  end
443
437
 
444
438
  api_instance = Phrase::CommentsApi.new
@@ -505,8 +499,7 @@ Phrase.configure do |config|
505
499
 
506
500
  # Configure API key authorization: Token
507
501
  config.api_key['Authorization'] = 'YOUR API KEY'
508
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
509
- #config.api_key_prefix['Authorization'] = 'Bearer'
502
+ config.api_key_prefix['Authorization'] = 'token'
510
503
  end
511
504
 
512
505
  api_instance = Phrase::CommentsApi.new
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## distribution_create
16
16
 
17
- > distribution_create(account_id, distribution_create_parameters, opts)
17
+ > Distribution distribution_create(account_id, distribution_create_parameters, opts)
18
18
 
19
19
  Create a distribution
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::DistributionsApi.new
@@ -46,7 +45,8 @@ opts = {
46
45
 
47
46
  begin
48
47
  #Create a distribution
49
- api_instance.distribution_create(account_id, distribution_create_parameters, opts)
48
+ result = api_instance.distribution_create(account_id, distribution_create_parameters, opts)
49
+ pp result
50
50
  rescue Phrase::ApiError => e
51
51
  puts "Exception when calling DistributionsApi->distribution_create: #{e}"
52
52
  end
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
63
63
 
64
64
  ### Return type
65
65
 
66
- Response<(nil (empty response body))>
66
+ Response<([**Distribution**](Distribution.md))>
67
67
 
68
68
  ### Authorization
69
69
 
@@ -72,7 +72,7 @@ Response<(nil (empty response body))>
72
72
  ### HTTP request headers
73
73
 
74
74
  - **Content-Type**: application/json
75
- - **Accept**: Not defined
75
+ - **Accept**: application/json
76
76
 
77
77
 
78
78
  ## distribution_delete
@@ -96,8 +96,7 @@ Phrase.configure do |config|
96
96
 
97
97
  # Configure API key authorization: Token
98
98
  config.api_key['Authorization'] = 'YOUR API KEY'
99
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100
- #config.api_key_prefix['Authorization'] = 'Bearer'
99
+ config.api_key_prefix['Authorization'] = 'token'
101
100
  end
102
101
 
103
102
  api_instance = Phrase::DistributionsApi.new
@@ -159,8 +158,7 @@ Phrase.configure do |config|
159
158
 
160
159
  # Configure API key authorization: Token
161
160
  config.api_key['Authorization'] = 'YOUR API KEY'
162
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
163
- #config.api_key_prefix['Authorization'] = 'Bearer'
161
+ config.api_key_prefix['Authorization'] = 'token'
164
162
  end
165
163
 
166
164
  api_instance = Phrase::DistributionsApi.new
@@ -223,8 +221,7 @@ Phrase.configure do |config|
223
221
 
224
222
  # Configure API key authorization: Token
225
223
  config.api_key['Authorization'] = 'YOUR API KEY'
226
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
227
- #config.api_key_prefix['Authorization'] = 'Bearer'
224
+ config.api_key_prefix['Authorization'] = 'token'
228
225
  end
229
226
 
230
227
  api_instance = Phrase::DistributionsApi.new
@@ -289,8 +286,7 @@ 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
292
  api_instance = Phrase::DistributionsApi.new