Methods
(static) createFromFile(filePath) → {ClientContext}
Creates a context instance using the provided JSON config file path.
Parameters:
| Name | Type | Description |
|---|---|---|
filePath |
string | Path of the config JSON file. |
Throws:
Will throw an error if the provided config file is not found.
Returns:
A ClientContext instance.
- Type
- ClientContext
withAuthentication(authentication) → {ClientContext}
Creates a copy of this ClientContext with the provided Authentication instance. This can be used to provide the authentication credentials at runtime, without storing them in a config file.
Parameters:
| Name | Type | Description |
|---|---|---|
authentication |
Authentication | An Authentication instance. |
Returns:
A new ClientContext instance.
- Type
- ClientContext