Class ServerService
java.lang.Object
com.github.jamesnetherton.zulip.client.api.server.ServerService
- All Implemented Interfaces:
ZulipService
Zulip server management APIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApnsDeviceToken(String token, String appId) Adds an APNs device token to register for iOS push notificationsaddCodePlayground(String name, String pygmentsLanguage, String urlTemplate) Adds a code playground.addFcmRegistrationToken(String token) Adds an FCM registration token.addLinkifier(String pattern, String urlTemplate) Adds a linkifier.createBigBlueButtonVideoCall(String meetingName) Creates a BigBlueButton video call.Creates a custom profile field.Creates a data export.deleteCustomProfileField(long profileFieldId) Deletes a custom profile field.deleteLinkifier(long id) Deletes a linkifier.Gets all data exports.Gets a user development API key.Gets all custom profile fields.Gets users that have consented to their private data being exported.getDevelopmentApiKey(String username) Gets a user development API key.getEmoji()Gets all custom emoji.Gets all linkifiers.Gets Zulip server organization settings.removeApnsDeviceToken(String token) Removes an APNs device token.removeCodePlayground(long codePlaygroundId) Removes a code playground.removeFcmRegistrationToken(String token) Removes an FCM registration token.reorderCustomProfileFields(int... order) Reorders custom profile fields.reorderLinkifiers(long... order) Reorders linkifiers.Sends mobile push test notifications.updateLinkifier(long id, String pattern, String urlTemplate) Updates a linkifier.Updates realm level default settings for new users.uploadEmoji(String name, File emojiFile) Uploads a custom emoji image file.
-
Constructor Details
-
ServerService
Constructs aServerService.- Parameters:
client- The Zulip HTTP client
-
-
Method Details
-
addLinkifier
Adds a linkifier.- Parameters:
pattern- The regular expression that should trigger the linkifierurlTemplate- The RFC 6570 compliant URL template used for the link- Returns:
- The
AddLinkifierApiRequestbuilder object - See Also:
-
updateLinkifier
Updates a linkifier.- Parameters:
id- The id of the linkifier to updatepattern- The regular expression that should trigger the linkifierurlTemplate- The RFC 6570 compliant URL template used for the link- Returns:
- The
UpdateLinkifierApiRequestbuilder object - See Also:
-
deleteLinkifier
Deletes a linkifier.- Parameters:
id- The id of the linkifier to delete- Returns:
- The
DeleteLinkifierApiRequestbuilder object - See Also:
-
getLinkifiers
Gets all linkifiers.- Returns:
- The
GetLinkifiersApiRequestbuilder object - See Also:
-
reorderLinkifiers
Reorders linkifiers.- Parameters:
order- The array of linkifier ids representing their order- Returns:
- The
ReorderLinkifiersApiRequestbuilder object - See Also:
-
uploadEmoji
Uploads a custom emoji image file.- Parameters:
name- The name of the emojiemojiFile- The file containing the emoji image to be uploaded- Returns:
- The
UploadEmojiApiRequestbuilder object - See Also:
-
getEmoji
Gets all custom emoji.- Returns:
- The
GetAllEmojiApiRequestbuilder object - See Also:
-
getServerSettings
Gets Zulip server organization settings.- Returns:
- The
GetServerSettingsApiRequestbuilder object - See Also:
-
getCustomProfileFields
Gets all custom profile fields.- Returns:
- The
GetProfileFieldsApiRequestbuilder object - See Also:
-
reorderCustomProfileFields
Reorders custom profile fields.- Parameters:
order- The array of custom profile field ids in the order that they should appear on the Zulip UI- Returns:
- The
ReorderProfileFieldsApiRequestbuilder object - See Also:
-
deleteCustomProfileField
Deletes a custom profile field.- Parameters:
profileFieldId- The id of the profile field to delete- Returns:
- The
DeleteProfileFieldApiRequestbuilder object.
-
createCustomProfileField
Creates a custom profile field.
This API is only available to organization administrators.
- Returns:
- The
CreateProfileFieldApiRequestbuilder object - See Also:
-
getDevelopmentApiKey
Gets a user development API key. Only available for development servers. This endpoint is not available on production servers.- Parameters:
username- The username to fetch the development API key for- Returns:
- The
GetApiKeyApiRequestbuilder object
-
getApiKey
Gets a user development API key. Only available for production servers. This endpoint is not available on development servers.- Parameters:
username- The username to fetch the development API key forpassword- The password to fetch the development API key for- Returns:
- The
GetApiKeyApiRequestbuilder object
-
addCodePlayground
public AddCodePlaygroundApiRequest addCodePlayground(String name, String pygmentsLanguage, String urlTemplate) Adds a code playground.- Parameters:
name- The name of the playgroundpygmentsLanguage- The name of the Pygments language lexer for that programming languageurlTemplate- The URL template for the playground- Returns:
- The
AddCodePlaygroundApiRequestbuilder object - See Also:
-
removeCodePlayground
Removes a code playground.- Parameters:
codePlaygroundId- The id of the code playground to remove- Returns:
- The
RemoveCodePlaygroundApiRequestbuilder object - See Also:
-
updateRealmNewUserDefaultSettings
Updates realm level default settings for new users.- Returns:
- The
UpdateRealmNewUserDefaultSettingsApiRequestbuilder object - See Also:
-
sendMobilePushTestNotification
Sends mobile push test notifications.- Returns:
- The
SendMobilePushTestNotificationbuilder object - See Also:
-
addApnsDeviceToken
Adds an APNs device token to register for iOS push notifications- Parameters:
token- The token provided by the deviceappId- The ID of the Zulip app that is making the request- Returns:
- The
AddApnsDeviceTokenApiRequestbuilder object - See Also:
-
removeApnsDeviceToken
Removes an APNs device token.- Parameters:
token- The token provided by the device- Returns:
- The
RemoveApnsDeviceTokenApiRequestbuilder object - See Also:
-
addFcmRegistrationToken
Adds an FCM registration token.- Parameters:
token- The token provided by the device- Returns:
- The
AddFcmRegistrationTokenApiRequestbuilder object - See Also:
-
removeFcmRegistrationToken
Removes an FCM registration token.- Parameters:
token- The token provided by the device- Returns:
- The
RemoveFcmRegistrationTokenApiRequestbuilder object - See Also:
-
createBigBlueButtonVideoCall
Creates a BigBlueButton video call.- Parameters:
meetingName- Meeting name for the BigBlueButton video call- Returns:
- The
CreateBigBlueButtonVideoCallApiRequestbuilder object - See Also:
-
getAllDataExports
Gets all data exports.- Returns:
- The
GetAllDataExportsApiRequestbuilder object - See Also:
-
createDataExport
Creates a data export.- Returns:
- The
CreateDataExportApiRequestbuilder object - See Also:
-
getDataExportConsentState
Gets users that have consented to their private data being exported.- Returns:
- The
GetDataExportConsentStateApiRequestbuilder object - See Also:
-