passbase python
1.0.0
Este paquete Python es generado automáticamente por el proyecto Swagger Codegen:
Python 2.7 y 3.4+
Si el paquete Python está alojado en GitHub, puede instalar directamente desde Github
pip install git+https://github.com/passbase/passbase-python.git (Es posible que deba ejecutar pip con permiso raíz: sudo pip install git+https://github.com/passbase/passbase-python.git )
Luego importe el paquete:
import passbase Instalar a través de SetupTools.
python setup.py install --user (o sudo python setup.py install para instalar el paquete para todos los usuarios)
Luego importe el paquete:
import passbase Siga el procedimiento de instalación y luego ejecute lo siguiente:
from __future__ import print_function
import time
import passbase
from passbase . rest import ApiException
from pprint import pprint
# Configure API key authorization: SecretApiKey
configuration = passbase . Configuration ()
configuration . api_key [ 'X-API-KEY' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = passbase . IdentityApi ( passbase . ApiClient ( configuration ))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | Unique ID of the identity to return
try :
# Get identity
api_response = api_instance . get_identity_by_id ( id )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling IdentityApi->get_identity_by_id: %s n " % e )
# Configure API key authorization: SecretApiKey
configuration = passbase . Configuration ()
configuration . api_key [ 'X-API-KEY' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = passbase . IdentityApi ( passbase . ApiClient ( configuration ))
id = 'id_example' # str | Identity id
resource_id = 'resource_id_example' # str | Resource id
try :
# Get resource
api_response = api_instance . get_identity_resource_by_id ( id , resource_id )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling IdentityApi->get_identity_resource_by_id: %s n " % e )
# Configure API key authorization: SecretApiKey
configuration = passbase . Configuration ()
configuration . api_key [ 'X-API-KEY' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = passbase . IdentityApi ( passbase . ApiClient ( configuration ))
id = 'id_example' # str | Identity id
resource_id = 'resource_id_example' # str | Resource id
resource_file_id = 'resource_file_id_example' # str | Resource file id
try :
# Get resource file
api_response = api_instance . get_identity_resource_file_by_id ( id , resource_id , resource_file_id )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling IdentityApi->get_identity_resource_file_by_id: %s n " % e )
# Configure API key authorization: SecretApiKey
configuration = passbase . Configuration ()
configuration . api_key [ 'X-API-KEY' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = passbase . IdentityApi ( passbase . ApiClient ( configuration ))
limit = 56 # int | (optional)
cursor = 'cursor_example' # str | (optional)
try :
# List identities
api_response = api_instance . list_identities ( limit = limit , cursor = cursor )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling IdentityApi->list_identities: %s n " % e )
# Configure API key authorization: SecretApiKey
configuration = passbase . Configuration ()
configuration . api_key [ 'X-API-KEY' ] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = passbase . IdentityApi ( passbase . ApiClient ( configuration ))
id = 'id_example' # str | Identity id
limit = 56 # int | (optional)
cursor = 'cursor_example' # str | (optional)
try :
# List resources
api_response = api_instance . list_identity_resources ( id , limit = limit , cursor = cursor )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling IdentityApi->list_identity_resources: %s n " % e )Todos los URI son relativos a https://api.passbase.com/verification/v2
| Clase | Método | Solicitud HTTP | Descripción |
|---|---|---|---|
| Identityapi | get_identity_by_id | Get /Identity /{id} | Obtener identidad |
| Identityapi | get_identity_resource_by_id | Get /Identity/{id}/Resources/{Resource_id} | Obtener recurso |
| Identityapi | get_identity_resource_file_by_id | Get /identity/{id}/recursos/{resource_id}/resource_files/{resource_file_id} | Obtener archivo de recursos |
| Identityapi | list_identidades | Obtener /identidades | Identidades de lista |
| Identityapi | list_identity_resources | Get /identity/{id}/recursos | Enumerar recursos |
| ProyectAPI | get_settings | Obtener /configuración | Obtener la configuración del proyecto |