Class FilesUploadRequest
java.lang.Object
com.slack.api.methods.request.files.FilesUploadRequest
- All Implemented Interfaces:
SlackApiRequest
https://api.slack.com/methods/files.upload
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanComma-separated list of channel names or IDs where the file will be shared.File contents via a POST variable.getFile()File contents via `multipart/form-data`.byte[]Filename of file.A [file type](https://api.slack.com/types/file#file_types) identifier.Initial comment to add to file.Provide another message's ts value to upload this file as a reply.getTitle()Title of file.getToken()Authentication token.inthashCode()voidsetChannels(List<String> channels) Comma-separated list of channel names or IDs where the file will be shared.voidsetContent(String content) File contents via a POST variable.voidFile contents via `multipart/form-data`.voidsetFileData(byte[] fileData) voidsetFilename(String filename) Filename of file.voidsetFiletype(String filetype) A [file type](https://api.slack.com/types/file#file_types) identifier.voidsetInitialComment(String initialComment) Initial comment to add to file.voidsetThreadTs(String threadTs) Provide another message's ts value to upload this file as a reply.voidTitle of file.voidAuthentication token.toString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `files:write`- Specified by:
getTokenin interfaceSlackApiRequest- Returns:
- token string value or null
-
getFile
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. -
getFileData
public byte[] getFileData() -
getContent
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
getFiletype
A [file type](https://api.slack.com/types/file#file_types) identifier. -
getFilename
Filename of file. -
getTitle
Title of file. -
getInitialComment
Initial comment to add to file. -
getChannels
Comma-separated list of channel names or IDs where the file will be shared. -
getThreadTs
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead. -
setToken
Authentication token. Requires scope: `files:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setFile
File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`. -
setFileData
public void setFileData(byte[] fileData) -
setContent
File contents via a POST variable. If omitting this parameter, you must provide a `file`. -
setFiletype
A [file type](https://api.slack.com/types/file#file_types) identifier. -
setFilename
Filename of file. -
setTitle
Title of file. -
setInitialComment
Initial comment to add to file. -
setChannels
Comma-separated list of channel names or IDs where the file will be shared. -
setThreadTs
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-