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(
244244 if not event_name :
245245 raise ValueError ('eventName is required for charging an event' )
246246
247- return self .http_client .call (
247+ response = self .http_client .call (
248248 url = self ._url ('charge' ),
249249 method = 'POST' ,
250250 headers = {
@@ -256,6 +256,7 @@ def charge(
256256 'count' : count or 1 ,
257257 })
258258 )
259+ return response .json ()
259260
260261
261262class RunClientAsync (ActorJobBaseClientAsync ):
@@ -488,7 +489,7 @@ async def charge(
488489 if not event_name :
489490 raise ValueError ('eventName is required for charging an event' )
490491
491- return await self .http_client .call (
492+ response = await self .http_client .call (
492493 url = self ._url ('charge' ),
493494 method = 'POST' ,
494495 headers = {
@@ -500,3 +501,4 @@ async def charge(
500501 'count' : count or 1 ,
501502 })
502503 )
504+ return response .json ()
You can’t perform that action at this time.
0 commit comments