%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/google_chat.pyc

�
���^c@@sJdZddlmZmZmZddlZdZd�Zd�ZdS(u	
Module for sending messages to google chat.

.. versionadded:: 2019.2.0

To use this module you need to configure a webhook in the google chat room
where you would like the message to be sent, see:

    https://developers.google.com/hangouts/chat/how-tos/webhooks
i(tabsolute_importtprint_functiontunicode_literalsNugoogle_chatcC@stS(N(t__virtualname__(((s</usr/lib/python2.7/site-packages/salt/modules/google_chat.pyt__virtual__scC@sridd6}i|d6}td|ddtj|�d|dtd	t�}|jd
d�dkrjtStSd
S(u�
    Send a message to the google chat room specified in the webhook url.

    .. code-block:: bash

        salt '*' google_chat.send_message "https://chat.googleapis.com/v1/spaces/example_space/messages?key=example_key" "This is a test message"
    uapplication/jsonuContent-Typeutextu
http.queryuPOSTtdatatheader_dicttdecodetstatusustatusii�N(t	__utils__tjsontdumpstTruetgettFalse(turltmessagetheadersRtresult((s</usr/lib/python2.7/site-packages/salt/modules/google_chat.pytsend_message$s


	(	t__doc__t
__future__RRRR
RRR(((s</usr/lib/python2.7/site-packages/salt/modules/google_chat.pyt<module>s
	

Zerion Mini Shell 1.0