Skip to content

Commit 114eca1

Browse files
added "data" method to square.Application
1 parent 1a9aba5 commit 114eca1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

squarecloud/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,11 @@ async def delete_file(self, path: str, **kwargs):
319319
await self._listener.on_capture(endpoint=endpoint,
320320
response=response)
321321
return response
322+
323+
async def data(self, **kwargs):
324+
response: AppData = await self.client.app_data(self.id)
325+
if not kwargs.get('avoid_listener'):
326+
endpoint: Endpoint = Endpoint.app_data()
327+
await self._listener.on_capture(endpoint=endpoint,
328+
response=response)
329+
return response

0 commit comments

Comments
 (0)