File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,15 +17,29 @@ def get(self, asset_id):
1717 endpoint = '/assets/{}' .format (asset_id )
1818 return self .client ._api_call ('get' , endpoint )
1919
20- def get_children (self , asset_id , ** kwargs ):
20+ def get_children (self , asset_id , include = [] ):
2121 """
2222 Get a folder.
2323
2424 :Args:
2525 asset_id (string): The asset id.
26+
27+ :Kwargs:
28+ includes (list): List of includes you would like to add.
29+
30+ Example::
31+
32+ client.assets.get_children(
33+ asset_id='1231-12414-afasfaf-aklsajflaksjfla',
34+ includes=['review_links','cover_asset','creator','presentation']
35+ )
2636 """
2737 endpoint = '/assets/{}/children' .format (asset_id )
28- return self .client ._api_call ('get' , endpoint , kwargs )
38+
39+ if len (include ) > 0 :
40+ endpoint += '?include={}' .format (include .join (',' ))
41+
42+ return self .client ._api_call ('get' , endpoint )
2943
3044 def create (self , parent_asset_id , ** kwargs ):
3145 """
You can’t perform that action at this time.
0 commit comments