[schema] Add a Client model keeping track of the sending client.

(imported from commit 31a430b1de14ce973addafd5d13ace049a8f8091)
This commit is contained in:
Tim Abbott
2012-10-19 15:30:42 -04:00
parent 2c89103b23
commit 7b3b4362dd
7 changed files with 61 additions and 5 deletions

View File

@@ -18,6 +18,8 @@ class HumbugAPI():
def do_api_query(self, request, url):
request["email"] = self.email
request["api-key"] = self.api_key
if "client" not in request:
request["client"] = "API"
while True:
try:
res = requests.post(urlparse.urljoin(self.base_url, url), data=request, verify=True)