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