Initializing help system before first use

insightapi2~insightconfig_init

Purpose
Initializes the insightconfig based on the given parameters
Synopsis
procedure insightconfig_init(client:insightapi2~insightconfig, url:text, client_id:text, secret:text)
procedure insightconfig_init(client:insightapi2~insightconfig, url:text)
procedure insightconfig_init(client:insightapi2~insightconfig, url:text, token_provider:function(string,text):integer)
procedure insightconfig_init(client:insightapi2~insightconfig, res:dmpresource)
Arguments
url 
The URL of the Insight server, e.g. "http://localhost:8080/"
client_id 
The client ID to use to authenticate with the Insight server
secret 
The secret to use to authenticate with the Insight server
res 
A configured dmpresource that contains the location and can authenticate into the Insight server.
token_provider 
A function that will be called when the package requires an authorization token for communication with the Insight server. The first argument of the function will receive the URL of the Insight server and the second will be an initially empty text that must be populated with the token to use; the function should return the number of seconds for which the token is valid. The package will call the function again once this expires. return value of -1 indicates a token could not be obtained.
Further information
1. If clientid/secret are not passed, will look for authentication credentials in the Windows Credential Manager / Mac keychain / etc, provided Mosel is executing in unrestricted mode.
2. Consult the 'Providing REST API credentials' section of this document for instructions on how to securely specify credentials through the secure storage on your platform.

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.