Skip to content

Javascript library for querying the WordPress REST API v2.

Notifications You must be signed in to change notification settings

nyanofthemoon/wp-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published