


import requests






def 		lowercase_(  SCREAMING_SNAKE_CASE_      ,						SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

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


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>''')




import requests





def 				UpperCAmelCase						(    lowercase							,			lowercase							):







				"""simple docstring"""



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


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>""")