-
Notifications
You must be signed in to change notification settings - Fork 122
feat: Add Identity Insights API #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dragonmantank
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing, avoid a request if we don't have to make it.
|
|
||
| options = IdentityInsightsRequest( | ||
| phone_number="1234567890", | ||
| insights=InsightsRequest(format=EmptyInsight()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be one of those things where we should be able to fail sale early - it makes no sense to send an empty request, so we should save the HTTP request and just throw the proper exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I follow you. Identity Insights needs to include a explicit empty object in the request for some insights (format, carrier information, roaming and reachability).
No description provided.