omarsmak commented on a change in pull request #5121: URL: https://github.com/apache/camel/pull/5121#discussion_r585652500
########## File path: components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackComponentVerifierExtension.java ########## @@ -118,23 +101,12 @@ private void verifyCredentials(ResultBuilder builder, Map<String, Object> parame String token = (String) parameters.get("token"); try { - HttpClient client = HttpClientBuilder.create().useSystemProperties().build(); - HttpPost httpPost = new HttpPost(parameters.get("serverUrl") + "/api/conversations.list"); - - List<BasicNameValuePair> params = new ArrayList<>(); - params.add(new BasicNameValuePair("token", token)); - httpPost.setEntity(new UrlEncodedFormEntity(params)); + ConversationsListResponse response = Slack.getInstance(new CustomSlackHttpClient()).methods(token) + .conversationsList(req -> req + .types(Collections.singletonList(ConversationType.PUBLIC_CHANNEL)) Review comment: so I guess, it doesn't really makes difference since we just want to check if the token is valid ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org