lib/ding_sdk/otp.rb in ding_sdk-0.8.2 vs lib/ding_sdk/otp.rb in ding_sdk-0.8.3
- old
+ new
@@ -61,13 +61,13 @@
end
res
end
- sig { params(request: T.nilable(::DingSDK::Shared::CreateAuthenticationRequest)).returns(::DingSDK::Operations::CreateAutenticationResponse) }
- def create_autentication(request)
- # create_autentication - Send a code
+ sig { params(request: T.nilable(::DingSDK::Shared::CreateAuthenticationRequest)).returns(::DingSDK::Operations::CreateAuthenticationResponse) }
+ def create_authentication(request)
+ # create_authentication - Send a code
url, params = @sdk_configuration.get_server_details
base_url = Utils.template_url(url, params)
url = "#{base_url}/authentication"
headers = {}
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
@@ -87,10 +87,10 @@
end
end
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
- res = ::DingSDK::Operations::CreateAutenticationResponse.new(
+ res = ::DingSDK::Operations::CreateAuthenticationResponse.new(
status_code: r.status, content_type: content_type, raw_response: r
)
if r.status == 200
if Utils.match_content_type(content_type, 'application/json')
out = Utils.unmarshal_complex(r.env.response_body, ::DingSDK::Shared::CreateAuthenticationResponse)