Skip to content

Commit 0d2389f

Browse files
committed
Add checking a verification example
1 parent a8e4c36 commit 0d2389f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ client.control_verification_request(cmd='cancel', request_id='00e6c3377e5348cdaf
105105
client.control_verification_request(cmd='trigger_next_event', request_id='00e6c3377e5348cdaf567e1417c707a5')
106106
```
107107

108+
### Checking a verification
109+
110+
To check a verification, call the check_verification_request method with
111+
the PIN code provided by the user and the id of the verification request:
112+
113+
```python
114+
response = client.check_verification_request(code='1234', request_id='00e6c3377e5348cdaf567e1417c707a5')
115+
116+
if response['status'] == '0':
117+
print 'Verification complete, event ', response['event_id']
118+
else:
119+
print 'Error:', response['error_text']
120+
```
121+
108122

109123
License
110124
-------

0 commit comments

Comments
 (0)