All URIs are relative to https://api.wordlift.io
Method | HTTP request | Description |
---|---|---|
analyse | POST /single | Analyse content |
create | POST /analysis/analyses | Create |
merge | POST /merge | Analyse and Merge |
v2_analysis | POST /v2/analyze | Analyse Web Page |
Response analyse(request)
Analyse content
Analyze the content provided with the request.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.request import Request
from wordlift_client.models.response import Response
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.AnalysesApi(api_client)
request = wordlift_client.Request() # Request |
try:
# Analyse content
api_response = await api_instance.analyse(request)
print("The response of AnalysesApi->analyse:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesApi->analyse: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request | Request |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Authentication Failure | - |
500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnalysesResponse create(analyses_request)
Create
Create an analysis request
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.analyses_request import AnalysesRequest
from wordlift_client.models.analyses_response import AnalysesResponse
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.AnalysesApi(api_client)
analyses_request = wordlift_client.AnalysesRequest() # AnalysesRequest |
try:
# Create
api_response = await api_instance.create(analyses_request)
print("The response of AnalysesApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesApi->create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
analyses_request | AnalysesRequest |
- Content-Type: application/json
- Accept: application/x.wordlift.analysis+json;version=3
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
500 | Uh oh, something went wrong | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str merge(request)
Analyse and Merge
Analyze content and return the results merged as HTML code.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.request import Request
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.AnalysesApi(api_client)
request = wordlift_client.Request() # Request |
try:
# Analyse and Merge
api_response = await api_instance.merge(request)
print("The response of AnalysesApi->merge:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesApi->merge: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request | Request |
str
- Content-Type: application/json
- Accept: text/html
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Authentication Failure | - |
500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response v2_analysis(request)
Analyse Web Page
Analyse the content of a webpage by using the url
property of the request.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.request import Request
from wordlift_client.models.response import Response
from wordlift_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wordlift.io
# See configuration.py for a list of all supported configuration parameters.
configuration = wordlift_client.Configuration(
host = "https://api.wordlift.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
async with wordlift_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wordlift_client.AnalysesApi(api_client)
request = wordlift_client.Request() # Request |
try:
# Analyse Web Page
api_response = await api_instance.v2_analysis(request)
print("The response of AnalysesApi->v2_analysis:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AnalysesApi->v2_analysis: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request | Request |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Authentication Failure | - |
500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]