samples/quickstart.js
async function quickstart() {
  const url = 'https://www.googleapis.com/discovery/v1/apis/';
  const res = await request({url});
  console.log(`status: ${res.status}`);
  console.log(`data:`);
  console.log(res.data);
}
async function quickstart() {
  const url = 'https://www.googleapis.com/discovery/v1/apis/';
  const res = await request({url});
  console.log(`status: ${res.status}`);
  console.log(`data:`);
  console.log(res.data);
}
async function quickstart ( ) { const url = 'https://www.googleapis.com/discovery/v1/apis/' ; const res = await request ( { url } ) ; console . log ( ` ${ res . status } ` ) ; console . log ( ` ` ) ; console . log ( res . data ) ; }
Perform a simple `GET` request to a JSON API.
Perform a simple GET request to a JSON API .