So I'm trying to navigate around the functionality of this library and find the things I need but nothing seems to work at first try unfortunately.
I got the first example from README.rst to work in Python 3 with a few modifications but the third piece of code (with brackets for the print for python 3) is throwing the error in the title
from disqusapi import Paginator
paginator = Paginator(api.get, 'trends.listThreads', forum='disqus')
for result in paginator:
print (result)
So I tried to change api.get to disqus as defined above
disqus = DisqusAPI(secret_key, public_key)
but now it is throwing a different error
InterfaceNotDefined: Interface is not defined, you must pass ``method`` (HTTP Method).
I tried the solution that worked for the other code snippet:
paginator = Paginator(disqus, 'trends.listThreads', forum='disqus', method='GET')
..now it's running without error but not returning anything.
Does anyone know how this code is meant to work?
So I'm trying to navigate around the functionality of this library and find the things I need but nothing seems to work at first try unfortunately.
I got the first example from README.rst to work in Python 3 with a few modifications but the third piece of code (with brackets for the print for python 3) is throwing the error in the title
So I tried to change
api.gettodisqusas defined abovedisqus = DisqusAPI(secret_key, public_key)but now it is throwing a different error
InterfaceNotDefined: Interface is not defined, you must pass ``method`` (HTTP Method).I tried the solution that worked for the other code snippet:
paginator = Paginator(disqus, 'trends.listThreads', forum='disqus', method='GET')..now it's running without error but not returning anything.
Does anyone know how this code is meant to work?