Skip to content

API: setConnection

Adrian Preuß edited this page Jan 10, 2018 · 1 revision
API.setConnection(domain, secured);
Variable Default Type Description
domain <YourDomain> String The Endpoint for the connection
secured true Boolean Is the connection secured with HTTPS/SSL?

Examples

API.setConnection('api.example.tld', true);

Result: The API will connect to https://api.example.tld/

API.setConnection('sudomain.myapp.tld', false);

Result: The API will connect to http://sudomain.myapp.tld/