Class ChatUnfurlRequest.ChatUnfurlRequestBuilder
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest.ChatUnfurlRequestBuilder
- Enclosing class:
- ChatUnfurlRequest
public static class ChatUnfurlRequest.ChatUnfurlRequestBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description ChatUnfurlRequestbuild()ChatUnfurlRequest.ChatUnfurlRequestBuilderchannel(java.lang.String channel)Channel ID of the messageChatUnfurlRequest.ChatUnfurlRequestBuilderrawUnfurls(java.lang.String rawUnfurls)URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.ChatUnfurlRequest.ChatUnfurlRequestBuildersource(java.lang.String source)ChatUnfurlRequest.ChatUnfurlRequestBuildertoken(java.lang.String token)Authentication token.java.lang.StringtoString()ChatUnfurlRequest.ChatUnfurlRequestBuilderts(java.lang.String ts)Timestamp of the message to add unfurl behavior to.ChatUnfurlRequest.ChatUnfurlRequestBuilderunfurlId(java.lang.String unfurlId)ChatUnfurlRequest.ChatUnfurlRequestBuilderunfurls(java.util.Map<java.lang.String,ChatUnfurlRequest.UnfurlDetail> unfurls)ChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthBlocks(java.util.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 behaviorChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthMessage(java.lang.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 behaviorChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthRequired(boolean userAuthRequired)Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainChatUnfurlRequest.ChatUnfurlRequestBuilderuserAuthUrl(java.lang.String userAuthUrl)Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.
-
Method Details
-
token
Authentication token. Requires scope: `links:write`- Returns:
this.
-
userAuthMessage
public ChatUnfurlRequest.ChatUnfurlRequestBuilder userAuthMessage(java.lang.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 behavior- Returns:
this.
-
userAuthBlocks
public ChatUnfurlRequest.ChatUnfurlRequestBuilder userAuthBlocks(java.util.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 behavior- Returns:
this.
-
userAuthRequired
Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain- Returns:
this.
-
rawUnfurls
URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.- Returns:
this.
-
unfurls
public ChatUnfurlRequest.ChatUnfurlRequestBuilder unfurls(java.util.Map<java.lang.String,ChatUnfurlRequest.UnfurlDetail> unfurls)- Returns:
this.
-
ts
Timestamp of the message to add unfurl behavior to.- Returns:
this.
-
userAuthUrl
Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded.- Returns:
this.
-
channel
Channel ID of the message- Returns:
this.
-
unfurlId
- Returns:
this.
-
source
- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-