class_docstr: Send message using a DingTalk Custom Robot API.
  
  .. seealso::
      `How to get webhook token <https://open.dingtalk.com/document/robots/custom-robot-access>`__
  
  :param dingding_conn_id: Dingding connection id that has access token in the password field,
      and optional host name in host field, if host not set than default
      ``https://oapi.dingtalk.com`` will use.
  :param message_type: Message type you want to send to Dingding, support five type so far
      including ``text``, ``link``, ``markdown``, ``actionCard``, ``feedCard``.
  :param message: The message send to chat group
  :param at_mobiles: Remind specific users with this message
  :param at_all: Remind all people in group or not. If True, will overwrite ``at_mobiles``
class_docstr_tok: ["Send","message","using","a","DingTalk","Custom","Robot","API",".","..","seealso",":",":","`","How","to","get","webhook","token","<","https",":","\/\/open.dingtalk.com\/document\/robots\/custom-robot-access",">","`","__",":","param","dingding_conn_id",":","Dingding","connection","id","that","has","access","token","in","the","password","field",",","and","optional","host","name","in","host","field",",","if","host","not","set","than","default","``","https",":","\/\/oapi.dingtalk.com","``","will","use",".",":","param","message_type",":","Message","type","you","want","to","send","to","Dingding",",","support","five","type","so","far","including","``","text","``",",","``","link","``",",","``","markdown","``",",","``","actionCard","``",",","``","feedCard","``",".",":","param","message",":","The","message","send","to","chat","group",":","param","at_mobiles",":","Remind","specific","users","with","this","message",":","param","at_all",":","Remind","all","people","in","group","or","not",".","If","True",",","will","overwrite","``","at_mobiles","``"]
docstr: Get DingTalk Custom Robot endpoint for sending message.
docstr_tok: ["Get","DingTalk","Custom","Robot","endpoint","for","sending","message","."]
code: def _get_endpoint(self) -> str:
      """Get DingTalk Custom Robot endpoint for sending message."""
      conn = self.get_connection(self.http_conn_id)
      token = conn.password
      if not token:
          raise AirflowException(
              "Dingding token is requests but get nothing, check you conn_id configuration."
          )
      return f"robot/send?access_token={token}"
  
file_path: airflow/airflow/providers/dingding/hooks/dingding.py
imports: from __future__ import annotations
  import json
  import requests
  from requests import Session
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpHook
label_desc: Use image node_id 2 for calling the DingdingHook obj's underlying member method code with example usage: obj._get_endpoint() and returns: str, token