1.1.19 • Published 1 year ago

infinite-tales-api v1.1.19

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.1.18

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.17

1 year ago

1.1.14

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.1

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago