Run Alamofire request after finishing another Alamofire request
问题 I would like to run an Alamofire request that is using the result of a previous Alamofire request as a parameter. To make it simple: //Code1 Alamofire.request("URL", method: HTTPMethod.post, parameters: ["id": id as NSString)], encoding: URLEncoding.httpBody).response(completionHandler: { (response) in let json = response.data do { print("This should be First") let data = try JSON(data: json!) let alllastmessages = data["Messages"].arrayValue for i in 0..<alllastmessages.count { self.List