🚧 well, it is (parsing)

master
Martin Zwigl 2025-03-08 00:26:39 +01:00
parent dccd096604
commit 73b7a12596
2 changed files with 8 additions and 5 deletions

View File

@ -22,11 +22,14 @@
// 'CMC_PRO_API_KEY': db.apikey
// }
})
.then(cmcResult => ({
.then(cmcResult => {
// text: JSON.parse(cmcResult.resp).data["1"].symbol, // Fixed data path
text: cmcResult.resp.symbol,
img: COIN_ICON
}))
const apiData = JSON.parse(cmcResult.resp); // Correctly declare variable
return {
text: apiData.symbol,
img: COIN_ICON
};
})
.catch(err => ({
text: err.toString(),
img: COIN_ICON

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.04.19",
"version": "0.04.20",
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
"icon": "app.png",
"tags": "clkinfo",