diff --git a/ArtikCloudSwift.podspec b/ArtikCloudSwift.podspec index 7a8c5b2..ba6e085 100644 --- a/ArtikCloudSwift.podspec +++ b/ArtikCloudSwift.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # s.name = "ArtikCloudSwift" - s.version = "4.1.0" + s.version = "4.1.1" s.summary = "ARTIK Cloud SDK for iOS, tvOS, watchOS & macOS, fully written in Swift." s.homepage = "https://github.com/artikcloud/artikcloud-swift" diff --git a/Source/DevicesAPI.swift b/Source/DevicesAPI.swift index bc3a2c5..f667f43 100644 --- a/Source/DevicesAPI.swift +++ b/Source/DevicesAPI.swift @@ -551,14 +551,14 @@ open class DevicesAPI { /// Update the registration request issued earlier by associating it with an authenticated user and capture all additional information required to add a new device. /// /// - Parameters: - /// - did: The Device's ID. + /// - name: The Device's name. /// - pin: The PIN obtained in the registration call. /// - Returns: Returns a `Promise` containing the request ID. - open class func confirmUser(did: String, pin: String) -> Promise { + open class func confirmUser(name: String, pin: String) -> Promise { let promise = Promise.pending() let path = ArtikCloudSwiftSettings.securePath + "/devices/registrations/pin" let parameters = [ - "deviceId": did, + "deviceName": name, "pin": pin ]