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

21st
Feb 2017
David Lawson
@dlawson
Feb 21 2017 01:06
@andreasvirkus, you supply your basic auth username and password in the WPAPI constructor
var wp = new WPAPI({
    endpoint: 'http://your-site.com/wp-json',
    // This assumes you are using basic auth, as described further below
    username: 'someusername',
    password: 'password'
});
ajv
@andreasvirkus
Feb 21 2017 08:21
@dlawson thanks, that's what i ended up using as well.. but if the API endpoint requires authentication as well,
then I can't use it. But I guess I have to set up OAuth for that, right?