Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| technical:api-pu-expiry [2026/02/12 12:28] – created system | technical:api-pu-expiry [2026/02/12 12:46] (current) – system | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| </ | </ | ||
| - | | + | <alert type=" |
| + | | ||
| + | * When this component is configured, any active sessions | ||
| + | * This comes in handy if the user was in a suspended IP Pool with the expired state and then a payment was made thus making his account | ||
| + | </ | ||
| + | |||
| + | * To change the expiry date (to_date) of a Permanent User we first have to determine the id of the Permanent User. | ||
| + | * A CRM system typically do not know the id of the Permanent User in RADIUSdesk. | ||
| * With the sample script we use two APIs | * With the sample script we use two APIs | ||
| - | * The one API is used get a list of active sessions for a specified | + | * The one API is used get a list of Permanent |
| - | * The other API is used to terminate each of the sessions which was obtained with the first API call. | + | * The other API is used to set the new expiry date (to_date) |
| - | <file php permanent_user_terminate_session.php> | + | <file php permanent_user_set_expiry.php> |
| <?php | <?php | ||
| Line 25: | Line 32: | ||
| $username | $username | ||
| - | $api_url | + | $api_url |
| // Filter settings | // Filter settings | ||
| Line 84: | Line 91: | ||
| } | } | ||
| - | function | + | function |
| // Build the query string from $data | // Build the query string from $data | ||