[Oauth2] Slack api 사용 콘솔 설정및 이벤트 구독 설정

 

 

Slack app 생성 URL : https://api.slack.com/apps

 

 

왼쪽 탭 Basic Information에서 APP ID, ClientID, Cleint Secrit 데이터를 확인한다.

 

Redirect URL은 왼쪽 탭 OAtuh & Permissions에서 Redriect URLs 에서 추가 하면된다.

 

 

그리고 App에서 사용할 Scopes를 세팅한다.

 

 

 

View messages and other content in a user’s public channels
View basic information about public channels in a workspace
Manage a user’s public channels and create new ones on a user’s behalf
Set the description of public channels
Send messages on a user’s behal
View custom emoji in a workspace
View files shared in channels and conversations that a user has access to
View messages and other content in a user’s private channels
View basic information about a user’s private channels
Manage a user’s private channels and create new ones on a user’s behalf
Set the description of private channels
View messages and other content in a user’s direct messages
View basic information about a user’s direct messages
Start direct messages with people on a user’s behalf
View messages and other content in a user’s group direct messages
View basic information about a user’s group direct messages
Start group direct messages with people on a user’s behalf
Set the description in group direct messages
View emoji reactions in a user’s channels and conversations and their associated content
Add and edit emoji reactions on a user's behalf
View remote files added by the app in a workspace
View the name, email domain, and icon for workspaces a user is connected to
View people in a workspace
View email addresses of people in a workspace
Set a user’s presence
 
 
사용할 Scopes를 추가했는데 필요에 따라 추가하고 삭제하면된다.
 
 
 
구독에 대한 알람은 왼쪽탭 Event Subscriptions에서 하면된다.

 

 

Subscribe to events on behalf of users에서 구독 알림을 받을 Event name을 설정하면 그 이벤트에 대한 알림을 받을수 있다

댓글

Designed by JB FACTORY