For the complete documentation index, see llms.txt. This page is also available as Markdown.

▶️Introduction

You can integrate with FibriCheck Cloud in 3 ways:

SDK

This package serves as a Flutter wrapper around all FibriCheck cloud services.

To get started with the FibriCheck SDK you'll need to install it, and then get credentials which will allow you to access the backend.

Installation

In your project, you can add the package below to the pubspec.yaml file. Replace {TOKEN} with your personal access token. You can get a new one here. Make sure you enable the repo scope.

   flutter_fibricheck_sdk:
     git:
       url: https://{TOKEN}@github.com/fibricheck/flutter-sdk
       ref: v1.0.0

Quick Start

import 'package:flutter_fibricheck_sdk/flutter_fibricheck_sdk.dart';

// To use the FibriCheck development environment
_sdk = FLFibriCheckSdk.client("<consumerKey>", "<consumerSecret>", "dev");

// To use the FibriCheck production environment
_sdk = FLFibriCheckSdk.client("<consumerKey>", "<consumerSecret>");

await _sdk.authenticateWithEmail(
      ParamsOauth1WithEmail(email: "email", password: "password"),
      (consents) {
        _onConsentNeeded(consents);
      },
    );

The client method (default export) supports several options you may set to achieve the expected behavior:

Name
Default
Description

env

production

Specifies the environment you connect to

consumerKey

Required. Your application's consumerKey

consumerSecret

Required. Your application's consumerSecret

For the env, Env.dev or Env.production enumeration from the library flutter_fibricheck_sdk can be used.

API

When you initialize the sdk, the returned object will have the following methods available.

This package serves as a JavaScript wrapper around all FibriCheck cloud services.

To get started with the FibriCheck SDK you'll need to install it, and then get credentials which will allow you to access the backend.

Installation

In your project, if you are using yarn or npm you need to create a file called .npmrc at the root level of your project and add these lines. Replace ${AUTH_TOKEN} with your personal access token. You can get a new one at here. Make sure you enable the read:packages scope.

Alternatively, this file can be added/edited in your home directory and it will be applied to all projects.

Explanation from GitHub on how to add your token can be found here.

Using npm:

Using yarn:

Quick Start

To be able to receive data from the FibriCheck cloud services, an app should authenticate with a username/password or token/tokenSecret combination.

To debug your data, an additional request/response logger can be added.

The client method (default export) supports several options you may set to achieve the expected behavior:

Name
Default
Description

env

production

Specifies the environment you connect to

consumerKey

Required. Your application's consumerKey

consumerSecret

Required. Your application's consumerSecret

API

When you initialize the sdk, the returned object will have the following interface. These descriptions and signatures are also available as inline JSDoc in your IDE.

REST API

FibriCheck offers a REST API to integrate FibriCheck in your application. A public Postman workspace is available where you can see and try-out all the relevant endpoints.

This workspace also contains an environment named FibriCheck Development that contains all the variables that are needed for the different API calls.

The variables consumerKey, consumerSecret, email and password need to be filled in before doing any API calls.

The accessToken and tokenSecret values are automatically filled in when performing the authentication call that is available as a request.

All variables that have the var_ prefix differ depending on the context and authenticated user.

Last updated