ex_webexteams v0.1.1 ExWebexteams.Api.Shortcuts View Source

Shortcuts is a set of “shortcuts” to common api call. They are designed to be useable in a pipeline (described below)

Pipelines

Example sending messages

Send a text message to a room

@room = 12345
send_message("my message") |> to_room_id(@room) |> post_message

Send a file to a user

@user = "person@here.com"
@file = "https://files.com/funny.gif"
send_file(@file) |> to_person_email(@user) |> post_message

Link to this section Summary

Functions

Post a prepared message to webex

Send a file (by url) with an optional description

Send a text message with optional markdown

Send a prepared message to a person by email

Send a prepared message to a person by id

Send a prepared message to a room by id

Link to this section Functions

Link to this function post_message(msg, api \\ ExWebexteams.Api) View Source
post_message(message(), function()) :: {:ok, any()}

Post a prepared message to webex

Link to this function send_file(file, description \\ nil) View Source
send_file(String.t(), String.t()) :: message()

Send a file (by url) with an optional description

Link to this function send_message(text, markdown \\ nil) View Source
send_message(String.t(), String.t()) :: message()

Send a text message with optional markdown

Link to this function to_person_email(msg, email) View Source
to_person_email(message(), String.t()) :: message()

Send a prepared message to a person by email

Link to this function to_person_id(msg, id) View Source
to_person_id(message(), String.t()) :: message()

Send a prepared message to a person by id

Link to this function to_room_id(msg, id) View Source
to_room_id(message(), String.t()) :: message()

Send a prepared message to a room by id