Alamofire.request("https://itunes.apple.com/lookup?bundleId=项目里的bundleId", method: .post, parameters: [:]).responseJSON { (response) in
if let value = response.result.value {
guard let dic:Dictionary = value as? Dictionary<String,Any> else { return }
guard let resultsArr = dic["results"] as? Array<Any> else { return }
guard let resultsDic = resultsArr.last as? Dictionary<String,Any> else { return }
print(resultsDic)
}
}
网友评论