Searchโ€ฆ
๐Ÿ†”
ID
Choose a specific joke by its ID
get
https://night-api.com
/v1/jokes/id/:id
Blague par ID
โ€‹
1
const axios = require("axios");
2
โ€‹
3
axios.get('https://night-api.com/v1/jokes/id/44', {
4
headers: {
5
authorization: "API token"
6
}
7
})
8
.then(function (response) {
9
console.log(response.data);
10
})
Copied!
Export as PDF
Copy link