I get all public post through this api. “GET [http://membersite.com/wp-json/wp/v2/posts”](http://membersite.com/wp-json/wp/v2/posts%22). but i have some private content, which is available in “Lessons” page. so, when i use “GET [http://membersite.com/wp-json/wp/v2/post\_type=lesson”](http://membersite.com/wp-json/wp/v2/post_type=lesson%22) i get “404 not found”. it is maintained by “aMember” and the “Lessons” part actually made private through “aMember”. it is a aMember site. i also use “https://membersite.com/wp-json/wp/v2/post\_type=lesson?Authorization=Bearer1234567890” to get data through authentication. and i replace my api key with “1234567890”. But it also not working. so, also i try with “OAuth2” authentication. but still it is not worning.
I am expecting that, how can i access those content through API?
[ad_2]
This is above my paygrade but I would check permissions as managed by aMember. In my experience when using a membership plugin and having access issues of any kind, it’s related to the membership plugin in some way or another. You could also just test this by deactivating the plugin and creating a new admin and trying to access the content from that new user account. At least that would point you one way or the other. Good luck!