Last active
October 6, 2017 12:48
-
-
Save Th3nion/7b31f77d560c799728eadda318f779b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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