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 class
ChatUnfurlRequest.ChatUnfurlRequestBuilder
static class
ChatUnfurlRequest.UnfurlDetail
-
Method Summary
Modifier and Type Method Description static ChatUnfurlRequest.ChatUnfurlRequestBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getChannel()
Channel ID of the messageString
getRawUnfurls()
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.String
getToken()
Authentication token.String
getTs()
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 behaviorString
getUserAuthMessage()
Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorString
getUserAuthUrl()
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.int
hashCode()
boolean
isUserAuthRequired()
Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoid
setChannel(String channel)
Channel ID of the messagevoid
setRawUnfurls(String rawUnfurls)
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.void
setToken(String token)
Authentication token.void
setTs(String ts)
Timestamp of the message to add unfurl behavior to.void
setUnfurls(Map<String,ChatUnfurlRequest.UnfurlDetail> unfurls)
void
setUserAuthBlocks(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 behaviorvoid
setUserAuthMessage(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 behaviorvoid
setUserAuthRequired(boolean userAuthRequired)
Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoid
setUserAuthUrl(String userAuthUrl)
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.String
toString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `links:write`- Specified by:
getToken
in 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
-