Skip to content

Latest commit

 

History

History
358 lines (226 loc) · 9.3 KB

File metadata and controls

358 lines (226 loc) · 9.3 KB

postiz_python_client.DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
copilot_controller_agent POST /copilot/agent
copilot_controller_calculate_credits GET /copilot/credits
copilot_controller_chat_agent POST /copilot/chat
copilot_controller_get_list GET /copilot/list
copilot_controller_get_messages_list GET /copilot/{thread}/list
root_controller_get_root GET /

copilot_controller_agent

copilot_controller_agent()

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)

    try:
        api_instance.copilot_controller_agent()
    except Exception as e:
        print("Exception when calling DefaultApi->copilot_controller_agent: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 -

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

copilot_controller_calculate_credits

copilot_controller_calculate_credits(type)

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)
    type = 'type_example' # str | 

    try:
        api_instance.copilot_controller_calculate_credits(type)
    except Exception as e:
        print("Exception when calling DefaultApi->copilot_controller_calculate_credits: %s\n" % e)

Parameters

Name Type Description Notes
type str

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

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

copilot_controller_chat_agent

copilot_controller_chat_agent()

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)

    try:
        api_instance.copilot_controller_chat_agent()
    except Exception as e:
        print("Exception when calling DefaultApi->copilot_controller_chat_agent: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 -

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

copilot_controller_get_list

copilot_controller_get_list()

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)

    try:
        api_instance.copilot_controller_get_list()
    except Exception as e:
        print("Exception when calling DefaultApi->copilot_controller_get_list: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

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

copilot_controller_get_messages_list

copilot_controller_get_messages_list(thread)

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)
    thread = 'thread_example' # str | 

    try:
        api_instance.copilot_controller_get_messages_list(thread)
    except Exception as e:
        print("Exception when calling DefaultApi->copilot_controller_get_messages_list: %s\n" % e)

Parameters

Name Type Description Notes
thread str

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

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

root_controller_get_root

root_controller_get_root()

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.DefaultApi(api_client)

    try:
        api_instance.root_controller_get_root()
    except Exception as e:
        print("Exception when calling DefaultApi->root_controller_get_root: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

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