Class ChatUnfurlRequest.ChatUnfurlRequestBuilder
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest.ChatUnfurlRequestBuilder
- Enclosing class:
- ChatUnfurlRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Channel ID of the messagemetadata(ChatUnfurlRequest.UnfurlMetadata metadata) rawMetadata(String rawMetadata) JSON object with an entities field providing an array of work object entities.rawUnfurls(String rawUnfurls) URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.rawUserAuthBlocks(String rawUserAuthBlocks) Authentication token.toString()Timestamp of the message to add unfurl behavior to.unfurls(Map<String, ChatUnfurlRequest.UnfurlDetail> unfurls) userAuthBlocks(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 behavioruserAuthMessage(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 behavioruserAuthRequired(boolean userAuthRequired) Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainuserAuthUrl(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
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.
-
rawUserAuthBlocks
- Returns:
this.
-
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.
-
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.
-
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(Map<String, ChatUnfurlRequest.UnfurlDetail> unfurls) - Returns:
this.
-
ts
Timestamp of the message to add unfurl behavior to.- Returns:
this.
-
channel
Channel ID of the message- Returns:
this.
-
unfurlId
- Returns:
this.
-
source
- Returns:
this.
-
rawMetadata
JSON object with an entities field providing an array of work object entities.- Returns:
this.
-
metadata
public ChatUnfurlRequest.ChatUnfurlRequestBuilder metadata(ChatUnfurlRequest.UnfurlMetadata metadata) - Returns:
this.
-
build
-
toString
-