     
     // MARK: - GET
     public func getSearchWith(text: String, startIndex: Int, resultLimit: Int, _ handler: ([AnimeSubject]?, count: Int, NSError?) -> Void) {
-        
-        let urlPath = String(format: BangumiApiKey.SearchDetail, text.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!, resultLimit, startIndex, BangumiApiKey.Percolator)
-    
+        let authEncode = userData!.authEncode
+        let urlPath = String(format: BangumiApiKey.SearchDetail, text.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!, resultLimit, startIndex, BangumiApiKey.Percolator, authEncode)
+        
         getJsonFrom(urlPath) { (jsonData) -> Void in
             
             UIApplication.sharedApplication().networkActivityIndicatorVisible = false

    
    // MARK: JSON
    private func fetchJsonData(request: NSMutableURLRequest, handler: (AnyObject?) -> Void) {
    
//        let config = NSURLSessionConfiguration.ephemeralSessionConfiguration()
//        config.HTTPCookieStorage = NSHTTPCookieStorage.sharedHTTPCookieStorage()
//        config.HTTPCookieAcceptPolicy = .Always
//        config.HTTPShouldSetCookies = true

//        let urlSession = NSURLSession(configuration: config, delegate: nil, delegateQueue: NSOperationQueue.mainQueue())

        let task = urlSession.dataTaskWithRequest(request, completionHandler: {
            (data, response, error) -> Void in

    // but I'm not sure
    public var userData = User?()
    
    private let urlSession = NSURLSession(configuration: .ephemeralSessionConfiguration(), delegate: nil, delegateQueue: NSOperationQueue.mainQueue())
    

    // MARK: - Singleton
