Class GetBotStorageApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.server.request.GetBotStorageApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Map<String,String>>
public class GetBotStorageApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Map<String,String>>
Zulip API request builder for retrieving data stored for a bot user.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
KEYS
- See Also:
-
-
Constructor Details
-
GetBotStorageApiRequest
Constructs aGetBotStorageApiRequest.- Parameters:
client- The Zulip HTTP client
-
-
Method Details
-
withKeys
Sets specific keys to retrieve from the bot's storage. If not set, all stored data is returned.- Parameters:
keys- The keys to retrieve- Returns:
- This
GetBotStorageApiRequestinstance
-
execute
Executes the Zulip API request for retrieving bot storage data.- Specified by:
executein interfaceExecutableApiRequest<Map<String,String>> - Returns:
- Map of string key-value pairs stored for the bot
- Throws:
ZulipClientException- if the request was not successful
-