Skip to main content

<a id=“SuperOffice_WebApi_Agents_IApiAgent”></a> Interface IApiAgent

Namespace: SuperOffice.WebApi.Agents
Assembly: SuperOffice.WebApi.dll
Interface for API agents: API info, tenant status, Client library version

Implements

IAgentBase, IDisposable

Methods

<a id=“SuperOffice_WebApi_Agents_IApiAgent_GetApiVersionAsync_SuperOffice_WebApi_RequestOptions_”></a> GetApiVersionAsync(RequestOptions)

Gets version info from base URL.

Parameters

requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<StringDictionary&gt; Dictionary containing meta-data: “NetServerVersion”, “Services”, “Version”

<a id=“SuperOffice_WebApi_Agents_IApiAgent_GetTenantStatusAsync_System_String_System_String_SuperOffice_WebApi_RequestOptions_”></a> GetTenantStatusAsync(string, string, RequestOptions)

Returns the tenant status for a given customer, in a given environment. Does not need base URL to be set.

Parameters

tenantCustId string The Online customer id: “Cust1234” subdomain string “sod”, “qastage” or “online”. Default “online” (production). See <xref href=“SuperOffice.WebApi.SubDomain” data-throw-if-not-resolved=“false”></xref> requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<TenantStatus&gt; Tenant status