Changed API connections to use TLS protocol.