if i use the second doc which shortens my link with bit.ly the https certificate doesnt work. If i use doc 1 without the shortening it is all fine and i keep the green ssl padlock.
i personally think its beacause the bit.ly api should go through https://api-ssl.bit.ly/v3/shorten when using ssl, and not https://api.bit.ly/v3/shorten like it used to.