Skip to content

Latest commit

 

History

History
101 lines (80 loc) · 6.66 KB

EnhanceLiveEndpointApi.md

File metadata and controls

101 lines (80 loc) · 6.66 KB

diffbot_enhance_client.EnhanceLiveEndpointApi

All URIs are relative to https://kg.diffbot.com

Method HTTP request Description
enhance GET /kg/enhance_endpoint Live Enhance Endpoint

enhance

EnhanceResponse enhance(token=token, type=type, id=id, name=name, url=url, phone=phone, email=email, description=description, employer=employer, title=title, school=school, location=location, mode=mode, non_canonical_facts=non_canonical_facts, jsonmode=jsonmode, rocket_reach_token=rocket_reach_token, x_diffbot_request_id=x_diffbot_request_id)

Live Enhance Endpoint

Enhance endpoint to find person or organization using partial data

Example

from __future__ import print_function
import time
import diffbot_enhance_client
from diffbot_enhance_client.rest import ApiException
from pprint import pprint

# Enter a context with an instance of the API client
with diffbot_enhance_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = diffbot_enhance_client.EnhanceLiveEndpointApi(api_client)
    token = 'token_example' # str | Diffbot Token (optional)
type = 'type_example' # str | Diffbot entity type (optional)
id = 'id_example' # str | DiffbotId of entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
name = 'name_example' # str | Name of the entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
url = 'url_example' # str | Origin or homepage URI of entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
phone = 'phone_example' # str | Phone of the entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
email = 'email_example' # str | Email of the entity to enhance. Parameter can be used only with type `Person` (optional)
description = 'description_example' # str | Description of the entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
employer = 'employer_example' # str | Employer of the entity to enhance. Parameter can be used only with type `Person` (optional)
title = 'title_example' # str | Title of the entity to enhance. Parameter can be used only with type `Person` (optional)
school = 'school_example' # str | School of the entity to enhance. Parameter can be used only with type `Person` (optional)
location = 'location_example' # str | Location of the entity to enhance. Parameter can be used with types `Person` and `Organization` (optional)
mode = 'mode_example' # str | `mode=refresh` indicates that Diffbot will attempt to recrawl all the origins of the identified entity and reconstruct the returned entity from this refreshed data. (optional)
non_canonical_facts = 'non_canonical_facts_example' # str | `nonCanonicalFacts=true` returns non-canonical facts. (optional)
jsonmode = 'jsonmode_example' # str | `jsonmode=extended` returns origin information for facts. (optional)
rocket_reach_token = 'rocket_reach_token_example' # str | rocketReach token (optional)
x_diffbot_request_id = 'x_diffbot_request_id_example' # str | Request UUID for tracking. If available, will be set on response. (optional)

    try:
        # Live Enhance Endpoint
        api_response = api_instance.enhance(token=token, type=type, id=id, name=name, url=url, phone=phone, email=email, description=description, employer=employer, title=title, school=school, location=location, mode=mode, non_canonical_facts=non_canonical_facts, jsonmode=jsonmode, rocket_reach_token=rocket_reach_token, x_diffbot_request_id=x_diffbot_request_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling EnhanceLiveEndpointApi->enhance: %s\n" % e)

Parameters

Name Type Description Notes
token str Diffbot Token [optional]
type str Diffbot entity type [optional]
id str DiffbotId of entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
name str Name of the entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
url str Origin or homepage URI of entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
phone str Phone of the entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
email str Email of the entity to enhance. Parameter can be used only with type `Person` [optional]
description str Description of the entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
employer str Employer of the entity to enhance. Parameter can be used only with type `Person` [optional]
title str Title of the entity to enhance. Parameter can be used only with type `Person` [optional]
school str School of the entity to enhance. Parameter can be used only with type `Person` [optional]
location str Location of the entity to enhance. Parameter can be used with types `Person` and `Organization` [optional]
mode str `mode=refresh` indicates that Diffbot will attempt to recrawl all the origins of the identified entity and reconstruct the returned entity from this refreshed data. [optional]
non_canonical_facts str `nonCanonicalFacts=true` returns non-canonical facts. [optional]
jsonmode str `jsonmode=extended` returns origin information for facts. [optional]
rocket_reach_token str rocketReach token [optional]
x_diffbot_request_id str Request UUID for tracking. If available, will be set on response. [optional]

Return type

EnhanceResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Enhanced entity -
400 Error parsing request -
401 Token not specified or other client errors -
429 Insufficient credits -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]