prepare_xml_method now accepts api_key and email as parameter (not depending on config file)