From 4fbce3cd31943d5d53a00d0e7a6ce81bca4933f4 Mon Sep 17 00:00:00 2001 From: Christopher Finke Date: Fri, 10 Feb 2017 13:46:42 -0800 Subject: [PATCH] Add all of the supported parameters for the API endpoints. Taken from https://akismet.com/development/api/ --- akismet/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/akismet/__init__.py b/akismet/__init__.py index 028d019..6c7cde0 100644 --- a/akismet/__init__.py +++ b/akismet/__init__.py @@ -86,17 +86,20 @@ def check(self, user_ip, user_agent, comment_author=None, comment_author_email=N def submit_spam(self, user_ip, user_agent, comment_author=None, comment_author_email=None, comment_author_url=None, comment_content=None, referrer='unknown', blog=None, permalink=None, - comment_type=None, is_test=False): + comment_type=None, is_test=False, blog_lang=None, comment_date=None, comment_post_modified=None, + user_role=None): self.submit(True, **remove_self(locals())) def submit_ham(self, user_ip, user_agent, comment_author=None, comment_author_email=None, comment_author_url=None, comment_content=None, referrer='unknown', blog=None, permalink=None, - comment_type=None, is_test=False): + comment_type=None, is_test=False, blog_lang=None, comment_date=None, comment_post_modified=None, + user_role=None): self.submit(False, **remove_self(locals())) def submit(self, is_spam, user_ip, user_agent, comment_author=None, comment_author_email=None, comment_author_url=None, comment_content=None, referrer='unknown', blog=None, permalink=None, - comment_type=None, is_test=False): + comment_type=None, is_test=False, blog_lang=None, comment_date=None, comment_post_modified=None, + user_role=None): parameters = self._get_parameters(locals()) r = self._request(self.get_submit_spam_url() if is_spam else self.get_submit_ham_url(), parameters) if r.text != "Thanks for making the web a better place.":