infinite-tales-api v1.1.19
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.
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago