Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- from subprocess import call
- from pprint import pprint
- call(["curl", "-S", "-v", "-o", "kaa_profiles.json", "-u", "app:]'kXs[Ex>I@U$1z8", "-X", "GET",
- "http://52.3.20.29:7777/kaaAdmin/rest/api/sdkProfilesByAppToken/12575189510966504326"]);
- data_file = open("kaa_profiles.json");
- data = json.load(data_file);
- print(data[8]["id"]);
- call(["curl", "-S", "-v", "-o", "kaa-ep-sdk.tar.gz", "-u", "app:]'kXs[Ex>I@U$1z8", "-X", "POST",
- "http://52.3.20.29:7777/kaaAdmin/rest/api/sdk?sdkProfileId=" + data[8]["id"] + "&targetPlatform=CPP"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement