Constant Field Values

Contents

com.slack.*

  • com.slack.api.bolt.service.builtin.oauth.view.default_impl.OAuthDefaultInstallPageRenderer 
    Modifier and Type Constant Field Value
    public static final String PAGE_TEMPLATE "<html>\n<head>\n<style>\nbody {\n padding: 10px 15px;\n font-family: verdana;\n text-align: center;\n}\n</style>\n</head>\n<body>\n<h2>Slack App Installation</h2>\n<p><a href=\"__URL__\"><img alt=\"\"Add to Slack\"\" height=\"40\" width=\"139\" src=\"https://platform.slack-edge.com/img/add_to_slack.png\" srcset=\"https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x\" /></a></p>\n</body>\n</html>"
  • com.slack.api.bolt.service.builtin.oauth.view.default_impl.OAuthDefaultRedirectUriPageRenderer 
    Modifier and Type Constant Field Value
    public static final String FAILURE_PAGE_TEMPLATE "<html>\n<head>\n<style>\nbody {\n padding: 10px 15px;\n font-family: verdana;\n text-align: center;\n}\n</style>\n</head>\n<body>\n<h2>Oops, Something Went Wrong!</h2>\n<p>Please try again from <a href=\"__INSTALL_PATH__\">here</a> or contact the app owner (reason: __REASON__)</p>\n</body>\n</html>"
    public static final String SUCCESS_PAGE_TEMPLATE "<html>\n<head>\n<meta http-equiv=\"refresh\" content=\"0; URL=__URL__\">\n<style>\nbody {\n padding: 10px 15px;\n font-family: verdana;\n text-align: center;\n}\n</style>\n</head>\n<body>\n<h2>Thank you!</h2>\n<p>Redirecting to the Slack App... click <a href=\"__URL__\">here</a>. If you use the browser version of Slack, click <a href=\"__BROWSER_URL__\" target=\"_blank\">this link</a> instead.</p>\n</body>\n</html>"
  • com.slack.api.bolt.util.ListenerCodeSuggestion 
    Modifier and Type Constant Field Value
    public static final String COMMON_PREFIX "---\n[Suggestion] You can handle this type of event with the following listener function:\n\n"
    public static final String WORKFLOW_STEP "---\n[Suggestion] You can handle this type of event with the following listener function:\n\nWorkflowStep step = WorkflowStep.builder()\n .callbackId(\"copy_review\")\n .edit((req, ctx) -> { return ctx.ack(); })\n .save((req, ctx) -> { return ctx.ack(); })\n .execute((req, ctx) -> { return ctx.ack(); })\n .build();\n\napp.step(step);\n"