C# Class SensorbergSDK.ApiKeyHelper

Helper class to receive the api key from the sensorberg plattform or validate it.
Afficher le fichier Open project: sensorberg-dev/windows10-sdk Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Login() public méthode

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

ValidateApiKey() public méthode

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