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
Post a prepared message to webex
Send a file (by url) with an optional description
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