クラス FilesUploadV2Request.FilesUploadV2RequestBuilder
java.lang.Object
com.slack.api.methods.request.files.FilesUploadV2Request.FilesUploadV2RequestBuilder
- 含まれているクラス:
FilesUploadV2Request
-
メソッドの概要
修飾子とタイプメソッド説明Description of image for screen-reader.build()Channel ID where the file will be shared.File contents via a POST variable.File contents via `multipart/form-data`.fileData(byte[] fileData) File contents via `multipart/form-data`.Name of the file being uploaded.initialComment(String initialComment) The message text introducing the file in specified channel.requestFileInfo(boolean requestFileInfo) 推奨されていません。snippetType(String snippetType) Syntax type of the snippet being uploaded.Provide another message's ts value to upload this file as a reply.Title of the file, which is visible in the Slack UI.Authentication token.toString()uploadFiles(List<FilesUploadV2Request.UploadFile> uploadFiles) Multiple files to upload
-
メソッドの詳細
-
token
Authentication token. Requires scope: `files:write`- 戻り値:
this.
-
file
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
fileData
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
content
File contents via a POST variable. If omitting this parameter, you must provide a `file`. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
filename
Name of the file being uploaded. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
title
Title of the file, which is visible in the Slack UI. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
altTxt
Description of image for screen-reader. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
snippetType
Syntax type of the snippet being uploaded. (this is mainly for backward compatibility - using uploadFiles instead is recommended)- 戻り値:
this.
-
requestFileInfo
@Deprecated public FilesUploadV2Request.FilesUploadV2RequestBuilder requestFileInfo(boolean requestFileInfo) 推奨されていません。Fetches all the file metadata for better v1 compatibility when this property is true. Note that, starting in v1.34, this flag does not do anything. The full file metadata is now returned without additional files.info API calls.- 戻り値:
this.
-
uploadFiles
public FilesUploadV2Request.FilesUploadV2RequestBuilder uploadFiles(List<FilesUploadV2Request.UploadFile> uploadFiles) Multiple files to upload- 戻り値:
this.
-
initialComment
The message text introducing the file in specified channel.- 戻り値:
this.
-
channel
Channel ID where the file will be shared. If not specified the file will be private.- 戻り値:
this.
-
threadTs
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.- 戻り値:
this.
-
build
-
toString
-