Created
September 10, 2016 19:07
-
-
Save aazbeltran/ff86c0e2279d0f62013d66b108117ac0 to your computer and use it in GitHub Desktop.
Obtener uri handler con bundle id de AppStore
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
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