passbase python
1.0.0
이 파이썬 패키지는 Swagger Codegen 프로젝트에 의해 자동으로 생성됩니다.
파이썬 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 )모든 uris는 https://api.passbase.com/verification/v2 와 관련이 있습니다
| 수업 | 방법 | HTTP 요청 | 설명 |
|---|---|---|---|
| IdentityApi | get_identity_by_id | get /identities /{id} | 신원을 얻으십시오 |
| IdentityApi | get_identity_resource_by_id | get /evenity/{id}/resources/{resource_id} | 자원을 얻으십시오 |
| IdentityApi | get_identity_resource_file_by_id | get /Identity/{id}/resources/{resource_id}/resource_files/{resource_file_id} | 리소스 파일을 가져옵니다 |
| IdentityApi | List_identities | /ID를 얻습니다 | 목록 ID |
| IdentityApi | list_identity_resources | get /evenity/{id}/resources | 리소스를 나열하십시오 |
| Projectapi | get_settings | GET /설정 | 프로젝트 설정을 얻으십시오 |