File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/apify_client/clients/resource_clients Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,18 @@ def runs(self) -> RunCollectionClient:
381
381
"""Retrieve a client for the runs of this Actor."""
382
382
return RunCollectionClient (** self ._sub_resource_init_options (resource_path = 'runs' ))
383
383
384
+ async def default_build (self ) -> dict :
385
+ """Retrieve Actor's default build.
386
+
387
+ https://docs.apify.com/api/v2/act-build-default-get
388
+
389
+ Returns:
390
+ The build object.
391
+ """
392
+ response = self .http_client .call (url = self ._url ('builds/default' ), method = 'GET' )
393
+
394
+ return parse_date_fields (pluck_data (response .json ()))
395
+
384
396
def last_run (
385
397
self ,
386
398
* ,
@@ -718,6 +730,18 @@ def runs(self) -> RunCollectionClientAsync:
718
730
"""Retrieve a client for the runs of this Actor."""
719
731
return RunCollectionClientAsync (** self ._sub_resource_init_options (resource_path = 'runs' ))
720
732
733
+ async def default_build (self ) -> dict :
734
+ """Retrieve Actor's default build.
735
+
736
+ https://docs.apify.com/api/v2/act-build-default-get
737
+
738
+ Returns:
739
+ The build object.
740
+ """
741
+ response = await self .http_client .call (url = self ._url ('builds/default' ), method = 'GET' )
742
+
743
+ return parse_date_fields (pluck_data (response .json ()))
744
+
721
745
def last_run (
722
746
self ,
723
747
* ,
You can’t perform that action at this time.
0 commit comments