All Commands
All Other
Commands
LOGIN_KEY
This will generate a login key that can be used with the lk= parameter in a URL to automatically log in as the user when making data requests etc.
This is really designed for use when setting up an API service. You might want to use this with the {URL_ENCODE()} command
This will only return a key if the user is logged in.
| Number | Name | Default | Type | Description |
|---|---|---|---|---|
| 1 | hours | 0 | Numeric | The number of hours that the key is valid for. You can use 0.5 for 30 minutes or 99999 for unlimited. |
| 2 | user_id | Current User ID | Integer | The ID of the user to get a key for |