list_smtp_configs (core/smtp.py)

CLI-Anything · rms/agent-harness/cli_anything/rms/core/smtp.py · python · Apache-2.0
email

API client functions for managing SMTP configurations in RMS.

# Source: https://github.com/HKUDS/CLI-Anything | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""SMTP configuration operations for RMS API."""
from __future__ import annotations
from cli_anything.rms.utils.rms_backend import api_get, api_post, api_put, api_delete


def list_smtp_configs(token, limit=25, offset=0):
    return api_get("/smtp_configurations", params={"limit": limit, "offset": offset}, token=token)


def get_smtp_config(token, config_id):
    return api_get(f"/smtp_configurations/{config_id}", token=token)


def create_smtp_config(token, data):
    return api_post("/smtp_configurations", data=data, token=token)


def update_smtp_config(token, config_id, data):
    re

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key