Skip to content

Commit 2a21cbc

Browse files
committed
fix name variable on code usage
1 parent 07a2ea1 commit 2a21cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/code_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def send_message():
8282
# Get only last 10 messages
8383
response = client.messages.list(limit=10)
8484
if response.ok:
85-
some_messages = some_messages.data
85+
some_messages = response.data
8686
print('Here are the last 10 messages in your account:')
8787
for message in some_messages:
8888
print(message)

0 commit comments

Comments
 (0)