lib/phrase/api/comment_reactions_api.rb in phrase-2.13.0 vs lib/phrase/api/comment_reactions_api.rb in phrase-2.14.0
- old
+ new
@@ -13,10 +13,11 @@
# @param key_id [String] Translation Key ID
# @param comment_id [String] Comment ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [String] :branch specify the branch to use
+ # @option opts [String] :emoji specify the emoji for the reaction
# @return [CommentReaction]
def reaction_create(project_id, key_id, comment_id, opts = {})
data, _status_code, _headers = reaction_create_with_http_info(project_id, key_id, comment_id, opts)
data
end
@@ -27,10 +28,11 @@
# @param key_id [String] Translation Key ID
# @param comment_id [String] Comment ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [String] :branch specify the branch to use
+ # @option opts [String] :emoji specify the emoji for the reaction
# @return [Array<(Response<(CommentReaction)>, Integer, Hash)>] Response<(CommentReaction)> data, response status code and response headers
def reaction_create_with_http_info(project_id, key_id, comment_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CommentReactionsApi.reaction_create ...'
end
@@ -50,9 +52,10 @@
local_var_path = '/projects/{project_id}/keys/{key_id}/comments/{comment_id}/reactions'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s)).sub('{' + 'comment_id' + '}', CGI.escape(comment_id.to_s))
# query parameters
query_params = opts[:query_params] || {}
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
+ query_params[:'emoji'] = opts[:'emoji'] if !opts[:'emoji'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])