Tuitio client is an npm package written in typescript that facilitates the integration of a react application with Tuitio.
 
Go to file
Tudor Stanciu 708c63907a user-info tests 2023-03-28 19:47:23 +03:00
.vscode added tests 2023-02-10 02:20:52 +02:00
src user-info tests 2023-03-28 19:47:23 +03:00
.gitignore gitignore update 2023-02-11 05:06:49 +02:00
.npmrc Package initialization 2023-02-07 00:32:31 +02:00
.prettierrc Package initialization 2023-02-07 00:32:31 +02:00
LICENSE added license file 2023-02-11 20:51:19 +02:00
README.md 1.2.0 - Has been implemented the "user-info" method exposed by the Tuitio API. 2023-03-28 19:20:32 +03:00
jestconfig.json 100% test coverage 2023-02-11 04:01:15 +02:00
package-lock.json 1.2.0 - Has been implemented the "user-info" method exposed by the Tuitio API. 2023-03-28 19:20:32 +03:00
package.json 1.2.0 - Has been implemented the "user-info" method exposed by the Tuitio API. 2023-03-28 19:20:32 +03:00
tsconfig.json Package initialization 2023-02-07 00:32:31 +02:00
tslint.json Package initialization 2023-02-07 00:32:31 +02:00

README.md

Tuitio client

Introduction

Tuitio client is an npm package written in typescript that facilitates the integration of a javascript application with Tuitio.

Package installation

The package installation can be done in two ways:

  • from the command line: npm install @flare/tuitio-client@1.0.0
  • from the package.json file: "@flare/tuitio-client": "1.0.0"

How to use the package

const { TuitioClient, fetch } =  require("@flare/tuitio-client");
const TuitioClient =  require("@flare/tuitio-client");
const type { TuitioLoginResponse, TuitioLogoutResponse, TuitioState } =  require("@flare/tuitio-client");
import { TuitioClient, fetch } from "@flare/tuitio-client";
import TuitioClient from "@flare/tuitio-client";
import type { TuitioLoginResponse, TuitioLogoutResponse, TuitioState } from "@flare/tuitio-client";

Unit testing

Unit testing is done using Jest. This is an awesome testing framework created by Facebook.
The files containing tests are identified by the extension *.test.ts.
All tests in the package can be executed by running: npm test.

Changelog

1.0.0 - Package initialization
1.0.1 - Export Tuitio types
1.0.2 - Validate that Tuitio's URL parameter is a valid URL
1.0.3 - Added LICENSE file
1.0.4 - TuitioState's token property can be null
1.1.0 - In this version, the account logout method and the latest changes published by Tuitio were implemented.
1.2.0 - Has been implemented the "user-info" method exposed by the Tuitio API.