1.2.6 • Published 4 years ago

ictfax-ts v1.2.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ICTFax-ts

ICTFax API library for typescript

Installation

$ npm install ictfax-ts

How to

The npm package is a javascript library with typescript types. You can use this for the open source fax server: https://ictfax.org/

This ia not an offical lib, So not all function are implemented. Here is the official api doc: https://ictfax.com/fax-rest-api-guide.html

Example

import { IctFaxClient } from 'IctFaxClient';

(async () => {

    const client = new IctFaxClient("http://fax1.example.com")
    var auth = await client.login({
        username: "admin",
        password: "",
    });
    if (auth){
        console.log("> Auth successful!")

        var accounts = await client.GetAllAccounts();
        accounts.forEach(function(user: User){
            console.log(" > User " + user.username)
        })        

    }else{
        console.log("> Auth failed!")
    }
})();

License

MIT

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago