<s> """<STR_LIT>""" <EOL> import requests , logging , json <EOL> from http_calls import EdgeGridHttpCaller <EOL> from random import randint <EOL> from akamai . edgegrid import EdgeGridAuth <EOL> from config import EdgeGridConfig <EOL> from urlparse import urljoin <EOL> import urllib <EOL> session = requests . Session ( ) <EOL> debug = False <EOL> verbose = False <EOL> section_name = "<STR_LIT>" <EOL> config = EdgeGridConfig ( { "<STR_LIT>" : debug } , section_name ) <EOL> if hasattr ( config , "<STR_LIT>" ) and config . debug : <EOL> debug = True <EOL> if hasattr ( config , "<STR_LIT>" ) and config . verbose : <EOL> verbose = True <EOL> session . auth = EdgeGridAuth ( <EOL> client_token = config . client_token , <EOL> client_secret = config . client_secret , <EOL> access_token = config . access_token <EOL> ) <EOL> baseurl = '<STR_LIT>' % ( '<STR_LIT>' , config . host ) <EOL> httpCaller = EdgeGridHttpCaller ( session , debug , verbose , baseurl ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> domainname = "<STR_LIT>" <EOL> propertyname = "<STR_LIT>" <EOL> endpoint = "<STR_LIT>" % ( domainname , propertyname ) <EOL> property_object = httpCaller . getResult ( endpoint ) <EOL> del property_object [ "<STR_LIT>" ] <EOL> del property_object [ "<STR_LIT>" ] <EOL> property_object [ "<STR_LIT>" ] [ <NUM_LIT:0> ] [ "<STR_LIT>" ] = <NUM_LIT:1> <EOL> property_object [ "<STR_LIT>" ] [ <NUM_LIT:0> ] [ "<STR_LIT:name>" ] = "<STR_LIT>" <EOL> property_object [ "<STR_LIT>" ] [ <NUM_LIT:1> ] [ "<STR_LIT>" ] = <NUM_LIT> <EOL> property_object [ "<STR_LIT>" ] [ <NUM_LIT:1> ] [ "<STR_LIT:name>" ] = "<STR_LIT>" <EOL> property_object [ "<STR_LIT>" ] = [ <EOL> { <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : False , <EOL> "<STR_LIT:name>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : None , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : <NUM_LIT> , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } ] <EOL> result = httpCaller . putResult ( endpoint , json . dumps ( property_object ) ) <EOL> print "<STR_LIT>" </s>
