1.2.4 • Published 3 years ago

api-async v1.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

aSync for NodeJS

Introduction

Install

  • To install aSync npm package you just need to run the following command in your terminal:
npm i api-async

Modules

  • Here is a list of all the modules and code examples:

  • App.ValidateSession() -> Check if a session is active.
  • App.GetIP() -> Get visitor IP
  • App.Login(username, password) -> Login
  • App.Register(username, password, token) -> Register users to your application.

Examples

Login

const { aSyncApp } = require('api-async')
var App = new aSyncApp('APPID')

App.Login('username', 'Password123/').then(loginResponse => {
	if(loginResponse.error == false){
		console.log(loginResponse.message);
	}else{
		console.log(loginResponse.message);
	}
})

Register

const { aSyncApp } = require('api-async')
var App = new aSyncApp('APPID')

App.Register('username', 'Password123/', 'TOKEN').then(registerResponse => {
	if(registerResponse.error == false){
		console.log(registerResponse.message);
	}else{
		console.log(registerResponse.message);
	}
})
1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.0.9

3 years ago

1.1.7

3 years ago

1.0.8

3 years ago

1.1.6

3 years ago

1.0.7

3 years ago

1.2.4

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.2.3

3 years ago

1.1.4

3 years ago

1.2.2

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago