passbase python
1.0.0
このPythonパッケージは、Swagger CodeGenプロジェクトによって自動的に生成されます。
Python 2.7および3.4+
PythonパッケージがGithubでホストされている場合、Githubから直接インストールできます
pip install git+https://github.com/passbase/passbase-python.git (ルート許可を得てpipを実行する必要がある場合があります: sudo pip install git+https://github.com/passbase/passbase-python.git )
次に、パッケージをインポートします。
import passbase SetUptools経由でインストールします。
python setup.py install --user (またはsudo python setup.py install 、すべてのユーザー向けのパッケージをインストールする)
次に、パッケージをインポートします。
import passbase インストール手順に従って、次を実行してください。
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 )すべてのURIはhttps://api.passbase.com/verification/v2に関連しています
| クラス | 方法 | HTTPリクエスト | 説明 |
|---|---|---|---|
| IDAPI | get_identity_by_id | get /idities /{id} | アイデンティティを取得します |
| IDAPI | get_identity_resource_by_id | get /ID/{id}/resources/{resource_id} | リソースを取得します |
| IDAPI | get_identity_resource_file_by_id | get /Identity/{id}/resources/{resource_id}/resource_files/{resource_file_id} | リソースファイルを取得します |
| IDAPI | list_identities | 取得/アイデンティティ | アイデンティティをリストします |
| IDAPI | list_identity_resources | get /ID/{ID}/リソース | リソースをリストします |
| Projecapi | get_settings | 取得/設定 | プロジェクト設定を取得します |