Use is_ssl() for get_woocommerce_api_url()

When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
Merge pull request #5248 from maxrice/master

Use is_ssl() for get_woocommerce_api_url()