ChatKittyPlatformAPI.Api.ChatSessions (chatkitty_platform_sdk v0.1.0)

API calls for all endpoints tagged ChatSessions.

Link to this section Summary

Functions

List chat sessions Returns a page of chat sessions belonging to this application

Link to this section Functions

Link to this function

list_chat_sessions(connection, opts \\ [])

List chat sessions Returns a page of chat sessions belonging to this application

parameters

Parameters

  • connection (ChatKittyPlatformAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters
    • :page (integer()): Zero-based page index (0..N)
    • :size (integer()): The size of the page to be returned
    • :sort ([String.t]): Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
    • :state (String.t): Filters by state

returns

Returns

on success {:error, Tesla.Env.t} on failure