Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Request

Javascript library for querying the WordPress REST API v2.

Examples

var wordpress = new WPRequest({
  url : 'http://localhost'
});

wordpress.query({
  method   : 'GET',
  post_type: 'post'
}, function(error, response) {
  ...
});

wordpress.query({
  method   : 'GET',
  post_type: 'post',
  filter   : {
    type : 'id',
    value: 100
  }
}, function(error, response) {
  ...
});

About

Javascript library for querying the WordPress REST API v2.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages