Skip to content

Instantly share code, notes, and snippets.

@Th3nion
Last active October 6, 2017 12:48
Show Gist options
  • Save Th3nion/7b31f77d560c799728eadda318f779b0 to your computer and use it in GitHub Desktop.
Save Th3nion/7b31f77d560c799728eadda318f779b0 to your computer and use it in GitHub Desktop.
func getStoreInformations() -> JSON {
let infos = Bundle.main.infoDictionary
let appID = infos!["CFBundleIdentifier"] as! String
let url = URL(string: "https://itunes.apple.com/lookup?bundleId="+appID)!
let data = try! Data(contentsOf: url)
let lookup = JSON(data: data)
return lookup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment