Add a Site Preview to ToolKit Tool Card
Example request:
javascript
const url =
"https://opengraph.io/api/1.1/oembed/:site?app_id=xxxxxx";
const fetchData = async () => {
try {
const response = await fetch(url);
const data = await response.json();
console.log(data);
} catch (error) {
console.log(error);
}
};
fetchData();
Example response:
json
{
"height": "Height",
"width": "Width",
"version": "1.0",
"provider_name": "name of site you are requesting",
"type": "type of embed",
"html": "HTML for iframe."
}