Connection.Ticket (etl_core v0.1.0)

Module for working with access tickets

Link to this section Summary

Functions

Returns a valid ticket, depending on the user. By default, the generic user is considered.

Link to this section Functions

Link to this function

get(url, headers, username, password)

Returns a valid ticket, depending on the user. By default, the generic user is considered.

parameters

Parameters:

- url: String. Url to consult. It is assumed that the url contains 2 parameters to replace them: <username>, <password>.

- headers: List.

- username: String. Username.

- password: String. Password.

return

Return:

- {Atom, String} | Exception . The atom can take the values: ok or error. The string will be the ticket or the error message.