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
@@ -32,8 +32,7 @@ Phrase.configure do |config|
32
32
 
33
33
  # Configure API key authorization: Token
34
34
  config.api_key['Authorization'] = 'YOUR API KEY'
35
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
- #config.api_key_prefix['Authorization'] = 'Bearer'
35
+ config.api_key_prefix['Authorization'] = 'token'
37
36
  end
38
37
 
39
38
  api_instance = Phrase::MembersApi.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::MembersApi.new
@@ -159,8 +157,7 @@ Phrase.configure do |config|
159
157
 
160
158
  # Configure API key authorization: Token
161
159
  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'
160
+ config.api_key_prefix['Authorization'] = 'token'
164
161
  end
165
162
 
166
163
  api_instance = Phrase::MembersApi.new
@@ -225,8 +222,7 @@ Phrase.configure do |config|
225
222
 
226
223
  # Configure API key authorization: Token
227
224
  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'
225
+ config.api_key_prefix['Authorization'] = 'token'
230
226
  end
231
227
 
232
228
  api_instance = Phrase::MembersApi.new
@@ -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::OrdersApi.new
@@ -80,7 +79,7 @@ Response<([**TranslationOrder**](TranslationOrder.md))>
80
79
 
81
80
  ## order_create
82
81
 
83
- > order_create(project_id, order_create_parameters, opts)
82
+ > TranslationOrder order_create(project_id, order_create_parameters, opts)
84
83
 
85
84
  Create a new order
86
85
 
@@ -99,8 +98,7 @@ 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
104
  api_instance = Phrase::OrdersApi.new
