def METHOD_NAME(self, method, apiurl="", data=None):
    """
    Do the request to the api url.
    :param method: get, put, post or delete
    :type method: basestring
    :param apiurl: called url
    :type apiurl: basestring
    :param data: optional data to send (e.g. post)
    :type data: dict
    :return: response from the api
    :rtype: json
    """
    apikey = aj.config.data.get('dns_api', {}).get('apikey', None)
    sharing_id = aj.config.data.get('dns_api', {}).get('sharing_id', None)
    params = {'sharing_id': sharing_id}
    if method not in ["get", "put", "post", "delete"] or apikey is None:
        return
    func = getattr(requests, method)
    if data is None:
        resp = func(
            f"{self.baseUrl}{apiurl}",
            params=params,
            headers={"Authorization": f"Apikey {apikey}"}
        )
    else:
        resp = func(
            f"{self.baseUrl}{apiurl}",
            data=data,
            params=params,
            headers={"Authorization": f"Apikey {apikey}"}
        )
    return resp