<s> import requests <EOL> import json <EOL> import sys <EOL> sys . path . append ( '<STR_LIT>' ) <EOL> import conn <EOL> service = '<STR_LIT>' <EOL> headers = conn . headers <EOL> auth = conn . auth <EOL> payload = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } <EOL> url = conn . url + '<STR_LIT>' + service + '<STR_LIT:/>' <EOL> r = requests . put ( url , auth = auth , data = json . dumps ( payload ) , headers = headers ) <EOL> result = json . loads ( r . text ) <EOL> for items in result : <EOL> print items , '<STR_LIT::>' , result [ items ] </s>
