Skip to content

Instantly share code, notes, and snippets.

@aazbeltran
Created September 10, 2016 19:07
Show Gist options
  • Save aazbeltran/ff86c0e2279d0f62013d66b108117ac0 to your computer and use it in GitHub Desktop.
Save aazbeltran/ff86c0e2279d0f62013d66b108117ac0 to your computer and use it in GitHub Desktop.
Obtener uri handler con bundle id de AppStore
var bundles=["net.whatsapp.WhatsApp"];
bundles.map(function(bundle){
$.getJSON( "http://itunes.apple.com/lookup?country=mx&bundleId="+bundle, function(res) {
if(res.resultCount==0){
console.log("404 - "+bundle);
return;
}
console.log(res.results[0].trackViewUrl.replace("https","itms-apps"));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment