🚧 stub for CoinmarketCap lib

master
Martin Zwigl 2025-03-02 20:07:24 +01:00
parent ef6c04b1cc
commit 5ebc00f311
2 changed files with 25 additions and 2 deletions

22
apps/coin_info/libCmC.js Normal file
View File

@ -0,0 +1,22 @@
exports.getQuoteLatest = function(slug) {
// Bangle.http("https://pur3.co.uk/hello.txt").then(data=>{
// console.log("Got ",data);
// // actual response is in data.resp
// });
// -------------
// Prints:
//Got {
// "t": "http",
// "id": "89875941444",
// "resp": "Hello World!\n"
// }
// return Bangle.http(serverUrl, {
// method: 'GET',
// headers: {
// 'Authorization': `Basic ${credentials}`
// }
// });
return { result: "yo"};
}

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.03.28",
"version": "0.03.30",
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
"icon": "app.png",
"tags": "clkinfo",
@ -16,6 +16,7 @@
{"name":"coin_info.app.js","url":"app.js"},
{"name":"coin_info.clkinfo.js","url":"clkinfo.js"},
{"name":"coin_info.settings.js","url":"settings.js"},
{"name":"coin_info.img","url":"app-icon.js","evaluate":true}
{"name":"coin_info.img","url":"app-icon.js","evaluate":true},
{"name":"coin_info.libCmC.js","url":"libCmC.js"}
]
}