     let mailUrl: String
     
     let context: SDContext
-    
+    let manager: Alamofire.Manager
     
     public init(instanceId: String, appId: String) {
         self.baseUrl = "https://\(instanceId).spacedog.io"

        if let auth = auth {headers["Authorization"] = auth}
        let encoding = ParameterEncoding.Custom(UTF8JSONEncoding(WithArray: true))
        
        Alamofire.request(method, url, parameters: ["array": body], encoding: encoding, headers: headers).responseJSON { response in
            self.handleResponse(response, success: success, error: error)
        }
    }

        self.smsUrl = "\(self.baseUrl)/1/sms/template"
        self.mailUrl = "\(self.baseUrl)/1/mail/template"

        let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
        configuration.timeoutIntervalForResource = 60
        self.manager = Alamofire.Manager(configuration: configuration)
        
        self.context = SDContext(instanceId: instanceId, appId: appId)
        
