xpressinsight.AppInterface.get_insight_context
xpressinsight.AppInterface.get_insight_context(self, environment: Optional[str] = None) -> InsightContext
environment
|
The DMP lifecycle environment for which to request an authorization token (e.g. "design"). If not specified, a token for the component's current environment is returned instead. Where the DMP solution has been configured with lifecycle isolation, only a token for the current or a lower lifecycle can be requested. Will be ignored when the app is not running in DMP.
|
>>> context = insight.get_insight_context() >>> if context.dmp: >>> print("DMP Manager URL: " + context.dmp.manager_url) >>> else: >>> print("Not executing in DMP")
© 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.