Skip to main content

wiz-feishu

Project description

wiz_feishu

from wiz_message.message import Robot
from wiz_message import elements
from wiz_feishu.generator import FeishuRobotMessageGenerator
if __name__ == '__main__':
    m = Robot("title", "red")
    m.add_element(elements.Note("hello"))
    m.add_element(elements.Markdown("hello"))
    m.add_element(elements.Hr())
    m.add_element(elements.MarkdownAt("ou_004b55017df575ea6182a8643bb6e53d"))
    m.add_element(elements.TextAndButton("text", elements.Button("button", "type", "id", None)))
    m.add_element(elements.TextAndButton("text", elements.Button("button", "type", "id", elements.Confirm("title", "content"))))
    m.add_element(elements.TextAndOptions("text", elements.Options("placeholder", "type", "id", [elements.OptionItem("text", "value")], elements.Confirm("title", "content"))))
    m.add_element(elements.TextAndDatePicker("text", elements.DatePicker("placeholder", "type", "id", elements.Confirm("title", "content"), )))
    FeishuRobotMessageGenerator.to_message(m, )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wiz-feishu-2.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

wiz_feishu-2.0.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page