@@ -247,9 +247,9 @@ The `eventChargeLimitReached` property checks if the current event type can be c
247
247
``` js
248
248
import { Actor } from ' apify' ;
249
249
250
- const chargForApiCall = async () => {
250
+ const chargForApiProductDetail = async () => {
251
251
const chargeResult = await Actor .charge ({
252
- eventName: " api-call " ,
252
+ eventName: " product-detail " ,
253
253
});
254
254
255
255
return chargeResult;
@@ -260,7 +260,7 @@ await Actor.init();
260
260
const main = async () => {
261
261
// API call, or any other logic that you want to charge for
262
262
263
- const chargeResult = await chargForApiCall ();
263
+ const chargeResult = await chargForApiProductDetail ();
264
264
265
265
if (chargeResult .eventChargeLimitReached ) {
266
266
await Actor .exit ();
@@ -280,8 +280,8 @@ await Actor.exit();
280
280
``` python
281
281
from apify import Actor
282
282
283
- async def charge_for_api_call ():
284
- charge_result = await Actor.charge(event_name = ' api-call ' )
283
+ async def charge_for_api_product_detail ():
284
+ charge_result = await Actor.charge(event_name = ' product-detail ' )
285
285
286
286
return charge_result
287
287
@@ -290,7 +290,7 @@ async def main():
290
290
291
291
# API call, or any other logic that you want to charge for
292
292
293
- charge_result = await charge_for_api_call ()
293
+ charge_result = await charge_for_api_product_detail ()
294
294
295
295
if charge_result.event_charge_limit_reached:
296
296
await Actor.exit()
0 commit comments