1.1.19 • Published 2 months ago

infinite-tales-api v1.1.19

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Infinite-Tales API

InfiniteTalesAPI

A TypeScript library for interacting with the InfiniteTales API, offering easy-to-use methods for registering accounts and user authentication.

Installation

To use the InfiniteTalesAPI library in your project, include it as a dependency:

npm install infinitetales-api

Tests

To run tests

npm run test

Usage

Import and initialize the InfiniteTalesAPI class:

import { InfiniteTalesAPI } from 'infinitetales-api';

const api = new InfiniteTalesAPI('yourBaseHostname', useSSL);

Registering an Account

const registrationData = {
    username: '...',
    email: '...',
    // Other required fields
};

api.registerAccount(registrationData)
   .then(response => console.log(response.message))
   .catch(error => console.error(error));

User Login

const loginData = {
    email: '...',
    password: '...'
};

api.login(loginData)
   .then(response => console.log('Access Token:', response.access_token))
   .catch(error => console.error(error));

Contribution

Contributions to the InfiniteTalesAPI library are welcome. Please follow the standard GitHub pull request process to submit your changes.

License

This library is licensed under MIT License.


1.1.19

2 months ago

1.1.18

2 months ago

1.1.16

3 months ago

1.1.15

3 months ago

1.1.17

3 months ago

1.1.14

3 months ago

1.1.12

3 months ago

1.1.11

3 months ago

1.1.10

3 months ago

1.1.13

3 months ago

1.1.9

3 months ago

1.1.8

3 months ago

1.1.7

3 months ago

1.1.6

3 months ago

1.1.1

3 months ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.1.0

4 months ago

1.0.18

4 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago