These are chat archives for WP-API/node-wpapi

11th
Jul 2017
Jukka Paulin
@jpaulin
Jul 11 2017 09:09
can i ask stupido?
Out of the box, if I got a Wordpress hosted at the "official" wordpress_com site, is it's API level ok with node-wpapi ?
K Adam White
@kadamwhite
Jul 11 2017 13:00
@jpaulin It should be supported — https://developer.wordpress.com/2016/11/11/wordpress-rest-api-on-wordpress-com/ However, I’m having trouble accessing those endpoints, and I want to confirm w/ the WordPress.com REST API team
K Adam White
@kadamwhite
Jul 11 2017 13:28
Not sure what would be leading to a 415, haven’t encountered that @c1n1k — if you can consistently reproduce with a specific image, please open an issue on the wp-api/node-wpapi repo and we can dive in
K Adam White
@kadamwhite
Jul 11 2017 14:19
@jpaulin Confirmed that you can access the core WordPress REST API through .com — e.g. https://public-api.wordpress.com/wp/v2/sites/kadamwhite.wordpress.com/posts
since the base string is a bit different you might need to call .namespace( 'wp/v2/sites/kadamwhite.wordpress.com' ) (or the equiv for your site) prior to sending the request
will try it out and make a gh issue for docs
K Adam White
@kadamwhite
Jul 11 2017 14:33
WP-API/node-wpapi#329 Will get to moving this into README when I can; if you try things out and they don’t work, @jpaulin, please leave a comment on that issue