ImportAPI.CreateByBearerToken Method

Relativity Import APIs
Creates a new instance of the ImportAPI class. Uses the supplied bearer token to authenticate both WebAPI and REST API endpoints.

Namespace:  kCura.Relativity.ImportAPI
Assembly:  Relativity.DataExchange.Client.SDK (in Relativity.DataExchange.Client.SDK.dll) Version: 1.5.0
Syntax

public static ImportAPI CreateByBearerToken(
	string webServiceUrl,
	string bearerToken
)

Parameters

webServiceUrl
Type: String
The URL to the Relativity WebAPI instance.
bearerToken
Type: String
The bearer token used to authenticate both WebAPI and REST API endpoints.

Return Value

Type: ImportAPI
The ImportAPI instance.
Exceptions

ExceptionCondition
InvalidLoginException Thrown when bearer token authentication failure occurs.
RelativityNotSupportedException The exception thrown when this API version isn't supported with the specified Relativity instance.
See Also

Reference