Skip to main content

Vonage Identity Insights package

Project description

Vonage Identity Insights Package

This package contains the code to use the Vonage Identity Insights API in Python. The API provides real-time access to a broad range of attributes related to the carrier, subscriber, or device associated with a phone number. To use it you will need a Vonage account. Sign up [for free at vonage.com][signup].

Usage

It is recommended to use this as part of the main vonage package. The examples below assume you've created an instance of the vonage.Vonage class called vonage_client.

Make a Standard Identity Insights Request

from vonage import Vonage, Auth, HttpClientOptions
from vonage_identity_insights import (
    IdentityInsightsRequest,
    InsightsRequest,
    EmptyInsight,
    SimSwapInsight,
)

options = HttpClientOptions(api_host="api-eu.vonage.com", timeout=30)

client = Vonage(auth=auth, http_client_options=options)

request = IdentityInsightsRequest(
    phone_number="1234567890",
    purpose="FraudPreventionAndDetection",
    insights=InsightsRequest(
        format=EmptyInsight(), sim_swap=SimSwapInsight(period=240)
    ),
)

response = client.identity_insights.requests(request)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vonage_identity_insights-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vonage_identity_insights-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file vonage_identity_insights-1.0.0.tar.gz.

File metadata

File hashes

Hashes for vonage_identity_insights-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f927071678ab10d7ea43ba7d46b57459481aea31c5d9291b88526cdc374603a2
MD5 205920204fc2dc0d406a60c507132266
BLAKE2b-256 eb6a822eb135546d3326aaa72c245ad3a6ec78ad838380146fe2dcbb88f94fab

See more details on using hashes here.

File details

Details for the file vonage_identity_insights-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vonage_identity_insights-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d827a36e0b4b91e3c16d70d652072d46981578f9062c55c96033b076273a6d5e
MD5 811cf9f60717087d79857ca85f9264ca
BLAKE2b-256 83281087b50575e1c56de8664ed6afddb4f6387fbe60fe17d50614c8dff73536

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page