@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-04-04T11:45:02.644Z[Etc/UTC]")
public class AttachmentsApi
extends java.lang.Object
Constructor and Description |
---|
AttachmentsApi(com.symphony.bdk.http.api.ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
com.symphony.bdk.http.api.ApiClient |
getApiClient()
Get the API cilent
|
void |
setApiClient(com.symphony.bdk.http.api.ApiClient apiClient)
Set the API cilent
|
AttachmentInfo |
v1StreamSidAttachmentCreatePost(java.lang.String sid,
java.lang.String sessionToken,
java.lang.String keyManagerToken,
java.io.File _file)
Deprecated.
|
com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> |
v1StreamSidAttachmentCreatePostWithHttpInfo(java.lang.String sid,
java.lang.String sessionToken,
java.lang.String keyManagerToken,
java.io.File _file)
Deprecated.
|
byte[] |
v1StreamSidAttachmentGet(java.lang.String sid,
java.lang.String fileId,
java.lang.String messageId,
java.lang.String sessionToken,
java.lang.String keyManagerToken)
Download an attachment.
|
com.symphony.bdk.http.api.ApiResponse<byte[]> |
v1StreamSidAttachmentGetWithHttpInfo(java.lang.String sid,
java.lang.String fileId,
java.lang.String messageId,
java.lang.String sessionToken,
java.lang.String keyManagerToken)
Download an attachment.
|
AttachmentInfo |
v3StreamSidAttachmentCreatePost(java.lang.String sid,
java.lang.String sessionToken,
java.io.File _file,
java.lang.String keyManagerToken)
Deprecated.
|
com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> |
v3StreamSidAttachmentCreatePostWithHttpInfo(java.lang.String sid,
java.lang.String sessionToken,
java.io.File _file,
java.lang.String keyManagerToken)
Deprecated.
|
public AttachmentsApi(com.symphony.bdk.http.api.ApiClient apiClient)
public com.symphony.bdk.http.api.ApiClient getApiClient()
public void setApiClient(com.symphony.bdk.http.api.ApiClient apiClient)
apiClient
- an instance of API client@Deprecated public AttachmentInfo v1StreamSidAttachmentCreatePost(java.lang.String sid, java.lang.String sessionToken, java.lang.String keyManagerToken, java.io.File _file) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)sessionToken
- Session authentication token. (required)keyManagerToken
- Key Manager authentication token. (required)_file
- The attachment body. (required)com.symphony.bdk.http.api.ApiException
- if fails to make API call@Deprecated public com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> v1StreamSidAttachmentCreatePostWithHttpInfo(java.lang.String sid, java.lang.String sessionToken, java.lang.String keyManagerToken, java.io.File _file) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)sessionToken
- Session authentication token. (required)keyManagerToken
- Key Manager authentication token. (required)_file
- The attachment body. (required)com.symphony.bdk.http.api.ApiException
- if fails to make API callpublic byte[] v1StreamSidAttachmentGet(java.lang.String sid, java.lang.String fileId, java.lang.String messageId, java.lang.String sessionToken, java.lang.String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)fileId
- The attachment ID (Base64-encoded) (required)messageId
- The ID of the message containing the attachment (required)sessionToken
- Session authentication token. (required)keyManagerToken
- Key Manager authentication token. (required)com.symphony.bdk.http.api.ApiException
- if fails to make API callpublic com.symphony.bdk.http.api.ApiResponse<byte[]> v1StreamSidAttachmentGetWithHttpInfo(java.lang.String sid, java.lang.String fileId, java.lang.String messageId, java.lang.String sessionToken, java.lang.String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)fileId
- The attachment ID (Base64-encoded) (required)messageId
- The ID of the message containing the attachment (required)sessionToken
- Session authentication token. (required)keyManagerToken
- Key Manager authentication token. (required)com.symphony.bdk.http.api.ApiException
- if fails to make API call@Deprecated public AttachmentInfo v3StreamSidAttachmentCreatePost(java.lang.String sid, java.lang.String sessionToken, java.io.File _file, java.lang.String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)sessionToken
- Session authentication token. (required)_file
- The attachment body. (required)keyManagerToken
- Key Manager authentication token. (optional)com.symphony.bdk.http.api.ApiException
- if fails to make API call@Deprecated public com.symphony.bdk.http.api.ApiResponse<AttachmentInfo> v3StreamSidAttachmentCreatePostWithHttpInfo(java.lang.String sid, java.lang.String sessionToken, java.io.File _file, java.lang.String keyManagerToken) throws com.symphony.bdk.http.api.ApiException
sid
- Stream ID (required)sessionToken
- Session authentication token. (required)_file
- The attachment body. (required)keyManagerToken
- Key Manager authentication token. (optional)com.symphony.bdk.http.api.ApiException
- if fails to make API call