kaxil commented on pull request #5519: URL: https://github.com/apache/airflow/pull/5519#issuecomment-622989835
Check this out: https://github.com/slackapi/python-slackclient/wiki/Migrating-to-2.x **Before 2.0**: ```python from slackclient import SlackClient client = SlackClient(os.environ["SLACK_API_TOKEN"]) client.api_call('chat.postMessage', timeout=30, channel='C0123456', text="Hi!") ``` **After 2.0**: ```python import slack client = slack.WebClient(os.environ["SLACK_API_TOKEN"], timeout=30) client.api_call('chat.postMessage', json={ 'channel': 'C0123456', 'text': 'Hi!'}) # Note: That while the above is allowed, the more efficient way to call that API is like this: client.chat_postMessage( channel='C0123456', text='Hi!') ``` ---------------------------------------------------------------- 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: [email protected]
