Module: baserequest

Methods


<static> APIRequest(url [, params])

Parameters:
Name Type Argument Default Description
url string
params object <optional>
{}
Source:
Returns:
Type
dynamic

<static> authRequest(req)

Takes and returns a roUrlTransfer object after adding a Jellyfin "Authorization" header

Parameters:
Name Type Description
req object
Source:
Returns:
Type
object

<static> buildAuthHeader()

Returns a string containing the "Authorization" header payload

Source:
Returns:
Type
string

<static> buildParams( [params])

Functions for making requests to the API

Parameters:
Name Type Argument Default Description
params object <optional>
{}
Source:
Returns:
Type
string

<static> buildURL(path [, params])

Parameters:
Name Type Argument Default Description
path string
params object <optional>
{}
Source:
Returns:
Type
dynamic

<static> deleteVoid(req)

Parameters:
Name Type Description
req dynamic
Source:
Returns:
Type
dynamic

<static> getJson(req)

Parameters:
Name Type Description
req dynamic
Source:
Returns:
Type
dynamic

<static> getString(req)

Parameters:
Name Type Description
req dynamic
Source:
Returns:
Type
dynamic

<static> getVoid(req)

Parameters:
Name Type Description
req dynamic
Source:
Returns:
Type
boolean

<static> get_url()

Source:
Returns:
Type
dynamic

<static> headVoid(req)

Parameters:
Name Type Description
req dynamic
Source:
Returns:
Type
boolean

<static> postJson(req [, data])

Parameters:
Name Type Argument Default Description
req dynamic
data string <optional>
""
Source:
Returns:
Type
dynamic

<static> postString(req [, data])

Parameters:
Name Type Argument Default Description
req dynamic
data string <optional>
""
Source:
Returns:
Type
dynamic

<static> postVoid(req [, data])

Parameters:
Name Type Argument Default Description
req dynamic
data string <optional>
""
Source:
Returns:
Type
boolean

<static> setCertificateAuthority(request)

sets the certificate authority by file path on the passed node

Parameters:
Name Type Description
request object
Source:
Returns:
Type
void