项目作者: kaushal235

项目描述 :
Python client for accurate background check
高级语言: Python
项目地址: git://github.com/kaushal235/accurate_bg_check.git
创建时间: 2017-08-20T13:46:09Z
项目社区:https://github.com/kaushal235/accurate_bg_check

开源协议:MIT License

下载


accurate_bg_check

Python client for accurate background check

Accessing the API

Create the BgCheck client object before you make any calls to Accurate Background Check. Setup the client connection using the CLIENT_KEY and CLIENT_SECRET

  1. from accurate_bg_check.client import BgCheck
  2. client = BgCheck('CLIENT_KEY, CLIENT_SECRET')

Get Candidate List

  1. from accurate_bg_check.candidate import Candidate
  2. candidate = Candidate(client=client)
  3. print(candidate.list())

Create Candidate

  1. from accurate_bg_check.candidate import Candidate
  2. candidate = Candidate(client=client)
  3. payload = {
  4. "firstName": "Test name Albert {0}".format(random.randint(1,999)),
  5. "lastName": "Einstein",
  6. "middleName": 'A',
  7. "dateOfBirth": "1972-05-26",
  8. "ssn": "000-00-000",
  9. "email": "noemail_{0}@somenoemailsomenoemail.com".format(random.randint(1000,9999999999)),
  10. "phone": "000-000-0000",
  11. 'address': 'address 1',
  12. 'city': 'Burbank',
  13. "region": "CA",
  14. "country": "US",
  15. 'postalCode': 91501
  16. }
  17. response = candidate.create(payload) # pass json object
  18. print(response)