Members
-
userId
-
Get the default user ID.
This gets the first available user ID from the
userIdsproperty. -
userId
-
Set the user ID.
This will set the
userIdsproperty to a new array of just the given value.
Methods
-
baseUrl()
-
Get the base URL to the SolarUser v1 REST API.
The returned URL uses the configured environment to resolve the
hostUrland asolarUserPathcontext path. If the context path is not available, it will default to/solaruser.Returns:
the base URL to SolarUser
- Type
- string
-
updateNodeArchivedStatusUrl(nodeId, archived)
-
Generate a URL to update the archived status of a set of nodes via a
POSTrequest.Parameters:
Name Type Description nodeIdnumber | Array.<number> | null a specific node ID, or array of node IDs, to update; if not provided the
nodeIdsproperty of this class will be usedarchivedboolean trueto mark the nodes as archived;falseto un-mark and return to normal statusReturns:
the URL to update the nodes archived status
- Type
- string
-
viewArchivedNodesUrl()
-
Generate a URL to get a list of all archived nodes for the user account.
Returns:
the URL to access the user's archived nodes
- Type
- string
-
viewNodesUrl()
-
Generate a URL to get a list of all active nodes for the user account.
Returns:
the URL to access the user's active nodes
- Type
- string
-
viewPendingNodesUrl()
-
Generate a URL to get a list of all pending nodes for the user account.
Returns:
the URL to access the user's pending nodes
- Type
- string