node-wpapi
node-wpapi copied to clipboard
An isomorphic JavaScript client for the WordPress REST API
### Environment ``` nodejs: 10.14.1 wpapi: ^1.2.1 ``` ### Step to reproduce Attempt the following code: ``` javascript const WPAPI = require('wpapi'); var wp = new WPAPI({ endpoint: 'https://www.mysite.com/wp-json', username:...
`Error: Cannot find module 'li' Require stack: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15) at Function.Module._load (internal/modules/cjs/loader.js:745:27) at Module.require (internal/modules/cjs/loader.js:961:19) at require (internal/modules/cjs/helpers.js:92:18) at Object. (E:\project\leopard\leopard-api\node_modules\wpapi\lib\autodiscovery.js:9:25) at Module._compile (internal/modules/cjs/loader.js:1072:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) at Module.load...
I'm updating several thousand posts using this API over a WAN connection and received a lot of timeouts in the requests using the native superagent implementations. One way on solving...
I'm using openlitespeed cloud image for wordpress, deployed on digitalocean. Every time I try to post more than 15 posts at once, these messages show up on the server logs:...
I'm trying to use the [Backbone Javascript Client](https://developer.wordpress.org/rest-api/using-the-rest-api/backbone-javascript-client/) from within my wordpress. But documentation is lacking. I'm wondering if this is the same as this node-wpapi plugin? The syntax seems...
Environment - electron: "9.1.0" - node: "12.14.1" - wpapi: "1.2.1" - Windows 10 I'm trying to execute the following code in the electron application in a dedicated worker. ```ts const...
Hello, I'm trying v2 and I've encountered this error: `Error: Cannot find module 'li'` Manually adding the package fixes the issue. Maybe you want to add that in your requirements?...
Hi using the wpapi library on the nodejs v14.10.1 version. Having the DeprecationWarning: OutgoingMessage.prototype._headers is deprecated. Think need a fix on this.
Hi, i tried to update post meta, when i created posts, but nothing happened It's possible with node-wpapi? ` wp.song().create({ title: '1', content: 'Your post content', status: 'publish', meta: {key:...
Is it possible to create post's taxonomies by slug not ID. Like this: ``` wp.school().create({ title: 'title', state: ['ca', 'az'] }) ``` Not this way: ``` wp.school().create({ title: 'title', state:...