@@ -228,7 +228,7 @@ def acreate_event(self, event, entity_type, entity_id,
228
228
et_str = et .strftime ("%Y-%m-%dT%H:%M:%S.%f" )[:- 3 ] + et .strftime ("%z" )
229
229
data ["eventTime" ] = et_str
230
230
231
- path = "/events.json?accessKey=" + self .access_key
231
+ path = "/events.json?accessKey=%s" % ( self .access_key , )
232
232
request = AsyncRequest ("POST" , path , ** data )
233
233
request .set_rfunc (self ._acreate_resp )
234
234
self ._connection .make_request (request )
@@ -253,7 +253,7 @@ def aget_event(self, event_id):
253
253
"""
254
254
enc_event_id = urllib .quote (event_id , "" ) # replace special char with %xx
255
255
path = "/events/%s.json" % enc_event_id
256
- request = AsyncRequest ("GET" , path )
256
+ request = AsyncRequest ("GET" , path , accessKey = self . access_key )
257
257
request .set_rfunc (self ._aget_resp )
258
258
self ._connection .make_request (request )
259
259
return request
@@ -272,8 +272,8 @@ def adelete_event(self, event_id):
272
272
AsyncRequest object.
273
273
"""
274
274
enc_event_id = urllib .quote (event_id , "" ) # replace special char with %xx
275
- path = "/events/%s.json" % enc_event_id
276
- request = AsyncRequest ("DELETE" , path )
275
+ path = "/events/%s.json" % ( enc_event_id , )
276
+ request = AsyncRequest ("DELETE" , path , accessKey = self . access_key )
277
277
request .set_rfunc (self ._adelete_resp )
278
278
self ._connection .make_request (request )
279
279
return request
0 commit comments