Click or drag to resize

BaseClientTCreate Method

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Creates an instance of the ApiClient with ClientId and ClientSecret

Namespace: Anysense.API.Client.Shared
Assembly: Anysense.API.Client.Shared (in Anysense.API.Client.Shared.dll) Version: 1.29.2-dev
Syntax
C#
public static T Create(
	string clientId,
	string clientSecret,
	string identityServerOverride = null,
	bool persistToken = true,
	string callingAssemblyName = null,
	string callingAssemblyVersion = null,
	string tokenPathOverride = null
)

Parameters

clientId  String
The ClientId configured in Anysense
clientSecret  String
The ClientSecret configured in Anysense
identityServerOverride  String  (Optional)
Override of the identity server. Leave this empty, unless you are told otherwise by Anysense Support.
persistToken  Boolean  (Optional)
If true, the obtained accesstoken will be stored on the client machine
callingAssemblyName  String  (Optional)
Name of the program that uses the API client
callingAssemblyVersion  String  (Optional)
Version of the program that uses the API client
tokenPathOverride  String  (Optional)
Define this overrule where the accesstoken is stored. If empty the accesstoken (if persistToken is true) will be stored in the executing directory

Return Value

T
The ApiClient
See Also