MCPcopy Create free account

hub / github.com/RocketChat/Rocket.Chat.Go.SDK / functions

Functions140 in github.com/RocketChat/Rocket.Chat.Go.SDK

↓ 28 callersMethodGet
Get call Get
rest/client.go:99
↓ 28 callersFunctionstringOrZero
(i interface{})
realtime/messages.go:261
↓ 19 callersFunctiongetDefaultClient
(t *testing.T)
rest/client_test.go:20
↓ 14 callersMethodPost
Post call as JSON
rest/client.go:104
↓ 8 callersFunctionGetRandomString
()
common_testing/testing.go:15
↓ 8 callersMethodPostMessage
PostMessage send a message to a channel. The channel or roomId has to be not nil. The message will be json encode. https://rocket.chat/docs/developer
rest/messages.go:42
↓ 4 callersFunctionGetRandomEmail
()
common_testing/testing.go:25
↓ 4 callersFunctionfindMessage
(messages []models.Message, user string, msg string)
rest/client_test.go:46
↓ 3 callersMethoddoRequest
(method, api string, params url.Values, body io.Reader, response Response)
rest/client.go:113
↓ 3 callersFunctiongetAuthenticatedClient
(t *testing.T, name, email, password string)
rest/client_test.go:31
↓ 3 callersFunctiongetMessageFromDocument
(arg *gabs.Container)
realtime/messages.go:238
↓ 2 callersMethodDeleteMessage
DeleteMessage deletes a specific message. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/delete
rest/messages.go:131
↓ 2 callersMethodGetChannelMembers
GetChannelMembers lists all channel users. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/members
rest/channels.go:161
↓ 2 callersMethodGetMessages
Get messages from a channel. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https:
rest/messages.go:73
↓ 2 callersFunctionNewClient
NewClient creates a new instance and connects to the websocket.
realtime/client.go:21
↓ 2 callersMethodOK
()
rest/client.go:21
↓ 2 callersMethodPostForm
PostForm call as Form Data
rest/client.go:109
↓ 2 callersMethodRegisterUser
RegisterUser a new user on the server. This function does not need a logged in user. The registered user gets logged in to set its username.
realtime/users.go:32
↓ 2 callersMethodSub
Subscribes to stream-notify-logged Returns a buffered channel https://rocket.chat/docs/developer-guides/realtime-api/subscriptions/stream-room-messag
realtime/subscriptions.go:14
↓ 2 callersMethodSubscribeToMessageStream
SubscribeToMessageStream Subscribes to the message updates of a channel Returns a buffered channel https://rocket.chat/docs/developer-guides/realtime
realtime/messages.go:186
↓ 2 callersMethodUserInfo
UserInfo retrieves information about a user. The result is only limited to what the callee has access to view. https://developer.rocket.chat/referenc
rest/users.go:191
↓ 2 callersFunctiongetLoggedInClient
(t *testing.T)
realtime/client_test.go:16
↓ 1 callersMethodClose
Close closes the ddp session
realtime/client.go:99
↓ 1 callersMethodCreateChannel
CreateChannel creates a new public channel, optionally including specified users. The channel creator is always included. https://developer.rocket.ch
rest/channels.go:106
↓ 1 callersMethodExecuteSlashCommand
ExecuteSlashCommand Execute a slash command in a room in the Rocket.Chat server command and roomId are required params is optional it depends upon com
rest/slashCommand.go:39
↓ 1 callersMethodGetChannelInfo
GetChannelInfo get information about a channel. That might be useful to update the usernames. https://rocket.chat/docs/developer-guides/rest-api/chan
rest/channels.go:86
↓ 1 callersMethodGetDirectory
GetDirectory a method, that searches by users or channels on all users and channels available on server. It supports the Offset, Count, and Sort Query
rest/information.go:36
↓ 1 callersMethodGetJoinedChannels
GetJoinedChannels returns all channels that the user has joined. https://rocket.chat/docs/developer-guides/rest-api/channels/list-joined
rest/channels.go:66
↓ 1 callersMethodGetMentionedMessages
GetMentionedMessages retrieves mentioned messages. It supports the Offset and Count Query Parameters. https://developer.rocket.chat/reference/api/res
rest/messages.go:95
↓ 1 callersMethodGetMessage
GetMessage retrieves a single chat message by the provided id. Callee must have permission to access the room where the message resides. https://deve
rest/messages.go:58
↓ 1 callersMethodGetPublicChannels
GetPublicChannels returns all channels that can be seen by the logged in user. https://rocket.chat/docs/developer-guides/rest-api/channels/list
rest/channels.go:54
↓ 1 callersMethodGetServerInfo
GetServerInfo a simple method, requires no authentication, that returns information about the server including version information. https://rocket.ch
rest/information.go:18
↓ 1 callersMethodGetSlashCommandsList
GetSlashCommandsList Slash Commands available in the Rocket.Chat server. It supports the offset, count and Sort Query Parameters along with just the F
rest/slashCommand.go:26
↓ 1 callersMethodGetSpotlight
GetSpotlight searches for users or rooms that are visible to the user. WARNING: It will only return rooms that user didn’t join yet. https://rocket.c
rest/information.go:54
↓ 1 callersMethodGetStatistics
GetStatistics Statistics about the Rocket.Chat server. https://rocket.chat/docs/developer-guides/rest-api/miscellaneous/statistics
rest/information.go:72
↓ 1 callersMethodGetStatisticsList
GetStatisticsList Selectable statistics about the Rocket.Chat server. It supports the Offset, Count and Sort Query Parameters along with just the Fiel
rest/information.go:91
↓ 1 callersMethodInviteChannel
InviteChannel adds users to the channel. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/invite
rest/channels.go:125
↓ 1 callersMethodJoinChannel
JoinChannel joins yourself to the channel. joinCode isn't needed if the user has the permission "join-without-join-code" An empty string should be pas
rest/channels.go:146
↓ 1 callersMethodLeaveChannel
LeaveChannel leaves a channel. The id of the channel has to be not nil. https://rocket.chat/docs/developer-guides/rest-api/channels/leave
rest/channels.go:78
↓ 1 callersMethodLogin
Login a user. token shouldn't be nil, otherwise the password and the email are not allowed to be nil. https://rocket.chat/docs/developer-guides/realt
realtime/users.go:54
↓ 1 callersMethodLogin
Login a user. The Email and the Password are mandatory. The auth token of the user is stored in the Client instance. https://rocket.chat/docs/develop
rest/users.go:86
↓ 1 callersMethodLogout
Logout a user. The function returns the response message of the server. https://rocket.chat/docs/developer-guides/rest-api/authentication/logout
rest/users.go:124
↓ 1 callersMethodNewMessage
NewMessage creates basic message with an ID, a RoomID, and a Msg Takes channel and text
realtime/messages.go:24
↓ 1 callersMethodSearchMessages
SearchMessages searches for messages in a channel by id and text message https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoint
rest/messages.go:146
↓ 1 callersMethodSend
Sends a message to a channel. The name of the channel has to be not nil. The message will be html escaped. https://rocket.chat/docs/developer-guides/
rest/messages.go:33
↓ 1 callersMethodSendMessage
SendMessage sends message to channel takes message https://rocket.chat/docs/developer-guides/realtime-api/method-calls/send-message
realtime/messages.go:67
↓ 1 callersMethodUpdateMessage
UpdateMessage updates a specific message. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/message-update
rest/messages.go:116
↓ 1 callersMethodUpdatePermissions
UpdatePermissions updates permissions https://rocket.chat/docs/developer-guides/rest-api/permissions/update/
rest/permissions.go:21
↓ 1 callersFunctionassertMessage
(t *testing.T, message models.Message)
realtime/messages_test.go:44
↓ 1 callersFunctiongetMessageFromData
(data interface{})
realtime/messages.go:232
↓ 1 callersFunctiongetMessagesFromUpdateEvent
(update ddp.Update)
realtime/messages.go:214
↓ 1 callersMethodgetUrl
()
rest/client.go:91
↓ 1 callersFunctiongetUserFromData
(data interface{})
realtime/users.go:84
↓ 1 callersMethodnewRandomId
Some of the rocketchat objects need unique IDs specified by the client
realtime/client.go:104
↓ 1 callersFunctionsendAndAssertNoError
(t *testing.T, c *Client, message *models.Message)
realtime/messages_test.go:52
MethodAddStatusListener
(listener func(int))
realtime/client.go:70
MethodArchiveChannel
ArchiveChannel archives the channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/archive-rooms
realtime/channels.go:168
MethodChannelHistory
Get messages from a channel. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https:
rest/channels.go:181
MethodCollectionUpdate
(collection, operation, id string, doc ddp.Update)
realtime/subscriptions.go:38
MethodCollectionUpdate
(collection, operation, id string, doc ddp.Update)
realtime/messages.go:281
MethodConnectionAway
ConnectionAway sets connection status to away
realtime/client.go:79
MethodConnectionOnline
ConnectionOnline sets connection status to online
realtime/client.go:89
MethodCreateChannel
CreateChannel creates a channel Takes name and users array https://rocket.chat/docs/developer-guides/realtime-api/method-calls/create-channels
realtime/channels.go:116
MethodCreateDirectMessage
Creates a DirectMessage https://developer.rocket.chat/api/rest-api/methods/im/create
rest/dm.go:29
MethodCreateGroup
CreateGroup creates a private group Takes group name and array of users https://rocket.chat/docs/developer-guides/realtime-api/method-calls/create-pr
realtime/channels.go:129
MethodCreateToken
CreateToken creates an access token for a user https://rocket.chat/docs/developer-guides/rest-api/users/createtoken/
rest/users.go:110
MethodCreateUser
CreateUser being logged in with a user that has permission to do so. https://rocket.chat/docs/developer-guides/rest-api/users/create
rest/users.go:141
MethodDDP
()
realtime/client.go:66
MethodDMHistory
Get messages from a dm. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https://roc
rest/dm.go:46
MethodDeleteChannel
DeleteChannel deletes the channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/delete-rooms
realtime/channels.go:194
MethodDeleteMessage
DeleteMessage deletes a message takes a message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/delete-message
realtime/messages.go:94
MethodEditMessage
EditMessage edits a message takes message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/update-message
realtime/messages.go:81
MethodGetChannelId
(name string)
realtime/channels.go:10
MethodGetChannelRoles
GetChannelRoles returns room roles https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-room-roles
realtime/channels.go:103
MethodGetChannelSubscriptions
GetChannelSubscriptions gets users channel subscriptions Optionally includes date to get all since last check or 0 to get all https://rocket.chat/doc
realtime/channels.go:55
MethodGetChannelsIn
GetChannelsIn returns list of channels Optionally includes date to get all since last check or 0 to get all https://rocket.chat/docs/developer-guides
realtime/channels.go:25
MethodGetGroupInfo
GetGroupInfo get information about a group. That might be useful to update the usernames. https://rocket.chat/docs/developer-guides/rest-api/groups/i
rest/groups.go:35
MethodGetGroupMembers
GetChannelMembers lists all channel users. https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/channels-endpoints/members
rest/group.go:45
MethodGetPermissions
GetPermissions gets permissions https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-permissions
realtime/permissions.go:13
MethodGetPrivateGroups
GetPrivateGroups returns all channels that can be seen by the logged in user. https://rocket.chat/docs/developer-guides/rest-api/groups/list
rest/groups.go:23
MethodGetPublicSettings
GetPublicSettings gets public settings https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-public-settings
realtime/settings.go:13
MethodGetUserRoles
GetUserRoles gets current users roles https://rocket.chat/docs/developer-guides/realtime-api/method-calls/get-user-roles
realtime/permissions.go:43
MethodGetUserStatus
(username string)
rest/users.go:177
MethodGroupHistory
Get messages from a dm. The channel id has to be not nil. Optionally a count can be specified to limit the size of the returned messages. https://roc
rest/group.go:21
MethodJoinChannel
JoinChannel joins a channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/joining-channels
realtime/channels.go:142
MethodLeaveChannel
LeaveChannel leaves a channel Takes roomId https://rocket.chat/docs/developer-guides/realtime-api/method-calls/leaving-rooms
realtime/channels.go:155
MethodLoadHistory
LoadHistory loads history Takes roomID https://rocket.chat/docs/developer-guides/realtime-api/method-calls/load-history
realtime/messages.go:36
FunctionNewClient
(serverUrl *url.URL, debug bool)
rest/client.go:75
MethodOK
()
rest/users.go:62
MethodOK
()
rest/client.go:50
MethodPinMessage
PinMessage pins a message takes a message object https://rocket.chat/docs/developer-guides/realtime-api/method-calls/pin-message
realtime/messages.go:158
MethodReactToMessage
ReactToMessage adds a reaction to a message takes a message and emoji https://rocket.chat/docs/developer-guides/realtime-api/method-calls/set-reactio
realtime/messages.go:109
MethodReconnect
()
realtime/client.go:74
MethodSearchUsersOrRooms
Searches for users or rooms that are visible to the user. WARNING: It will only return rooms that user didn't join yet. https://developer.rocket.chat
rest/search.go:19
MethodSetChannelDescription
SetChannelDescription sets channels description takes roomId and description https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save
realtime/channels.go:259
MethodSetChannelJoinCode
SetChannelJoinCode sets channel join code takes roomId and joinCode https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-set
realtime/channels.go:233
MethodSetChannelReadOnly
SetChannelReadOnly sets channel as read only takes roomId and boolean https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-s
realtime/channels.go:246
MethodSetChannelTopic
SetChannelTopic sets channel topic takes roomId and topic https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-settings
realtime/channels.go:207
MethodSetChannelType
SetChannelType sets the channel type takes roomId and roomType https://rocket.chat/docs/developer-guides/realtime-api/method-calls/save-room-settings
realtime/channels.go:220
MethodSetPresence
SetPresence set user presence
realtime/users.go:96
next →1–100 of 140, ranked by callers