diff --git a/disqusapi/__init__.py b/disqusapi/__init__.py index 579942f..9082a6d 100644 --- a/disqusapi/__init__.py +++ b/disqusapi/__init__.py @@ -175,8 +175,9 @@ def __init__(self, secret_key=None, public_key=None, format='json', version='3.0 timeout=None, **kwargs): self.secret_key = secret_key self.public_key = public_key - if not public_key: - warnings.warn('You should pass ``public_key`` in addition to your secret key.') + if not public_key and not secret_key: + warnings.warn("You should at least pass ``public_key`` if you " + "don't pass your secret key.") self.format = format self.version = version self.timeout = timeout or socket.getdefaulttimeout() diff --git a/disqusapi/interfaces.json b/disqusapi/interfaces.json index a633891..038484e 100644 --- a/disqusapi/interfaces.json +++ b/disqusapi/interfaces.json @@ -305,6 +305,17 @@ "json", "jsonp" ] + }, + "update": { + "required": [ + "post", + "message" + ], + "method": "POST", + "formats": [ + "json", + "jsonp" + ] } }, "blacklists": { @@ -560,6 +571,17 @@ } }, "forums": { + "addModerator": { + "required": [ + "forum", + "user" + ], + "method": "POST", + "formats": [ + "json", + "jsonp" + ] + }, "create": { "required": [ "website", @@ -643,6 +665,16 @@ "json", "jsonp" ] + }, + "removeModerator": { + "required": [ + "moderator" + ], + "method": "POST", + "formats": [ + "json", + "jsonp" + ] } }, "categories": {