lib/phrase/api/webhooks_api.rb in phrase-2.4.0 vs lib/phrase/api/webhooks_api.rb in phrase-2.5.0

- old
+ new

@@ -60,11 +60,11 @@ # return_type return_type = opts[:return_type] || 'Webhook' # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -130,11 +130,11 @@ # return_type return_type = opts[:return_type] # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -202,11 +202,11 @@ # return_type return_type = opts[:return_type] || 'Webhook' # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -272,11 +272,11 @@ # return_type return_type = opts[:return_type] # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -352,11 +352,11 @@ # return_type return_type = opts[:return_type] || 'Webhook' # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -424,10 +424,10 @@ # return_type return_type = opts[:return_type] || 'Array<Webhook>' # auth_names - auth_names = opts[:auth_names] || ['Basic', 'Token'] + auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params,