

"""simple docstring"""




import requests



def 	UpperCAmelCase__   (				A__	,    A__   )      ->      None:




   """simple docstring"""
   lowerCamelCase__						=			{"Content-Type": "application/json"}
   lowerCamelCase__						=			requests.post(A__	,    json={"text": message_body}	,    headers=A__   )
   if response.status_code != 200:
      lowerCamelCase__						=			(
          "Request to slack returned an error "
          f'{response.status_code}, the response is:\n{response.text}'
      )
      raise ValueError(A__   )


if __name__ == "__main__":
     # Set the slack url to the one provided by Slack when you create the webhook at
     # https://my.slack.com/services/new/incoming-webhook/
     send_slack_message('''<YOUR MESSAGE BODY>''', '''<SLACK CHANNEL URL>''')







"""simple docstring"""




# flake8: noqa
# Lint as: python3
SCREAMING_SNAKE_CASE_     :			Dict	  =			[
    '''VerificationMode''',
    '''Version''',
    '''disable_progress_bar''',
    '''enable_progress_bar''',
    '''is_progress_bar_enabled''',
    '''experimental''',
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental




