From 7ad295a6f054ac62b88d1678f0c82f4820640963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alp=20Niksarl=C4=B1?= Date: Mon, 3 Nov 2025 23:52:12 +0000 Subject: [PATCH] Fix recent post search --- xdks/python/quickstart.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xdks/python/quickstart.mdx b/xdks/python/quickstart.mdx index 7edc2e329..c9df28ed0 100644 --- a/xdks/python/quickstart.mdx +++ b/xdks/python/quickstart.mdx @@ -26,11 +26,11 @@ from xdk import Client client = Client(bearer_token="YOUR_BEARER_TOKEN_HERE") # Fetch recent Posts mentioning "api" -response = client.posts.search_recent(query="api", max_results=10) +response = client.posts.search_recent(query="api") # Print the first Post's text -if response.data: - print(f"Latest Post: {response.data[0]['text']}") +if response: + print(f"Latest Post: {response[0]['text']}") else: print("No Posts found.") ```