Skip to content

Commit

Permalink
Fixed confirmUser's method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Laptopmini committed Mar 28, 2018
1 parent 5c1664d commit 4626cef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ArtikCloudSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions Source/DevicesAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>` containing the request ID.
open class func confirmUser(did: String, pin: String) -> Promise<String> {
open class func confirmUser(name: String, pin: String) -> Promise<String> {
let promise = Promise<String>.pending()
let path = ArtikCloudSwiftSettings.securePath + "/devices/registrations/pin"
let parameters = [
"deviceId": did,
"deviceName": name,
"pin": pin
]

Expand Down

0 comments on commit 4626cef

Please sign in to comment.