Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

RocketChat

Symbols

  • t

Service Connections

  • Rocket.Chat
ToneAr`RocketChat`
"
Rocket.Chat
"
(Service Connection)
Interface to the Rocket.Chat REST API.
Connecting & Authenticating
ServiceConnect
["Rocket.Chat"]
creates a Rocket.Chat service connection. The authentication dialog requests a host, user name, and password.
Create a new connection explicitly with
ServiceConnect
["Rocket.Chat","New",Authentication<|"Host""https://chat.example","User""username","Password""password"|>]
.
Username/password authentication accepts the following keys:
"Host"
required
Rocket.Chat server URL beginning with http:// or https://
"User"
required
Rocket.Chat user name or login identifier
"Password"
required
Rocket.Chat password
The authentication parser logs in during connection creation and stores normalized connection authentication as
<|"Host"host,"AuthToken"token,"UserID"userID|>
on the returned service object.
Token-based connections can be created directly with
ServiceConnect
["Rocket.Chat","New",Authentication<|"Host""https://chat.example","AuthToken""token","UserID""user-id"|>]
.
Requests
ServiceExecute
[conn,"Requests"]
lists the processed Rocket.Chat request names exposed by the connection.
ServiceExecute
[conn,"request",params]
sends a Rocket.Chat REST API request using authentication stored on the service object.
ServiceExecute
[conn,"RequestParameters"]
gives the parameter names accepted by each processed request.
ServiceExecute
[conn,"RequestParameterPatterns"]
gives the parameter pattern metadata available through the service framework.
Processed request execution returns Failure on framework or HTTP-processing errors and otherwise wraps imported Rocket.Chat response data in Success.
Each implemented Rocket.Chat request is documented below. Use "Requests" and "RequestParameters" for the exact active machine-readable interface.
Disconnecting
ServiceDisconnect
[conn]
executes the Rocket.Chat logout request for the connection and then removes the service object from ServiceFramework connection management.
ServiceExecute
[conn,"Logout"]
is also exposed as a request, but
ServiceDisconnect
[conn]
is the lifecycle operation intended for disposing of a connection.
​
​
Examples  
(1)
Basic Examples  
(1)
Create a new Rocket.Chat service connection using an explicit host, user name, and password:
In[1]:=
conn=ServiceConnect["Rocket.Chat","New",Authentication"Host""https://chat.example","User""username","Password""password"]
Create a connection from an existing Rocket.Chat token pair:
In[2]:=
tokenConn=ServiceConnect["Rocket.Chat","New",Authentication"Host""https://chat.example","AuthToken""token","UserID""user-id"]
Inspect the available processed request names:
In[3]:=
ServiceExecute[conn,"Requests"]
Inspect per-request parameter names:
In[4]:=
ServiceExecute[conn,"RequestParameters"]
Get profile information for the authenticated Rocket.Chat user:
In[5]:=
ServiceExecute[conn,"GetProfileInfo"]
Read basic server information:
In[6]:=
ServiceExecute[conn,"GetServerInfo"]
Log out and dispose of the service connection:
In[7]:=
ServiceDisconnect[conn]
SeeAlso
ServiceConnect
 
▪
ServiceExecute
 
▪
ServiceDisconnect
 
▪
ServiceObject
 
▪
ServiceObjects
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com