Skip to content

No error response for invalid credentials #19

Description

@hygull

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']

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions