Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
get
node v18.11.0
version:
1.0.0
endpoint
share
tweet
const request = require('request'); request('https://jsonplaceholder.typicode.com/todos/1', function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body) // Print the response } })
Loading…
no comments
sign in
to comment