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.
EasyWifi setup: Enter, Store & Forget Wifi credentials, No need to keep Wifi-credentials in your code. Uses FlashStorage and CaptivePortal AP