def get_slack_oauth_uri(request):
# scope = "bot+channels:write"
scope = "bot"
return "https://slack.com/oauth/authorize?scope=" + scope + "&client_id=" + settings.SLACK_CLIENT_ID + \
"&redirect_uri=" + request.build_absolute_uri(reverse("oauth"))
评论列表
文章目录