Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Webhook and functions: clearHistory, getMessage #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ged-nn
Copy link

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

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 <[email protected]>
	+ 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 <[email protected]>
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