I am playing with slack apis to create an integration. I am able to sucessfully create a slack channel using this.http.post(slackApiHost + '/channels.create', payload, {headers: headers}) .subscribe( res => { console.log(res); resolve(res) }, err => { console.log('error:' + err) } ) })the payload looks like var payload = { "name" : channelName };So, it will fail with name_taken if the channel already exists. which is great. However, I need to find the channel id of the existing channel so that i can then use it for my purpose. how do i go about it? (责任编辑:) |