code: def notify(title,
             message,
             api_key=NTFY_API_KEY,
             provider_key=None,
             priority=0,
             url=None,
             retcode=None):
      
  
      data = {
          'apikey': api_key,
          'application': 'ntfy',
          'event': title,
          'description': message,
      }
  
      if MIN_PRIORITY <= priority <= MAX_PRIORITY:
          data['priority'] = priority
      else:
          raise ValueError('priority must be an integer from {:d} to {:d}'
                           .format(MIN_PRIORITY, MAX_PRIORITY))
  
      if url is not None:
          data['url'] = url
  
      if provider_key is not None:
          data['providerkey'] = provider_key
  
      resp = requests.post(
          API_URL, data=data, headers={
              'User-Agent': USER_AGENT,
          })
  
      resp.raise_for_status()
docs: Optional parameters:
          * ``api_key`` - use your own application token
          * ``provider_key`` - if you are whitelisted
          * ``priority``
          * ``url``