()
| 43 | |
| 44 | @app.route("/sync/per-request", methods=["GET"]) |
| 45 | def per_request(): |
| 46 | try: |
| 47 | client = WebClient(token=os.environ["SLACK_BOT_TOKEN"], run_async=False) |
| 48 | response = client.chat_postMessage(channel="#random", text="You used a new WebClient for posting this message!") |
| 49 | return str(response) |
| 50 | except SlackApiError as e: |
| 51 | return make_response(str(e), 400) |
| 52 | |
| 53 | |
| 54 | # This doesn't work |
nothing calls this directly
no test coverage detected