美文网首页
获取App Store信息

获取App Store信息

作者: iOS祎 | 来源:发表于2021-04-29 11:45 被阅读0次
    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)
        }
    }

    相关文章

      网友评论

          本文标题:获取App Store信息

          本文链接:https://www.haomeiwen.com/subject/xgairltx.html