Use Arduino Uno WiFi to access your home Ecobee thermostat and more, this is a good introduction to see APIs in action using OAuth keys.