                             failure(error:APIError(error:  NSError(domain: "", code: 232, userInfo: nil)))
                         } else {
                             let serializer = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.AllowFragments, error: &jsonError) as Dictionary<String, AnyObject>
-
                             success(serializer)
                         }
                     } else {

                        success(url: completedURL!)
                    }
                })
                println(error)
        }
        self.lastPerformedTask = request.task
        return request.task

                    println(actualProgress)
                }
            }.response { (request, response, object, error) -> Void in
                dispatch_async(dispatch_get_main_queue(), {
                    if self.isUnauthorized(response as NSHTTPURLResponse?) {
                        self.removeAccessTokenUsedInLastRequest()
