mentortools/libs/: chat-server-connector-1.2.0+2267218980 metadata and description

Homepage Simple index Newer version available

Mentortools Chat API

author OpenAPI Generator Community
author_email team@openapitools.org
classifiers
  • License :: OSI Approved
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Programming Language :: Python :: 3.14
description_content_type text/markdown
keywords OpenAPI,OpenAPI-Generator,Mentortools Chat API
license Unlicense
project_urls
  • Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
requires_dist
  • urllib3 (>=1.25.3)
  • python-dateutil (>=2.8.2)
  • aiohttp (>=3.8.4)
  • pydantic (>=1.10.5,<2.0.0)
  • aenum (>=3.1.11)
requires_python >=3.8,<4.0
File Tox results History
chat_server_connector-1.2.0+2267218980-py3-none-any.whl
Size
105 KB
Type
Python Wheel
Python
3
chat_server_connector-1.2.0+2267218980.tar.gz
Size
62 KB
Type
Source

chat-server-connector

Mentortools service for chatting

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import chat_server_connector

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import chat_server_connector

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import chat_server_connector
from chat_server_connector.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 = chat_server_connector.Configuration(
    host = "http://localhost"
)

# 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: APIKeyHeader
configuration.api_key['APIKeyHeader'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyHeader'] = 'Bearer'

# Configure Bearer authorization: HTTPBearer
configuration = chat_server_connector.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


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

    try:
        # Wipe Bots From Cache
        api_response = await api_instance.chat_api_wipe_bots_from_cache()
        print("The response of AdminApi->chat_api_wipe_bots_from_cache:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AdminApi->chat_api_wipe_bots_from_cache: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AdminApi chat_api_wipe_bots_from_cache DELETE /admin/v1/bot/cache Wipe Bots From Cache
AdminApi chat_api_wipe_portal_community_settings_from_cache DELETE /admin/v1/portal_community_settings/cache Wipe Portal Community Settings From Cache
AdminApi chat_api_wipe_portal_members_from_cache DELETE /admin/v1/portal_member/cache Wipe Portal Members From Cache
BotsApi chat_api_bot_chat_chat_get GET /bots/v1/{bot_id}/chat Bot Chat Chat Get
BotsApi chat_api_bot_chat_get_or_create PUT /bots/v1/{bot_id}/chat Bot Chat Get Or Create
BotsApi chat_api_bot_portal_chat_get GET /bots/v1/primary/chat Bot Portal Chat Get
BotsApi chat_api_bot_portal_chat_get_or_create PUT /bots/v1/primary/chat Bot Portal Chat Get Or Create
BotsApi chat_api_bot_shared_chat_get GET /bots/v1/shared/primary/chat Bot Shared Chat Get
BotsApi chat_api_bot_shared_chat_get_or_create PUT /bots/v1/shared/primary/chat Bot Shared Chat Get Or Create
ChatApiApi chat_api_bot_chat_chat_get GET /bots/v1/{bot_id}/chat Bot Chat Chat Get
ChatApiApi chat_api_bot_chat_get_or_create PUT /bots/v1/{bot_id}/chat Bot Chat Get Or Create
ChatApiApi chat_api_bot_portal_chat_get GET /bots/v1/primary/chat Bot Portal Chat Get
ChatApiApi chat_api_bot_portal_chat_get_or_create PUT /bots/v1/primary/chat Bot Portal Chat Get Or Create
ChatApiApi chat_api_bot_shared_chat_get GET /bots/v1/shared/primary/chat Bot Shared Chat Get
ChatApiApi chat_api_bot_shared_chat_get_or_create PUT /bots/v1/shared/primary/chat Bot Shared Chat Get Or Create
ChatApiApi chat_api_chat_ai_usage_insert POST /chats/v1/{chat_id}/ai_usage/insert Chat Ai Usage Insert
ChatApiApi chat_api_chat_delete DELETE /chats/v1/{chat_id} Chat Delete
ChatApiApi chat_api_chat_get GET /chats/v1/{chat_id} Chat Get
ChatApiApi chat_api_chat_join POST /chats/v1/{chat_id}/join Chat Join
ChatApiApi chat_api_chat_leave POST /chats/v1/{chat_id}/leave Chat Leave
ChatApiApi chat_api_chat_mark_as_read POST /chats/v1/{chat_id}/mark_as_read Chat Mark As Read
ChatApiApi chat_api_chat_member_ban POST /chats/v1/{chat_id}/members/{user_id}/ban Chat Member Ban
ChatApiApi chat_api_chat_members_list GET /chats/v1/{chat_id}/members Chat Members List
ChatApiApi chat_api_chat_members_update PATCH /chats/v1/{chat_id}/members Chat Members Update
ChatApiApi chat_api_chat_message_delete DELETE /chats/v1/{chat_id}/messages/{message_id} Chat Message Delete
ChatApiApi chat_api_chat_message_get GET /chats/v1/{chat_id}/messages/{message_id} Chat Message Get
ChatApiApi chat_api_chat_messages_add POST /chats/v1/{chat_id}/messages Chat Messages Add
ChatApiApi chat_api_chat_messages_insert POST /chats/v1/{chat_id}/messages/insert Chat Messages Insert
ChatApiApi chat_api_chat_messages_list GET /chats/v1/{chat_id}/messages Chat Messages List
ChatApiApi chat_api_chat_mute POST /chats/v1/{chat_id}/mute Chat Mute
ChatApiApi chat_api_chat_private_join POST /chats/v1/private/{chat_uuid}/join Chat Private Join
ChatApiApi chat_api_chat_session_get GET /chat_sessions/v1/{chat_session_id} Chat Session Get
ChatApiApi chat_api_chat_session_list_portal GET /chat_sessions/v1/portal Chat Session List Portal
ChatApiApi chat_api_chat_session_portal_count GET /chat_sessions/v1/portal/count Chat Session Portal Count
ChatApiApi chat_api_chat_session_start POST /chats/v1/{chat_id}/session/start Chat Session Start
ChatApiApi chat_api_chat_session_stop POST /chats/v1/session/stop/{session_id} Chat Session Stop
ChatApiApi chat_api_chat_unmute POST /chats/v1/{chat_id}/unmute Chat Unmute
ChatApiApi chat_api_chat_update PUT /chats/v1/{chat_id} Chat Update
ChatApiApi chat_api_chats_add POST /chats/v1/ Chats Add
ChatApiApi chat_api_chats_list GET /chats/v1/ Chats List
ChatApiApi chat_api_chats_list_available GET /chats/v1/available Chats List Available
ChatApiApi chat_api_contact_chat_get GET /contacts/v1/{user_id}/chat Contact Chat Get
ChatApiApi chat_api_contact_chat_get_or_create PUT /contacts/v1/{user_id}/chat Contact Chat Get Or Create
ChatApiApi chat_api_contact_get GET /contacts/v1/{user_id} Contact Get
ChatApiApi chat_api_contacts_list GET /contacts/v1/ Contacts List
ChatApiApi chat_api_get_total_unread_messages GET /chats/v1/unread/count Get Total Unread Messages
ChatApiApi chat_api_settings_get GET /settings/v1/ Settings Get
ChatApiApi chat_api_settings_set PUT /settings/v1/ Settings Set
ChatApiApi chat_api_wipe_bots_from_cache DELETE /admin/v1/bot/cache Wipe Bots From Cache
ChatApiApi chat_api_wipe_portal_community_settings_from_cache DELETE /admin/v1/portal_community_settings/cache Wipe Portal Community Settings From Cache
ChatApiApi chat_api_wipe_portal_members_from_cache DELETE /admin/v1/portal_member/cache Wipe Portal Members From Cache
ChatSessionsApi chat_api_chat_session_get GET /chat_sessions/v1/{chat_session_id} Chat Session Get
ChatSessionsApi chat_api_chat_session_list_portal GET /chat_sessions/v1/portal Chat Session List Portal
ChatSessionsApi chat_api_chat_session_portal_count GET /chat_sessions/v1/portal/count Chat Session Portal Count
ChatSettingsApi chat_api_settings_get GET /settings/v1/ Settings Get
ChatSettingsApi chat_api_settings_set PUT /settings/v1/ Settings Set
ChatsApi chat_api_chat_ai_usage_insert POST /chats/v1/{chat_id}/ai_usage/insert Chat Ai Usage Insert
ChatsApi chat_api_chat_delete DELETE /chats/v1/{chat_id} Chat Delete
ChatsApi chat_api_chat_get GET /chats/v1/{chat_id} Chat Get
ChatsApi chat_api_chat_join POST /chats/v1/{chat_id}/join Chat Join
ChatsApi chat_api_chat_leave POST /chats/v1/{chat_id}/leave Chat Leave
ChatsApi chat_api_chat_mark_as_read POST /chats/v1/{chat_id}/mark_as_read Chat Mark As Read
ChatsApi chat_api_chat_member_ban POST /chats/v1/{chat_id}/members/{user_id}/ban Chat Member Ban
ChatsApi chat_api_chat_members_list GET /chats/v1/{chat_id}/members Chat Members List
ChatsApi chat_api_chat_members_update PATCH /chats/v1/{chat_id}/members Chat Members Update
ChatsApi chat_api_chat_message_delete DELETE /chats/v1/{chat_id}/messages/{message_id} Chat Message Delete
ChatsApi chat_api_chat_message_get GET /chats/v1/{chat_id}/messages/{message_id} Chat Message Get
ChatsApi chat_api_chat_messages_add POST /chats/v1/{chat_id}/messages Chat Messages Add
ChatsApi chat_api_chat_messages_insert POST /chats/v1/{chat_id}/messages/insert Chat Messages Insert
ChatsApi chat_api_chat_messages_list GET /chats/v1/{chat_id}/messages Chat Messages List
ChatsApi chat_api_chat_mute POST /chats/v1/{chat_id}/mute Chat Mute
ChatsApi chat_api_chat_private_join POST /chats/v1/private/{chat_uuid}/join Chat Private Join
ChatsApi chat_api_chat_session_start POST /chats/v1/{chat_id}/session/start Chat Session Start
ChatsApi chat_api_chat_session_stop POST /chats/v1/session/stop/{session_id} Chat Session Stop
ChatsApi chat_api_chat_unmute POST /chats/v1/{chat_id}/unmute Chat Unmute
ChatsApi chat_api_chat_update PUT /chats/v1/{chat_id} Chat Update
ChatsApi chat_api_chats_add POST /chats/v1/ Chats Add
ChatsApi chat_api_chats_list GET /chats/v1/ Chats List
ChatsApi chat_api_chats_list_available GET /chats/v1/available Chats List Available
ChatsApi chat_api_get_total_unread_messages GET /chats/v1/unread/count Get Total Unread Messages
ContactsApi chat_api_contact_chat_get GET /contacts/v1/{user_id}/chat Contact Chat Get
ContactsApi chat_api_contact_chat_get_or_create PUT /contacts/v1/{user_id}/chat Contact Chat Get Or Create
ContactsApi chat_api_contact_get GET /contacts/v1/{user_id} Contact Get
ContactsApi chat_api_contacts_list GET /contacts/v1/ Contacts List
DefaultApi default_health_check GET / Health Check

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

HTTPBearer

APIKeyHeader

Author