# Copyright (c) 2015 .decimal, Inc. All rights reserved. # Desc: Post an immutable json object to the thinknode framework from lib import thinknode_worker as thinknode import requests import json iss_dir = "iss_files" json_iss_file = "study.json" obj_name = "rt_study" # Get IAM ids iam = thinknode.authenticate(thinknode.read_config('thinknode.cfg')) # App object to post to iss with open(iss_dir + '/' + json_iss_file) as data_file: json_data = json.load(data_file) # Post immutable object to ISS res = thinknode.post_immutable_named(iam, "dicom", json_data, obj_name)