Minor tweaks based on PR feedback.
This commit is contained in:
parent
14d413752b
commit
f518324426
|
@ -80,11 +80,11 @@ class ApplicationServiceApi(SimpleHttpClient):
|
||||||
response = None
|
response = None
|
||||||
try:
|
try:
|
||||||
response = yield self.put_json(
|
response = yield self.put_json(
|
||||||
uri,
|
uri=uri,
|
||||||
{
|
json_body={
|
||||||
"events": events
|
"events": events
|
||||||
},
|
},
|
||||||
{
|
args={
|
||||||
"access_token": service.hs_token
|
"access_token": service.hs_token
|
||||||
})
|
})
|
||||||
if response: # just an empty json object
|
if response: # just an empty json object
|
||||||
|
|
|
@ -95,7 +95,8 @@ class SimpleHttpClient(object):
|
||||||
Deferred: Succeeds when we get *any* 2xx HTTP response, with the
|
Deferred: Succeeds when we get *any* 2xx HTTP response, with the
|
||||||
HTTP body as JSON.
|
HTTP body as JSON.
|
||||||
Raises:
|
Raises:
|
||||||
On a non-2xx HTTP response.
|
On a non-2xx HTTP response. The response body will be used as the
|
||||||
|
error message.
|
||||||
"""
|
"""
|
||||||
if len(args):
|
if len(args):
|
||||||
query_bytes = urllib.urlencode(args, True)
|
query_bytes = urllib.urlencode(args, True)
|
||||||
|
|
Loading…
Reference in New Issue