Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. import json
  2. from subprocess import call
  3. from pprint import pprint
  4.  
  5. call(["curl", "-S", "-v", "-o", "kaa_profiles.json", "-u", "app:]'kXs[Ex>I@U$1z8", "-X", "GET",
  6.      "http://52.3.20.29:7777/kaaAdmin/rest/api/sdkProfilesByAppToken/12575189510966504326"]);
  7. data_file = open("kaa_profiles.json");
  8. data = json.load(data_file);
  9. print(data[8]["id"]);
  10. call(["curl", "-S", "-v", "-o", "kaa-ep-sdk.tar.gz", "-u", "app:]'kXs[Ex>I@U$1z8", "-X", "POST",
  11.      "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