const options = {method: 'GET'};
fetch('https://api.thanks.io/api/v2/handwriting-styles', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"data": [
{
"handwriting_style_id": "1",
"name": "Hi Clarice"
},
{
"handwriting_style_id": "2",
"name": "Practiced Sharpie"
},
{
"handwriting_style_id": "3",
"name": "Bold Note"
},
{
"handwriting_style_id": "4",
"name": "Foxy Lady"
},
{
"handwriting_style_id": "5",
"name": "That Dude"
},
{
"handwriting_style_id": "6",
"name": "Normal Print"
},
{
"handwriting_style_id": "7",
"name": "Shopping List"
},
{
"handwriting_style_id": "8",
"name": "Lazy Note"
},
{
"handwriting_style_id": "9",
"name": "Blurred Lines"
},
{
"handwriting_style_id": "10",
"name": "Birthday Card"
},
{
"handwriting_style_id": "11",
"name": "Scully, Not Molder"
},
{
"handwriting_style_id": "12",
"name": "Wow! Signal"
}
]
}
const options = {method: 'GET'};
fetch('https://api.thanks.io/api/v2/handwriting-styles', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"data": [
{
"handwriting_style_id": "1",
"name": "Hi Clarice"
},
{
"handwriting_style_id": "2",
"name": "Practiced Sharpie"
},
{
"handwriting_style_id": "3",
"name": "Bold Note"
},
{
"handwriting_style_id": "4",
"name": "Foxy Lady"
},
{
"handwriting_style_id": "5",
"name": "That Dude"
},
{
"handwriting_style_id": "6",
"name": "Normal Print"
},
{
"handwriting_style_id": "7",
"name": "Shopping List"
},
{
"handwriting_style_id": "8",
"name": "Lazy Note"
},
{
"handwriting_style_id": "9",
"name": "Blurred Lines"
},
{
"handwriting_style_id": "10",
"name": "Birthday Card"
},
{
"handwriting_style_id": "11",
"name": "Scully, Not Molder"
},
{
"handwriting_style_id": "12",
"name": "Wow! Signal"
}
]
}
OK
The response is of type object
.
Was this page helpful?