Class ChatUnfurlRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest
- All Implemented Interfaces:
SlackApiRequest
public class ChatUnfurlRequest extends Object implements SlackApiRequest
Provide custom unfurl behavior for user-posted URLs
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatUnfurlRequest.ChatUnfurlRequestBuilderstatic classChatUnfurlRequest.UnfurlDetail -
Method Summary
Modifier and Type Method Description static ChatUnfurlRequest.ChatUnfurlRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetChannel()Channel ID of the messageStringgetRawUnfurls()URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.StringgetToken()Authentication token.StringgetTs()Timestamp of the message to add unfurl behavior to.Map<String,ChatUnfurlRequest.UnfurlDetail>getUnfurls()List<LayoutBlock>getUserAuthBlocks()Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorStringgetUserAuthMessage()Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorStringgetUserAuthUrl()Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.inthashCode()booleanisUserAuthRequired()Set 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 messagevoidsetRawUnfurls(String rawUnfurls)URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.voidsetToken(String token)Authentication token.voidsetTs(String ts)Timestamp of the message to add unfurl behavior to.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.StringtoString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `links:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
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 -
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 -
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. -
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. -
getChannel
Channel ID of the message -
setToken
Authentication token. Requires scope: `links:write` -
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 -
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 -
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. -
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. -
setChannel
Channel ID of the message -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-