Skip to content

Conversation

@haneeshv
Copy link
Contributor

@haneeshv haneeshv commented Jul 17, 2023

Purpose

The verification APIs are implemented (send/resend/check)

Summary

Added wrappers for the following APIs

  • verification/send
  • verification/resend
  • verification/check

Testing

Changes covered in Unit Test for the above API wrappers(path/tests/test_verification_apis.py)

verification/send (Real Call)
image

verification/resend
image

verification/check
image

Checklist

  • The change was thoroughly tested manually
  • The change was covered with unit tests
  • The change was tested with real API calls (if applicable)
  • Necessary changes were made in the integration tests (if applicable)
  • New functionality is reflected in README

```

# The send call triggers the generation of a OTP code that is stored by Sift and email/sms the code to the user.
send_properties = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also have site_country in the example payload?

haneeshv and others added 3 commits July 19, 2023 08:44
Property description updated

Co-authored-by: Mark Lunney <[email protected]>
1. Removed compatibility checking for python 2
2. "$site_country" property is added in payload
@haneeshv haneeshv requested a review from mlunney July 21, 2023 10:39
"$verification_type": "$email",
"$brand_name": "MyTopBrand",
"$language": "en",
"$site_country": "Country Name",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any string value will technically be accepted by our API but it will be treated as null if it's invalid. What we really expect here is a 2 character country code in upper case. Can you pick your favorite country and use it's code as the example?

From our documentation:

$site_country
String
Country the company is providing service from. Use ISO-3166 country code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlunney good point. Btw, We also noticed that in our public docs there is nothing mentioned about ISO country code for site_country field in Verification API section. Makes sense to add this to the docs

README.md Outdated
"$verification_type": "$email",
"$brand_name": "MyTopBrand",
"$language": "en",
"$site_country": "Country Name",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other comment about the value for $site_country

@haneeshv haneeshv requested a review from mlunney July 23, 2023 14:26
@Mgoeb Mgoeb self-requested a review July 24, 2023 15:34
Copy link

@Mgoeb Mgoeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Max Goeb <[email protected]>
@viaskal-sift viaskal-sift merged commit 06cd95e into SiftScience:master Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants