def post_account(url, token, headers, http_conn=None, response_dict=None, service_token=None, query_string=None, data=None):
 if http_conn:
  (parsed, conn) = http_conn
 else:
  (parsed, conn) = http_connection(url)
 method = 'POST'
 path = parsed.path
 if query_string:
  path += ('?' + query_string)
 headers['X-Auth-Token'] = token
 if service_token:
  headers['X-Service-Token'] = service_token
 conn.request(method, path, data, headers)
 resp = conn.getresponse()
 body = resp.read()
 http_log((url, method), {'headers': headers}, resp, body)
 store_response(resp, response_dict)
 if ((resp.status < 200) or (resp.status >= 300)):
  raise ClientException.from_response(resp, 'Account POST failed', body)
 resp_headers = {}
 for (header, value) in resp.getheaders():
  resp_headers[header.lower()] = value
 return (resp_headers, body)

def post_account ( url , token , headers , http_conn = None , response_dict = None , service_token = None , query_string = None , data = None ) : if http_conn : ( parsed , conn ) = http_conn else : ( parsed , conn ) = http_connection ( url ) method = 'POST' path = parsed . path if query_string : path += ( '?' + query_string ) headers [ 'X-Auth-Token' ] = token if service_token : headers [ 'X-Service-Token' ] = service_token conn . request ( method , path , data , headers ) resp = conn . getresponse ( ) body = resp . read ( ) http_log ( ( url , method ) , { 'headers' : headers } , resp , body ) store_response ( resp , response_dict ) if ( ( resp . status < 200 ) or ( resp . status >= 300 ) ) : raise ClientException . from_response ( resp , 'Account POST failed' , body ) resp_headers = { } for ( header , value ) in resp . getheaders ( ) : resp_headers [ header . lower ( ) ] = value return ( resp_headers , body )
update an accounts metadata .