It works only with on-premise installation of Dynamics 365 with basic and NTLM authentication. It needs a valid SSL certificate.
The Web Api url you can find in your installation at: Settings -> Customizations -> Developer Resources -> Service Root Url field. (It needs to be accessible over internet.)