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