I am trying to get draft/preview/trash posts using the wordpress JSON API but adding the filter doesn't seem to do anything at all.
As a test, I am trying to get posts in the trash (there are non) but all published posts are returned.
http://localhost/wp-json/posts?&filter[post_status]=trash
I have tried this whilst logged in and out of the admin panel, giving the same results.
I am assuming this was the way to do it based on the wordpress docs http://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters
I have attempted multiple params other than trash, all return only published posts.
EDIT:
I figured out that you cannot be logged into the admin panel for basic auth to work, otherwise it just gets overridden. Logging out of this and it all worked.