Please see License File for more information. Fetches a list of rooms, and also stores a mapping of names to. Please review our security policy on how to report security vulnerabilities. Please see CHANGELOG for more information on what has changed recently. $channel = $rocketChatClient->post("channels.create", ) Properties gets renamed to something more simple or meaningful, for example "t" to "type" or "_id" to "id"Īlternatively you can make Requests directly via the RocketChat Client which will result in the raw stdClass you getįrom the RocketChat API $rocketChatClient = \visifo\Rocket\rocketChat() Now you can use create token API to get a temporary authorization token of any user registered on your Rocket.Chat instance. $channelsEndpoint->setTopic($channel->id, "myTopic")Īll functions who return the Response from RocketChat will deserialize it into its own simplified Object. I did register users on Rocket.Chat using create user API with same email id and password through which they were registered on My existing app. $channel has Type: visifo\Rocket\Objects\Channels\Channel $usersEndpoint = \visifo\Rocket\rocketChat()->users() įrom there you can make API calls $channel = $channelsEndpoint->create("m圜hannel") $rolesEndpoint = \visifo\Rocket\rocketChat()->roles() $commandsEndpoint = \visifo\Rocket\rocketChat()->commands() $chatEndpoint = \visifo\Rocket\rocketChat()->chat() You can get them from the RocketChat Client like this $channelsEndpoint = \visifo\Rocket\rocketChat()->channels() It is always advised to only run tests with a connection to a clean local or re-usable container instance of Rocket.Chat. They use the Rocket.Chat API to create a bot user and a mock human user for the bot to interact with. Account settings update on a single server do not change settings on a different server. You can update your Profile, Preference, Security and Personal Access Tokens. You can send Requests to an Endpoint via the Endpoint Objects. The node scripts in are used to prepare for and clean up after test interactions. Log in to your Rocket.Chat server with a valid username and password. ![]() # for users.update you need to set the Password ROCKET_AUTH_TOKEN=Z9_Y1_Es6OB2kMf4dBD3I6qygRT3s-Lla67pf8AU1p You only have to specify the Password if you use the users.update Endpoint, which requires 2FA ROCKET_URL= You have to specify your RocketChat Url and the UserId and AuthToken to authenticate with the RocketChat API in your You can publish the config file with: php artisan vendor:publish -provider="visifo\Rocket\RocketServiceProvider" -tag="laravel-rocketchat-api-wrapper-config" You can install the package via composer: composer require visifo-php/laravel-rocketchat-api-wrapper It's simple to use, typesafe and object-oriented. Enjoy a wide range of customization and white-labeling options. ![]() ![]() This is a Laravel RocketChat REST API Wrapper. Integrate with your ecosystem using our open API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |