Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7715
    huongcba
    Participant

    Hi, everything is fine until I start interacting with the API.
    I think after I login as admin I can see all restricted posts when I go to /wp-json/wp/v2/posts.
    But I can only get an unrestricted list of posts or categories, just like when I’m not logged in.
    When I deactivate the plugin, then I can get a list of all posts.
    I’m new to the API so I’m not sure how it works but I don’t think it’s appropriate. Is there any way to solve it? Thanks a lot!

    #7716
    Vladimir
    Keymaster

    Hi,

    Additional authentication parameters are required for the API calls. This post may help

    Authentication

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.