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.") ```