All URIs are relative to https://api.wordlift.io
| Method | HTTP request | Description |
|---|---|---|
| delete_field | DELETE /accounts/{account_id}/oauth2/connectors/{connector_id}/fields/{field_name} | |
| fields | GET /accounts/{account_id}/oauth2/connectors/{connector_id}/fields | |
| put_field | PUT /accounts/{account_id}/oauth2/connectors/{connector_id}/fields/{field_name} |
delete_field(account_id, connector_id, field_name)
- 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.AccountConnectorFieldControllerApi(api_client)
account_id = 56 # int |
connector_id = 'connector_id_example' # str |
field_name = 'field_name_example' # str |
try:
await api_instance.delete_field(account_id, connector_id, field_name)
except Exception as e:
print("Exception when calling AccountConnectorFieldControllerApi->delete_field: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | int | ||
| connector_id | str | ||
| field_name | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dict[str, str] fields(account_id, connector_id)
- 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.AccountConnectorFieldControllerApi(api_client)
account_id = 56 # int |
connector_id = 'connector_id_example' # str |
try:
api_response = await api_instance.fields(account_id, connector_id)
print("The response of AccountConnectorFieldControllerApi->fields:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AccountConnectorFieldControllerApi->fields: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | int | ||
| connector_id | str |
Dict[str, str]
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_field(account_id, connector_id, field_name, field_value_request)
- Api Key Authentication (ApiKey):
import wordlift_client
from wordlift_client.models.field_value_request import FieldValueRequest
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.AccountConnectorFieldControllerApi(api_client)
account_id = 56 # int |
connector_id = 'connector_id_example' # str |
field_name = 'field_name_example' # str |
field_value_request = wordlift_client.FieldValueRequest() # FieldValueRequest |
try:
await api_instance.put_field(account_id, connector_id, field_name, field_value_request)
except Exception as e:
print("Exception when calling AccountConnectorFieldControllerApi->put_field: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | int | ||
| connector_id | str | ||
| field_name | str | ||
| field_value_request | FieldValueRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]