All URIs are relative to https://api.wordlift.io
Method | HTTP request | Description |
---|---|---|
create_word | POST /content-generations/{contentGenerationId}/words | Create |
create_words | PUT /content-generations/{contentGenerationId}/words | Update for prompt |
create_words_from_csv | PUT /content-generations/{contentGenerationId}/words/imports | Update from CSV |
delete_word | DELETE /content-generations/{contentGenerationId}/words/{id} | Delete |
list_words | GET /content-generations/{contentGenerationId}/words | List |
update_word | PUT /content-generations/{contentGenerationId}/words/{id} | Update |
Word create_word(content_generation_id, word_request)
Create
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.word import Word
from wordlift_client.models.word_request import WordRequest
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
word_request = wordlift_client.WordRequest() # WordRequest |
try:
# Create
api_response = await api_instance.create_word(content_generation_id, word_request)
print("The response of ContentGenerationWordBiasesApi->create_word:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->create_word: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
word_request | WordRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[Word] create_words(content_generation_id, word_request=word_request)
Update for prompt
Send a list of word biases for this prompt. Existing words will be deleted.
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.word import Word
from wordlift_client.models.word_request import WordRequest
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
word_request = [wordlift_client.WordRequest()] # List[WordRequest] | (optional)
try:
# Update for prompt
api_response = await api_instance.create_words(content_generation_id, word_request=word_request)
print("The response of ContentGenerationWordBiasesApi->create_words:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->create_words: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
word_request | List[WordRequest] | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create_words_from_csv(content_generation_id, body, content_type=content_type)
Update from CSV
- Api Key Authentication (ApiKey):
import wordlift_client
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
body = 'body_example' # str |
content_type = 'content_type_example' # str | (optional)
try:
# Update from CSV
await api_instance.create_words_from_csv(content_generation_id, body, content_type=content_type)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->create_words_from_csv: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
body | str | ||
content_type | str | [optional] |
void (empty response body)
- Content-Type: text/csv
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_word(content_generation_id, id)
Delete
- Api Key Authentication (ApiKey):
import wordlift_client
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
id = 56 # int | The Word to delete.
try:
# Delete
await api_instance.delete_word(content_generation_id, id)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->delete_word: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
id | int | The Word to delete. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Created | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageWord list_words(content_generation_id, the_cursor_=the_cursor_, the_maximum_number_of_results_=the_maximum_number_of_results_)
List
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.page_word import PageWord
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
the_cursor_ = 'the_cursor__example' # str | (optional)
the_maximum_number_of_results_ = 10 # int | (optional) (default to 10)
try:
# List
api_response = await api_instance.list_words(content_generation_id, the_cursor_=the_cursor_, the_maximum_number_of_results_=the_maximum_number_of_results_)
print("The response of ContentGenerationWordBiasesApi->list_words:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->list_words: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
the_cursor_ | str | [optional] | |
the_maximum_number_of_results_ | int | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Found. | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Word update_word(content_generation_id, id, word_request)
Update
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.word import Word
from wordlift_client.models.word_request import WordRequest
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.ContentGenerationWordBiasesApi(api_client)
content_generation_id = 56 # int | The Content Generation id.
id = 56 # int | The Word bias to update.
word_request = wordlift_client.WordRequest() # WordRequest |
try:
# Update
api_response = await api_instance.update_word(content_generation_id, id, word_request)
print("The response of ContentGenerationWordBiasesApi->update_word:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ContentGenerationWordBiasesApi->update_word: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
content_generation_id | int | The Content Generation id. | |
id | int | The Word bias to update. | |
word_request | WordRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Updated | - |
401 | Authentication Failure | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]