Class ChatUnfurlRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest
- All Implemented Interfaces:
SlackApiRequest
https://docs.slack.dev/reference/methods/chat.unfurl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionChatUnfurlRequest(String token, String userAuthMessage, String rawUserAuthBlocks, List<LayoutBlock> userAuthBlocks, boolean userAuthRequired, String userAuthUrl, String rawUnfurls, Map<String, ChatUnfurlRequest.UnfurlDetail> unfurls, String ts, String channel, String unfurlId, String source, String rawMetadata, ChatUnfurlRequest.UnfurlMetadata metadata) Creates a newChatUnfurlRequestinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanChannel ID of the messageJSON object with an entities field providing an array of work object entities.URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.getToken()Authentication token.getTs()Timestamp of the message to add unfurl behavior to.Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorProvide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorSend users to this custom URL where they will complete authentication in your app to fully trigger unfurling.inthashCode()booleanSet to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoidsetChannel(String channel) Channel ID of the messagevoidsetMetadata(ChatUnfurlRequest.UnfurlMetadata metadata) voidsetRawMetadata(String rawMetadata) JSON object with an entities field providing an array of work object entities.voidsetRawUnfurls(String rawUnfurls) URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.voidsetRawUserAuthBlocks(String rawUserAuthBlocks) voidvoidAuthentication token.voidTimestamp of the message to add unfurl behavior to.voidsetUnfurlId(String unfurlId) voidsetUnfurls(Map<String, ChatUnfurlRequest.UnfurlDetail> unfurls) voidsetUserAuthBlocks(List<LayoutBlock> userAuthBlocks) Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorvoidsetUserAuthMessage(String userAuthMessage) Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorvoidsetUserAuthRequired(boolean userAuthRequired) Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoidsetUserAuthUrl(String userAuthUrl) Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.toString()
-
Constructor Details
-
ChatUnfurlRequest
public ChatUnfurlRequest() -
ChatUnfurlRequest
public ChatUnfurlRequest(String token, String userAuthMessage, String rawUserAuthBlocks, List<LayoutBlock> userAuthBlocks, boolean userAuthRequired, String userAuthUrl, String rawUnfurls, Map<String, ChatUnfurlRequest.UnfurlDetail> unfurls, String ts, String channel, String unfurlId, String source, String rawMetadata, ChatUnfurlRequest.UnfurlMetadata metadata) Creates a newChatUnfurlRequestinstance.- Parameters:
token- Authentication token. Requires scope: `links:write`userAuthMessage- Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorrawUserAuthBlocks-userAuthBlocks- Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavioruserAuthRequired- Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainuserAuthUrl- Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.rawUnfurls- URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.unfurls-ts- Timestamp of the message to add unfurl behavior to.channel- Channel ID of the messageunfurlId-source-rawMetadata- JSON object with an entities field providing an array of work object entities.metadata-
-
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `links:write`- Specified by:
getTokenin interfaceSlackApiRequest- Returns:
- token string value or null
-
getUserAuthMessage
Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
getRawUserAuthBlocks
-
getUserAuthBlocks
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
isUserAuthRequired
public boolean isUserAuthRequired()Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain -
getUserAuthUrl
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded. -
getRawUnfurls
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments. -
getUnfurls
-
getTs
Timestamp of the message to add unfurl behavior to. -
getChannel
Channel ID of the message -
getUnfurlId
-
getSource
-
getRawMetadata
JSON object with an entities field providing an array of work object entities. -
getMetadata
-
setToken
Authentication token. Requires scope: `links:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setUserAuthMessage
Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
setRawUserAuthBlocks
-
setUserAuthBlocks
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
setUserAuthRequired
public void setUserAuthRequired(boolean userAuthRequired) Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain -
setUserAuthUrl
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded. -
setRawUnfurls
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments. -
setUnfurls
-
setTs
Timestamp of the message to add unfurl behavior to. -
setChannel
Channel ID of the message -
setUnfurlId
-
setSource
-
setRawMetadata
JSON object with an entities field providing an array of work object entities. -
setMetadata
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-