Yes I do.
You should not need to set up the session, have a look at api/api.php, it handles that. It also includes config.php, engine/function/users.php, general.php, database/connect.php. https://github.com/Znote/ZnoteAAC/blob/master/api/api.php#L9-L12
Just include module.php in your script...