API Docs

Manual, tutorials and complete function reference

util_setCredentials

Saves PortfolioEffect client log-in credentials. To retrieve your account credentials, please log in to your account. This function should be called before any other requests to the server are made.


Usage
util_setCredentials(username, password, apiKey, hostname)
username
Account username
password
Account password
apiKey
Account api key
hostname
Hostname

Return Value
Returns nothing if successfully connected, otherwise prints connection error details.
Examples
util_setCredentials("User Name", "User Password", "User apiKey")
util_setCredentials('User Name', 'User Password', 'User apiKey');