Class GetFileTemporaryUrlApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.GetFileTemporaryUrlApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<String>
public class GetFileTemporaryUrlApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<String>
Zulip API request builder for getting a temporary URL for access to an uploaded file without authentication.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetFileTemporaryUrlApiRequest(ZulipHttpClient client, String realmIdStr, String filename) Constructs aGetFileTemporaryUrlApiRequest. -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Constructor Details
-
GetFileTemporaryUrlApiRequest
Constructs aGetFileTemporaryUrlApiRequest.- Parameters:
client- The Zulip HTTP clientrealmIdStr- The realm ID component of the file'spath_idfilename- The file path component of the file'spath_id(everything after the first/)
-
-
Method Details
-
execute
Executes the Zulip API request for getting a temporary URL for an uploaded file.- Specified by:
executein interfaceExecutableApiRequest<String>- Returns:
- A temporary URL that provides unauthenticated access to the file
- Throws:
ZulipClientException- if the request was not successful
-