Today I tried to use this package. I tried to execute the below codes.
I got the same result in all 3 cases, o/p is also available at very bottom.
And this is not allowing me to figure out my issues with authentication, as dir(wp) is not containing the
working methods defined to work.
CODE SNIPPET 1
from wordpress_json import WordpressJsonWrapper
# WordpressJsonWrapper('http://example.com/wp-json/wp/v2', 'wp_user', 'wp_password')
wp = WordpressJsonWrapper('http://demo4.sjainventures.com/Incredible/wp-json/wp/v2', 'myuser', \
'mypass');
print dir(wp)
CODE SNIPPET 2
from wordpress_json import WordpressJsonWrapper
# WordpressJsonWrapper('http://example.com/wp-json/wp/v2', 'wp_user', 'wp_password')
wp = WordpressJsonWrapper('http://demo4.sjainventures.com/Incredible/wp-json/wp/v2', \
'myuser1', 'mypass');
print dir(wp)
CODE SNIPPET 3
from wordpress_json import WordpressJsonWrapper
# WordpressJsonWrapper('http://example.com/wp-json/wp/v2', 'wp_user', 'wp_password')
wp = WordpressJsonWrapper('http://demo4.sjainventures.com/Incredible/', 'myuser', 'mypass');
print dir(wp)
O/P
(wordpress_api) E:\RishikeshAgrawani\projects\Python3\PyLaTeX\wordpress-api>python basic_auth.py
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattr__', '__getattribute__', '__hash__',
'__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__',
'__subclasshook__', '__weakref__', '_build_endpoint', '_determine_method', '_expand_url_components',
'_get_ids', '_prepare_req', '_request', 'auth', 'site']
Today I tried to use this package. I tried to execute the below codes.
I got the same result in all 3 cases, o/p is also available at very bottom.
And this is not allowing me to figure out my issues with authentication, as
dir(wp)is not containing theworking methods defined to work.
CODE SNIPPET 1
CODE SNIPPET 2
CODE SNIPPET 3
O/P