Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ To add FullContact Python Client library to your project, add the below line to
requirement in the `setup.py` file.

```
python-fullcontact==4.0.0
python-fullcontact==4.1.0
```

# Installation
Expand Down Expand Up @@ -1467,7 +1467,7 @@ Being a request level parameter, this can be used to override any header that ha
# Synchronous match execution
match_response = fullcontact_client.verify.match(email="bart.lorang@fullcontact.com")
print(match_response.json())
# Output: {'email': True}
# Output: {"email" : "self", "risk": 0.2}

# Synchronous signals execution
signals_response = fullcontact_client.verify.signals(email="marquitaross006@gmail.com")
Expand All @@ -1487,13 +1487,13 @@ Output:
# Synchronous activity execution
activity_response = fullcontact_client.verify.activity(email="bart.lorang@fullcontact.com")
print(activity_response.json())
# Output: {'emails': 0.03}
# Output: {"emails" : 0.83, "online" : 0.91, "social" : 0.32, "employment" : 0.78}

# Asynchronous match execution
match_async_response = fullcontact_client.verify.match_async(email="bart.lorang@fullcontact.com")
match_response = match_async_response.result()
print(match_response.json())
# Output: {'email': True}
# Output: {"email" : "self", "risk": 0.2}

# Asynchronous signals execution
signals_async_response = fullcontact_client.verify.signals_async(email="marquitaross006@gmail.com")
Expand All @@ -1515,7 +1515,7 @@ Output:
activity_async_response = fullcontact_client.verify.activity_async(email="bart.lorang@fullcontact.com")
activity_response = activity_async_response.result()
print(activity_response.json())
# Output: {'emails': 0.03}
# Output: {"emails" : 0.83, "online" : 0.91, "social" : 0.32, "employment" : 0.78}

```

Expand Down Expand Up @@ -1546,18 +1546,15 @@ class: _fullcontact.response.verify_response.MatchResponse_
* `json()`: _dict_ - Response JSON as dict
* `get_message()`: _str_ - Response message or HTTP status message
* `get_headers()`: _dict_ - Response headers
* `get_city()`: _bool_ - city flag from Verify Match Response
* `get_region()`: _bool_ - region flag from Verify Match Response
* `get_country()`: _bool_ - country flag from Verify Match Response
* `get_continent()`: _bool_ - continent flag from Verify Match Response
* `get_postalCode()`: _bool_ - postalCode flag from Verify Match Response
* `get_familyName()`: _bool_ - familyName flag from Verify Match Response
* `get_givenName()`: _bool_ - givenName flag from Verify Match Response
* `get_phone()`: _bool_ - phone flag from Verify Match Response
* `get_maid()`: _bool_ - maid flag from Verify Match Response
* `get_email()`: _bool_ - email flag from Verify Match Response
* `get_social()`: _bool_ - social flag from Verify Match Response
* `get_nonId()`: _bool_ - nonId flag from Verify Match Response
* `get_city()`: _str_ - city flag from Verify Match Response
* `get_region()`: _str_ - region flag from Verify Match Response
* `get_country()`: _str_ - country flag from Verify Match Response
* `get_postalCode()`: _str_ - postalCode flag from Verify Match Response
* `get_familyName()`: _str_ - familyName flag from Verify Match Response
* `get_givenName()`: _str_ - givenName flag from Verify Match Response
* `get_phone()`: _str_ - phone flag from Verify Match Response
* `get_email()`: _str_ - email flag from Verify Match Response
* `get_risk()`: _float_ - email flag from Verify Match Response

### FullContactClient.verify.match_async()

Expand Down Expand Up @@ -1670,6 +1667,9 @@ class: _fullcontact.response.verify_response.VerifyActivityResponse_
* `get_message()`: _str_ - Response message or HTTP status message
* `get_headers()`: _dict_ - Response headers
* `get_emails()`: _float_ - email activity score from Verify Activity Response
* `get_online()`: _float_ - online activity score from Verify Activity Response
* `get_social()`: _float_ - social activity score from Verify Activity Response
* `get_employment()`: _float_ - employment activity score from Verify Activity Response

### FullContactClient.verify.activity_async()

Expand Down
2 changes: 1 addition & 1 deletion fullcontact/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]

__name__ = "python-fullcontact"
__version__ = "4.0.0"
__version__ = "4.1.0"
__author__ = "FullContact"
__author_email__ = "pypy@fullcontact.com"
__description__ = "Client library for FullContact V3 Enrich and Resolve APIs"
Expand Down
8 changes: 4 additions & 4 deletions fullcontact/response/verify_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@

class VerifyActivityResponse(BaseApiResponse):
def get_emails(self): return self.json().get("emails", None) or None
def get_online(self): return self.json().get("online", None) or None
def get_social(self): return self.json().get("social", None) or None
def get_employment(self): return self.json().get("employment", None) or None


class VerifyMatchResponse(BaseApiResponse):
def get_city(self): return self.json().get("city", None) or None
def get_region(self): return self.json().get("region", None) or None
def get_country(self): return self.json().get("country", None) or None
def get_continent(self): return self.json().get("continent", None) or None
def get_postalCode(self): return self.json().get("postalCode", None) or None
def get_familyName(self): return self.json().get("familyName", None) or None
def get_givenName(self): return self.json().get("familyName", None) or None
def get_phone(self): return self.json().get("phone", None) or None
def get_maid(self): return self.json().get("maid", None) or None
def get_email(self): return self.json().get("email", None) or None
def get_social(self): return self.json().get("social", None) or None
def get_nonId(self): return self.json().get("nonId", None) or None
def get_risk(self): return self.json().get("risk", None) or None


class VerifySignalResponse(BaseApiResponse):
Expand Down