Check the full source code at my blog:
https://techtutorialsx.com/2016/07/21...
More tutorials on the ESP8266:
https://techtutorialsx.com/category/e...
Fake Online REST API for testing:
http://jsonplaceholder.typicode.com/
ESP8266 Arduino libraries
https://github.com/esp8266/Arduino