Class: AuthAPI

AuthAPI

Class representing Authorization


new AuthAPI(obj)

Create an Authorization object

Parameters:
Name Type Description
obj Object

An object

Properties
Name Type Description
user string

username

password string

password

host string

host

solution string

solution

layout string

layout

Methods


getHost()

Get the hostname

Returns:

the host

Type
string

getLayout()

Get the layout

Returns:

the layout

Type
string

getOptions()

Get the options (headers)

Returns:

the options

Type
Object

getSolution()

Get the solution

Returns:

the solution

Type
string

getToken()

Get the token

Returns:

the token

Type
string

login()

Login to Filemaker Server Data API

Returns:

Promise resolved with the token

Type
Promise

logout()

Logout of Filemaker Server Data API

Returns:

Promise resolved with boolean

Type
Promise