Skip to content

Add Webhook and functions: clearHistory, getMessage - #17

Open
ged-nn wants to merge 4 commits into
Fab1en:masterfrom
ged-nn:master
Open

ged-nn wants to merge 4 commits into
Fab1en:masterfrom
ged-nn:master

Conversation

@ged-nn

@ged-nn ged-nn commented May 1, 2019

Copy link
Copy Markdown

Add RocketChatWebHook.php

    This need for work as Outgoing WebHook.
        * __construct - get post data as array $postData from json and $text as array from text message
        * function sendmessage() - send message to current channel

README.md

    + example usage WebHook

RocketChatChannel.php

    + clearHistory() - Clean history of the channel.

RocketChatClient.php

    + getMessage() - Get message by msgId. Need access for user to room or chat.

ged-nn added 4 commits April 29, 2019 22:46
    This need for wokr as webhook.
        * __construct - get post data as array $postData from json and $text as array from text message
        * function sendmessage() - send message to current channel
# README.md
	+ example usage WebHook

Signed-off-by: Oleg Korshunov <ged@korshunov.ru>
	+ clearHistory - Clean history of the channel.
# RocketChatClient.php
	+ getMessage - Get message by msgId. Need access for user to room or chat.

Signed-off-by: Oleg Korshunov <ged@korshunov.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant