🚧 well, it is (parsing)
parent
dccd096604
commit
73b7a12596
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue