C# Class SensorbergSDK.ApiKeyHelper

Helper class to receive the api key from the sensorberg plattform or validate it.
显示文件 Open project: sensorberg-dev/windows10-sdk Class Usage Examples

Public Methods

Method Description
FetchApiKeyAsync ( string email, string password ) : Task

Tries to fetch the API key from the server matching the given credentials.

Login ( string email, string password ) : Task

Execute a login on the backend.

ValidateApiKey ( string apiKey ) : Task

Checks whether the given API key is valid or not.

Method Details

FetchApiKeyAsync() public method

Tries to fetch the API key from the server matching the given credentials.
public FetchApiKeyAsync ( string email, string password ) : Task
email string
password string
return Task

Login() public method

Execute a login on the backend.
public Login ( string email, string password ) : Task
email string
password string
return Task

ValidateApiKey() public method

Checks whether the given API key is valid or not.
public ValidateApiKey ( string apiKey ) : Task
apiKey string The API key to validate.
return Task