@@ -112,7 +110,8 @@ opts = {
112
110
 
113
111
  begin
114
112
  #Create a new order
115
- api_instance.order_create(project_id, order_create_parameters, opts)
113
+ result = api_instance.order_create(project_id, order_create_parameters, opts)
114
+ pp result
116
115
  rescue Phrase::ApiError => e
117
116
  puts "Exception when calling OrdersApi->order_create: #{e}"
118
117
  end
@@ -129,7 +128,7 @@ Name | Type | Description | Notes
129
128
 
130
129
  ### Return type
131
130
 
132
- Response<(nil (empty response body))>
131
+ Response<([**TranslationOrder**](TranslationOrder.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
  ## order_delete
@@ -162,8 +161,7 @@ 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
167
  api_instance = Phrase::OrdersApi.new
@@ -227,8 +225,7 @@ Phrase.configure do |config|
227
225
 
228
226
  # Configure API key authorization: Token
229
227
  config.api_key['Authorization'] = 'YOUR API KEY'
230
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
231
- #config.api_key_prefix['Authorization'] = 'Bearer'
228
+ config.api_key_prefix['Authorization'] = 'token'
232
229
  end
233
230
 
234
231
  api_instance = Phrase::OrdersApi.new
@@ -293,8 +290,7 @@ Phrase.configure do |config|
293
290
 
294
291
  # Configure API key authorization: Token
295
292
  config.api_key['Authorization'] = 'YOUR API KEY'
296
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
297
- #config.api_key_prefix['Authorization'] = 'Bearer'
293
+ config.api_key_prefix['Authorization'] = 'token'
298
294
  end
299
295
 
300
296
  api_instance = Phrase::OrdersApi.new
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **project_image** | **File** | Image to identify the project | [optional]
11
11
  **remove_project_image** | **Boolean** | Indicates whether the project image should be deleted. | [optional]
12
12
  **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]
13
+ **source_project_id** | **String** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional]
13
14
 
14
15
  ## Code Sample
15
16
 
@@ -21,7 +22,8 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
21
22
  shares_translation_memory: true,
22
23
  project_image: null,
23
24
  remove_project_image: null,
24
- account_id: abcd1234)
25
+ account_id: abcd1234,
26
+ source_project_id: abcd1234)
25
27
  ```
26
28
 
27
29
 
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## project_create
16
16
 
17
- > project_create(project_create_parameters, opts)
17
+ > ProjectDetails project_create(project_create_parameters, opts)
18
18
 
19
19
  Create a project
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::ProjectsApi.new
@@ -45,7 +44,8 @@ opts = {
45
44
 
46
45
  begin
47
46
  #Create a project
48
- api_instance.project_create(project_create_parameters, opts)
47
+ result = api_instance.project_create(project_create_parameters, opts)
48
+ pp result
49
49
  rescue Phrase::ApiError => e
50
50
  puts "Exception when calling ProjectsApi->project_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<([**ProjectDetails**](ProjectDetails.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
  ## project_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::ProjectsApi.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::ProjectsApi.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::ProjectsApi.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::ProjectsApi.new
@@ -15,7 +15,7 @@ Method | HTTP request | Description
15
15
 
16
16
  ## release_create
17
17
 
18
- > release_create(account_id, distribution_id, release_create_parameters, opts)
18
+ > Release release_create(account_id, distribution_id, release_create_parameters, opts)
19
19
 
20
20
  Create a release
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::ReleasesApi.new
@@ -48,7 +47,8 @@ opts = {
48
47
 
49
48
  begin
50
49
  #Create a release
51
- api_instance.release_create(account_id, distribution_id, release_create_parameters, opts)
50
+ result = api_instance.release_create(account_id, distribution_id, release_create_parameters, opts)
51
+ pp result
52
52
  rescue Phrase::ApiError => e
53
53
  puts "Exception when calling ReleasesApi->release_create: #{e}"
54
54
  end
@@ -66,7 +66,7 @@ Name | Type | Description | Notes
66
66
 
67
67
  ### Return type
68
68
 
69
- Response<(nil (empty response body))>
69
+ Response<([**Release**](Release.md))>
70
70
 
71
71
  ### Authorization
72
72
 
@@ -75,7 +75,7 @@ Response<(nil (empty response body))>
75
75
  ### HTTP request headers
76
76
 
77
77
  - **Content-Type**: application/json
78
- - **Accept**: Not defined
78
+ - **Accept**: application/json
79
79
 
80
80
 
81
81
  ## release_delete
@@ -99,8 +99,7 @@ Phrase.configure do |config|
99
99
 
100
100
  # Configure API key authorization: Token
101
101
  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'
102
+ config.api_key_prefix['Authorization'] = 'token'
104
103
  end
105
104
 
106
105
  api_instance = Phrase::ReleasesApi.new
@@ -164,8 +163,7 @@ Phrase.configure do |config|
164
163
 
165
164
  # Configure API key authorization: Token
166
165
  config.api_key['Authorization'] = 'YOUR API KEY'
167
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
168
- #config.api_key_prefix['Authorization'] = 'Bearer'
166
+ config.api_key_prefix['Authorization'] = 'token'
169
167
  end
170
168
 
171
169
  api_instance = Phrase::ReleasesApi.new
@@ -230,8 +228,7 @@ Phrase.configure do |config|
230
228
 
231
229
  # Configure API key authorization: Token
232
230
  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'
231
+ config.api_key_prefix['Authorization'] = 'token'
235
232
  end
236
233
 
237
234
  api_instance = Phrase::ReleasesApi.new
@@ -296,8 +293,7 @@ Phrase.configure do |config|
296
293
 
297
294
  # Configure API key authorization: Token
298
295
  config.api_key['Authorization'] = 'YOUR API KEY'
299
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
300
- #config.api_key_prefix['Authorization'] = 'Bearer'
296
+ config.api_key_prefix['Authorization'] = 'token'
301
297
  end
302
298
 
303
299
  api_instance = Phrase::ReleasesApi.new
@@ -364,8 +360,7 @@ Phrase.configure do |config|
364
360
 
365
361
  # Configure API key authorization: Token
366
362
  config.api_key['Authorization'] = 'YOUR API KEY'
367
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
368
- #config.api_key_prefix['Authorization'] = 'Bearer'
363
+ config.api_key_prefix['Authorization'] = 'token'
369
364
  end
370
365
 
371
366
  api_instance = Phrase::ReleasesApi.new
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## screenshot_marker_create
16
16
 
17
- > screenshot_marker_create(project_id, screenshot_id, screenshot_marker_create_parameters, opts)
17
+ > ScreenshotMarker screenshot_marker_create(project_id, screenshot_id, screenshot_marker_create_parameters, opts)
18
18
 
19
19
  Create a screenshot marker
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::ScreenshotMarkersApi.new
@@ -47,7 +46,8 @@ opts = {
47
46
 
48
47
  begin
49
48
  #Create a screenshot marker
50
- api_instance.screenshot_marker_create(project_id, screenshot_id, screenshot_marker_create_parameters, opts)
49
+ result = api_instance.screenshot_marker_create(project_id, screenshot_id, screenshot_marker_create_parameters, opts)
50
+ pp result
51
51
  rescue Phrase::ApiError => e
52
52
  puts "Exception when calling ScreenshotMarkersApi->screenshot_marker_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<([**ScreenshotMarker**](ScreenshotMarker.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
  ## screenshot_marker_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::ScreenshotMarkersApi.new
@@ -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::ScreenshotMarkersApi.new
@@ -227,8 +225,7 @@ Phrase.configure do |config|
227
225
 
228
226
  # Configure API key authorization: Token
229
227
  config.api_key['Authorization'] = 'YOUR API KEY'
230
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
231
- #config.api_key_prefix['Authorization'] = 'Bearer'
228
+ config.api_key_prefix['Authorization'] = 'token'
232
229
  end
233
230
 
234
231
  api_instance = Phrase::ScreenshotMarkersApi.new
@@ -293,8 +290,7 @@ Phrase.configure do |config|
293
290
 
294
291
  # Configure API key authorization: Token
295
292
  config.api_key['Authorization'] = 'YOUR API KEY'
296
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
297
- #config.api_key_prefix['Authorization'] = 'Bearer'
293
+ config.api_key_prefix['Authorization'] = 'token'
298
294
  end
299
295
 
300
296
  api_instance = Phrase::ScreenshotMarkersApi.new
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
 
15
15
  ## screenshot_create
16
16
 
17
- > screenshot_create(project_id, screenshot_create_parameters, opts)
17
+ > Screenshot screenshot_create(project_id, screenshot_create_parameters, opts)
18
18
 
19
19
  Create a screenshot
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::ScreenshotsApi.new
@@ -46,7 +45,8 @@ opts = {
46
45
 
47
46
  begin
48
47
  #Create a screenshot
49
- api_instance.screenshot_create(project_id, screenshot_create_parameters, opts)
48
+ result = api_instance.screenshot_create(project_id, screenshot_create_parameters, opts)
49
+ pp result
50
50
  rescue Phrase::ApiError => e
51
51
  puts "Exception when calling ScreenshotsApi->screenshot_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<([**Screenshot**](Screenshot.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
  ## screenshot_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::ScreenshotsApi.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::ScreenshotsApi.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::ScreenshotsApi.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::ScreenshotsApi.new