Skip to main content
←API Reference ←NSDK

NSDKSitesSession


Declaration​

final class NSDKSitesSession

Methods​

NameTypeSummary
requestAssetInfoAssetResult
Requests asset info and waits for the result.
requestAssetsForSiteAssetResult
Requests assets for a site and waits for the result.
requestOrganizationInfoOrganizationResult
Requests organization info and waits for the result.
requestOrganizationsForUserOrganizationResult
Requests organizations for a user and waits for the result.
This is an async wrapper that combines request initiation and polling.
It automatically handles polling until the request completes or times out.
requestSelfOrganizationInfoOrganizationResult
Requests organizations for the current authenticated session and waits for the result.
requestSelfUserInfoUserResult
Requests self user info and waits for the result.
Uses the user ID from the authenticated session's metadata.
To fetch organizations, consider using
requestSelfOrganizationInfo(pollingInterval:timeout:) instead.
requestSiteAssetsByLocationSiteAssetsResult
Requests sites and their assets near a GPS coordinate and waits for the result.
Results are ordered by distance from the query coordinate.
requestSiteInfoSiteResult
Requests site info and waits for the result.
requestSitesForOrganizationSiteResult
Requests sites for an organization and waits for the result.
requestUserInfoUserResult
Requests user info and waits for the result.