Skip to content

Commit 00d04b6

Browse files
bradengroomjudy2k
authored andcommitted
Make docs use Python 3 (Vonage#84)
1 parent 29ba3a6 commit 00d04b6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/quickstart.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ Send a text message
7979
response = response['messages'][0]
8080
8181
if response['status'] == '0':
82-
print 'Sent message', response['message-id']
82+
print('Sent message', response['message-id'])
8383
84-
print 'Remaining balance is', response['remaining-balance']
84+
print('Remaining balance is', response['remaining-balance'])
8585
else:
86-
print 'Error:', response['error-text']
86+
print('Error:', response['error-text'])
8787
8888
Docs:
8989
`https://docs.nexmo.com/messaging/sms-api/api-reference#request <https://docs.nexmo.com/messaging/sms-api/api-reference#request?utm_source=DEV_REL&utm_medium=github&utm_campaign=python-client-library>`__
@@ -146,9 +146,9 @@ Start a verification
146146
response = client.start_verification(number='441632960960', brand='MyApp')
147147
148148
if response['status'] == '0':
149-
print 'Started verification request_id=' + response['request_id']
149+
print('Started verification request_id=' + response['request_id'])
150150
else:
151-
print 'Error:', response['error_text']
151+
print('Error:', response['error_text'])
152152
153153
Docs:
154154
`https://docs.nexmo.com/verify/api-reference/api-reference#vrequest <https://docs.nexmo.com/verify/api-reference/api-reference#vrequest?utm_source=DEV_REL&utm_medium=github&utm_campaign=python-client-library>`__
@@ -164,9 +164,9 @@ Check a verification
164164
response = client.check_verification('00e6c3377e5348cdaf567e1417c707a5', code='1234')
165165
166166
if response['status'] == '0':
167-
print 'Verification complete, event_id=' + response['event_id']
167+
print('Verification complete, event_id=' + response['event_id'])
168168
else:
169-
print 'Error:', response['error_text']
169+
print('Error:', response['error_text'])
170170
171171
Docs:
172172
`https://docs.nexmo.com/verify/api-reference/api-reference#check <https://docs.nexmo.com/verify/api-reference/api-reference#check?utm_source=DEV_REL&utm_medium=github&utm_campaign=python-client-library>`__

0 commit comments

Comments
 (0)