Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Added missed parameter for users.lookupByEmail endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
i.v.vasilenko committed Jul 21, 2019
1 parent 492f51c commit c3817be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SKWebAPI/Sources/WebAPI.swift
Expand Up @@ -1140,7 +1140,7 @@ extension WebAPI {
}

public func usersLookupByEmail(_ email: String, success: ((_ user: User) -> Void)?, failure: FailureClosure?) {
let parameters: [String: Any] = ["token": token]
let parameters: [String: Any] = ["token": token, "email": email]
networkInterface.request(.usersLookupByEmail, parameters: parameters, successClosure: { response in
success?(User(user: response["user"] as? [String: Any]))
}) { error in
Expand Down

0 comments on commit c3817be

Please sign in to comment.