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

6th
Dec 2016
K Adam White
@kadamwhite
Dec 06 2016 01:03
@mike3run hello! Some of site info can be retrieved at the API root (e.g. yoursite.com/wp-json); you can get that with a .root() call, like so:
Var site = WPAPI.site('yoursite.com/wp-json');
site.root().then(function(result){ console.log(result.description) });
var site = WPAPI.site('yoursite.com/wp-json');
site.root().then(function(result){ console.log(result.description); });
Oh, now it updates the highlighted version :)
You can also do site.settings()... if you're authenticated
Hope that helps!
Miguel Palau
@mike3run
Dec 06 2016 21:33
thanks a lot for the awesome feedback @kadamwhite
K Adam White
@kadamwhite
Dec 06 2016 22:34
Np, glad I could help!