Class: UserSupportAuthList

UserSupportAuthList

new UserSupportAuthList()

Create a new instance of Support_auths
Properties:
Name Type Description
authorizations Array Array of authorizations.
Source:
See:

Methods

generate_xml(email, expires, baseUrl)

Generates a save/update xml to be posted to the server.
Parameters:
Name Type Description
email String The email of the user for the support authorization.
expires Date The expiering date of the support authorization.
baseUrl String base URL. If not set the current base URL will be used.
Source:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
See:

loadPreset()

Overrides Resource's loadPreset method.
Source:
See:

loadSet(rObject)

Overrides Resource's loadSet method to set local variables after request.
Parameters:
Name Type Description
rObject json JSON representation of the loaded data.
Source:
See:

save(options)

Create new support authorizations for a specific user.
Parameters:
Name Type Description
options object options to be used during the call
Properties
Name Type Argument Description
onSuccess Resource~onSuccess a callback function called in case of a success
onFailure Resource~onFailure <optional>
a callback function called in case of a failure
baseUrl String <optional>
base URL. If not set the current base URL will be used
email String email of the user to authorize
expires Date expiration daate
Source: