One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
/* | |
Plugin Name: R Debug | |
Description: Set of dump helpers for debug. | |
Author: Andrey "Rarst" Savchenko | |
Author URI: https://www.rarst.net/ | |
License: MIT | |
*/ |
//basic fetch | |
//using jsonplaceholder for the data | |
//Remember that fetch returns a promise | |
//HTTP status codes - http://www.restapitutorial.com/httpstatuscodes.html | |
//to test with NODE we need to install the node-fetch package | |
// npm install node-fetch | |
//let fetch = require('node-fetch'); | |
//get the details for a random user |