code: def run(self, target, payload, instance=None, hook_id=None, **kwargs):
          
          response = requests.post(
              url=target,
              data=json.dumps(payload, cls=DjangoJSONEncoder),
              headers={'Content-Type': 'application/json'}
          )
  
          if response.status_code == 410 and hook_id:
              HookModel = get_hook_model()
              hook = HookModel.object.get(id=hook_id)
              hook.delete()
docs: target:     the url to receive the payload.
          payload:    a python primitive data structure
          instance:   a possibly null "trigger" instance
          hook:       the defining Hook object (useful for removing)