lib/cloudsmith-api/api/user_api.rb in cloudsmith-api-2.0.13 vs lib/cloudsmith-api/api/user_api.rb in cloudsmith-api-2.0.14

- old
+ new

@@ -52,11 +52,11 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['apikey'] + auth_names = ['apikey', 'basic', 'token'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -65,22 +65,22 @@ if @api_client.config.debugging @api_client.config.logger.debug "API called: UserApi#user_self\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve the API key/token for the authenticated user. - # Retrieve the API key/token for the authenticated user. + # Retrieve/Create API key/token for the authenticated user. + # Retrieve/Create API key/token for the authenticated user. # @param [Hash] opts the optional parameters # @option opts [UserAuthTokenRequest] :data # @return [UserAuthToken] def user_token_create(opts = {}) data, _status_code, _headers = user_token_create_with_http_info(opts) data end - # Retrieve the API key/token for the authenticated user. - # Retrieve the API key/token for the authenticated user. + # Retrieve/Create API key/token for the authenticated user. + # Retrieve/Create API key/token for the authenticated user. # @param [Hash] opts the optional parameters # @option opts [UserAuthTokenRequest] :data # @return [Array<(UserAuthToken, Fixnum, Hash)>] UserAuthToken data, response status code and response headers def user_token_create_with_http_info(opts = {}) if @api_client.config.debugging @@ -102,10 +102,10 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'data']) - auth_names = ['apikey'] + auth_names = ['basic'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body,