daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fetch('https://example.com/wp-json/wp/v2/posts')
  2.   .then(response => response.json())
  3.   .then(posts => {
  4.     posts.forEach(post => {
  5.       console.log(post.title.rendered);
  6.     });
  7.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top