C# Класс SensorbergSDK.ApiKeyHelper

Helper class to receive the api key from the sensorberg plattform or validate it.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

FetchApiKeyAsync() публичный Метод

Tries to fetch the API key from the server matching the given credentials.
public FetchApiKeyAsync ( string email, string password ) : Task
email string
password string
Результат Task

Login() публичный Метод

Execute a login on the backend.
public Login ( string email, string password ) : Task
email string
password string
Результат Task

ValidateApiKey() публичный Метод

Checks whether the given API key is valid or not.
public ValidateApiKey ( string apiKey ) : Task
apiKey string The API key to validate.
Результат Task