Skip to content
Snippets Groups Projects
api.js 590 B
Newer Older
  • Learn to ignore specific revisions
  • Tim Repke's avatar
    Tim Repke committed
    /**
     *
     * params will contain the attributes to send (as an object)
     *   -> will be defined later
     *
     * callback is called, once the request was sent to the server.
     * It'll transmit an object containing the
     *    -> state (0 = successful, 1 = error, 2 = ?)
     *    -> main message (string)
     *    -> errors (null, if non; array of strings with messages else)
     *
     * @param params
     * @param callback
     */
    function api_send_signup(params, callback) {
    
        // TODO evaluate params and send them
    
        callback({
            state: 0,
            messages: 'Successful signup',
            errors: null
        })
    }