You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.get
todisqus
as 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?
The text was updated successfully, but these errors were encountered: