Skip to content

Commit

Permalink
fixed Verify V2 examples in README.md (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinjimenez authored Aug 5, 2024
1 parent 2b8d988 commit b5ddf12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ params = {
'brand': 'ACME, Inc',
'workflow': [{'channel': 'sms', 'to': '447700900000'}]
}
verify_request = verify2.new_request(params)
verify_request = client.verify2.new_request(params)
```

### Use silent authentication, with email as a fallback
Expand All @@ -451,7 +451,7 @@ params = {
{'channel': 'email', 'to': 'customer@example.com', 'from': 'business@example.com'}
]
}
verify_request = verify2.new_request(params)
verify_request = client.verify2.new_request(params)
check_url = verify_request['check_url'] # URL to continue with the silent auth workflow
```

Expand All @@ -466,7 +466,7 @@ params = {
'brand': 'ACME, Inc',
'workflow': [{'channel': 'sms', 'to': '447700900000', 'app_hash': 'asdfghjklqw'}],
}
verify_request = verify2.new_request(params)
verify_request = client.verify2.new_request(params)
```

### Send a verification request to a blocked network
Expand All @@ -479,19 +479,19 @@ params = {
'fraud_check': False,
'workflow': [{'channel': 'sms', 'to': '447700900000'}]
}
verify_request = verify2.new_request(params)
verify_request = client.verify2.new_request(params)
```

### Check a verification code

```python
verify2.check_code(REQUEST_ID, CODE)
client.verify2.check_code(REQUEST_ID, CODE)
```

### Cancel an ongoing verification

```python
verify2.cancel_verification(REQUEST_ID)
client.verify2.cancel_verification(REQUEST_ID)
```

## Verify V1 API
Expand Down

0 comments on commit b5ddf12

Please sign in to comment.