File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/apify_client/clients/resource_clients Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ def charge(
244
244
if not event_name :
245
245
raise ValueError ('eventName is required for charging an event' )
246
246
247
- return self .http_client .call (
247
+ response = self .http_client .call (
248
248
url = self ._url ('charge' ),
249
249
method = 'POST' ,
250
250
headers = {
@@ -256,6 +256,7 @@ def charge(
256
256
'count' : count or 1 ,
257
257
})
258
258
)
259
+ return response .json ()
259
260
260
261
261
262
class RunClientAsync (ActorJobBaseClientAsync ):
@@ -488,7 +489,7 @@ async def charge(
488
489
if not event_name :
489
490
raise ValueError ('eventName is required for charging an event' )
490
491
491
- return await self .http_client .call (
492
+ response = await self .http_client .call (
492
493
url = self ._url ('charge' ),
493
494
method = 'POST' ,
494
495
headers = {
@@ -500,3 +501,4 @@ async def charge(
500
501
'count' : count or 1 ,
501
502
})
502
503
)
504
+ return response .json ()
You can’t perform that action at this time.
0 commit comments