I am using Alamofire 3.0 The following is my code
var ignoreIDs = [Int]()
self.ignoreIDs.append(2)
let parameters = ["ignore_ids": self.ignoreIDs]
Alamofire.request(.GET, AppDelegate.kbaseUrl + "surveys/me", parameters: parameters, encoding: .JSON)
.responseJSON {
response in
}
However, the result of print(response.result) just shows FAILURE. Is there any way to get more information? Also, is this the correct way to pass an array as parameters? P/S: Yes server side is indeed expecting an array.
.responseJSON { (request, response, json, error) ininstead.responseJSON { response in. And print all params you need