Created
September 18, 2018 09:19
-
-
Save thannaske/15f34ebff104266be04e0072b7796040 to your computer and use it in GitHub Desktop.
Check whether ApplePay ist available in Germany or not
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
import urllib.request | |
import json | |
r = urllib.request.urlopen("https://smp-device-content.apple.com/static/region/v2/config.json").read() | |
content = json.loads(r.decode('utf-8')) | |
if "DE" in content['SupportedRegions'].keys(): | |
print("ApplePay is available in DE.") | |
else: | |
print("ApplePay is not available in DE, yet.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment