 import Swish
 
 private struct GetEmailLoginRequest: Request {
-    typealias ResponseObject = EmptyResponse
+    typealias ResponseObject = String
     
     private static let authSendUrl = "api/auth/send"
     

    func build() -> NSURLRequest {
        return createRequest(.POST, url, body: body)
    }
}

public extension APIClient {

    /// - parameter clientId: The unique identifier of your application.
    /// - parameter redirectUri: The redirect URI for the `provider`.
    /// - parameter email: The email address associated with the account.
    static func requestEmailLogin(clientId: String, redirectUri:String, email: String, completionHandler: Result<String, SwishError> -> Void) {
        let request = GetEmailLoginRequest(clientId: clientId, redirectUri: redirectUri, email: email)
        staticClient.performRequest(request, completionHandler: completionHandler)
    }
