We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c470a88 commit a0fbf4bCopy full SHA for a0fbf4b
sdk/diffgram/core/directory.py
@@ -29,7 +29,7 @@ def init_files(self):
29
self.file_id_list = self.all_file_ids()
30
31
32
- def get_directory_list(self):
+ def get_directory_list(self, limit=10):
33
"""
34
Get a list of available directories for a project
35
@@ -44,7 +44,11 @@ def get_directory_list(self):
44
endpoint = "/api/v1/project/" + self.client.project_string_id + \
45
"/directory/list"
46
47
- response = self.client.session.get(self.client.host + endpoint)
+ request_json_body = {'limit': limit}
48
+
49
+ response = self.client.session.post(
50
+ self.client.host + endpoint,
51
+ json = request_json_body)
52
53
self.client.handle_errors(response)
54
0 commit comments