stgalkin/ringcentral-webhooks

使用webhooks对https://ringcentral.com/进行简单封装

0.1.35 2020-03-02 17:44 UTC

This package is auto-updated.

Last update: 2024-09-29 05:22:21 UTC


README

Build Status License: MIT

PHP RingCentral Webhook

一个易于使用的PHP库,通过RingCentral Webhook在RingCentral中发送消息

包安装 - Composer

您可以通过composer安装此包

composer require stgalkin/ringcentral-webhooks

用法

如果您想向您的频道发送消息,请创建一个简单的消息。

$adapter = new \Stgalkin\RingCentral\RingCentralAdapter(<WEBHOOK_URL>);
$message  = new \Stgalkin\RingCentral\Message\SimpleMessage('Title', 'Message');
$adapter->send($message);

自定义消息

您可以根据自己的逻辑自由扩展 AbstractMessageMessageContract

文档

更多示例和文档您可以在以下链接中找到: RingCentral 开发者

许可证

此PHP RingCentral Webhook适配器是开源软件,受MIT许可证许可。