node-wpapi icon indicating copy to clipboard operation
node-wpapi copied to clipboard

An isomorphic JavaScript client for the WordPress REST API

Results 98 node-wpapi issues
Sort by recently updated
recently updated
newest added
trafficstars

If I pull in 'qs' because I need it for my project I'll get this error: no such file or directory, open '/Users/constantsolutions/Projects/jwr-nuxt/node_modules/wpapi/node_modules/qs/lib/index.js' If I remove the dependency 'qs', it...

I'm trying to figure out how to use WPAPI with a Wordpress.com-hosted blog. const wp = new WPAPI({ endpoint: 'https://MYSITE.wordpress.com/wp-json' }) const posts = await wp.posts().get() console.log(`posts:`, posts) But I'm...

enhancement

Hello, I'm trying to create a post with an image. Here is my code: ``` const downloadFile = (async (url, path) => { const res = await fetch(url); const fileStream...

I hope I am not being an idiot here. I have just started playing around with this project using electronjs, and i have a basic issue where every call to...

The famous authentication issue ```{code: "rest_cannot_create", message: "Sorry, you are not allowed to create posts as this user.", data: {…}}``` There's no viable solutions or documentation and I've tested both...

I would like to create a post with `wp.posts().create()` and assign it the correct `post_type`, however this does not seem to work with the `post_type` key. Either using `create()` or...

Hi, I'm getting an error when trying to retrieve revisions to a post Here's how I perform the basic auth: ```js const wp = new WPAPI({ endpoint: 'https://www.my-url.com/wp-json', username: 'username',...

Is there any way to filter media with media_type (either image or file)? It seems that wp.media().media_type('file') doesn't work or anything similar

Hi! What's involved with making oauth work (either oauth1, for which there is a WP API plugin plugin, or OAuth 2 for which there is a standalone plugin) with this...

help wanted
ready

I am testing against a headless wordpress app using https://ca.wordpress.org/plugins/jwt-authentication-for-wp-rest-api/ V1 I can test the plugin with postman and axios in react but cant get it to work here ```...