While creating a subscriber display for my girlfriends YouTube channel with my original Espruino I ran into an issue where the Google YouTube Data API only accepts connections over Https. The original Espruino, and ESP8266 builds, don't support https like the Pico so I created httptohttps.xyz to bridge the Espruino to the Https only service.
Check out http://httptohttps.xyz/ for how to use it, I tried to make the homepage look nice. You can use the service however you'd like but I can't promise any up-time or reliability guarantees and I ask that you don't use it for commercial purposes.
Example (This is on an ESP as an Espruino)::
var http = require("http");
http.get("http://httptohttps.xyz/https://api.github.com/users/MrTimcakes", function(res) {
var contents = "";
res.on('data', function(data) { contents += data; });
res.on('close', function() { console.log("MrTimcakes is from: " + JSON.parse(contents)["location"]); });
});
prints "MrTimcakes is from: Great Britain"
I will gladly take, and even ask for, suggestions to improve the service like Headers n' stuff.
I will shortly make this open-source too.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
While creating a subscriber display for my girlfriends YouTube channel with my original Espruino I ran into an issue where the Google YouTube Data API only accepts connections over Https. The original Espruino, and ESP8266 builds, don't support https like the Pico so I created httptohttps.xyz to bridge the Espruino to the Https only service.
Check out http://httptohttps.xyz/ for how to use it, I tried to make the homepage look nice. You can use the service however you'd like but I can't promise any up-time or reliability guarantees and I ask that you don't use it for commercial purposes.
Example (This is on an ESP as an Espruino)::
prints "MrTimcakes is from: Great Britain"
I will gladly take, and even ask for, suggestions to improve the service like Headers n' stuff.
I will shortly make this open-source too.