diff --git a/apps/coin_info/libCmC.js b/apps/coin_info/libCmC.js new file mode 100644 index 000000000..03a097834 --- /dev/null +++ b/apps/coin_info/libCmC.js @@ -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"}; +} diff --git a/apps/coin_info/metadata.json b/apps/coin_info/metadata.json index 1541b1ea2..a5c34a080 100644 --- a/apps/coin_info/metadata.json +++ b/apps/coin_info/metadata.json @@ -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"} ] } \ No newline at end of file