BaseClientTCreateAsync 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.SharedAssembly: Anysense.API.Client.Shared (in Anysense.API.Client.Shared.dll) Version: 1.31.1+d671d89394079ff2411e503098d3578f08c2de86
Syntax public static Task<T> CreateAsync(
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
TaskTTask returning the ApiClient
See Also