Skip to content
Snippets Groups Projects
IBaseFunctionality.cs 742 B
using FitConnect.Models;

namespace FitConnect;

public interface IBaseFunctionality {
    /// <summary>
    /// Get OAuth2 token for FitConnect API
    /// The credentials can be created there:
    /// https://portal.auth-testing.fit-connect.fitko.dev/login
    /// </summary>
    /// <param name="clientId">Your Client ID</param>
    /// <param name="clientSecret">Your Client Secret</param>
    /// <param name="scope">The scope of your API token</param>
    /// <returns></returns>
    Task<OAuthAccessToken> GetTokenAsync(string clientId, string clientSecret,
        string? scope = null);


    /// <summary>
    /// Receive the SET data
    /// </summary>
    /// <returns></returns>
    Task<SecurityEventToken> GetSetDataAsync();
}