Config [parse.config]¶
Configuration methods are both "getters" and "setters":
-- getter local appId = parse.config:applicationId() -- setter parse.config:applicationId("fbf3960f-9bc1-4d10-ab0f-a3eb76e19553")
Application Keys¶
:cloudAddress¶
Set the external Parse-Server address. Default is Parse.com API.
Parameters:
- url_or_ip (String)
parse.config:cloudAddress( "https://my.parse.server:1234/v1" )
:applicationId¶
The Parse application identifier to access.
Parameters:
- app_id (String, Required)
parse.config:applicationId( "fbf3960f-9bc1-4d10-ab0f-a3eb76e19553" )
:restApiKey¶
The Parse application REST API identifier.
Parameters:
- rest_api_key (String, Required)
parse.config:restApiKey( "fbf3960f-9bc1-4d10-ab0f-a3eb76e19553" )
:installationId¶
An installation id to pair with user sessions.
Parameters:
- installation_id (String)
parse.config:installationId( "fbf3960f-9bc1-4d10-ab0f-a3eb76e19553" )
Debugging¶
:debugEnable¶
Print incoming request data to the terminal.
Parameters:
- is_enabled (Boolean) default: FALSE
parse.config:debugEnable( true )
:debugVerbose¶
Print all incoming data to the terminal.
Parameters:
- is_enabled (Boolean) default: FALSE
parse.config:debugVerbose( true )
Other¶
:timeout¶
Maximum time to wait for a response in seconds.
Parameters:
- seconds (Number) default: 30
parse.config:timeout( 60 )