Skip to content

Server Notifications

sadhasivam edited this page Sep 10, 2024 · 1 revision

Handle Notification

URL: /api/admin/notifications/{notification_id}

Method: POST

Description: Handles the specified notification.

Parameters

Parameter Type Required/Optional Description
notification_product_not_found String Required The notification message displayed when the product is not found.
notification_product_inactive String Required The notification message displayed when the product is inactive.
notification_license_ok String Required The notification message displayed when the license is valid.
notification_license_not_found String Required The notification message displayed when the license is not found.
notification_invalid_ip String Required The notification message displayed when an invalid IP is detected.
notification_invalid_domain String Required The notification message displayed when an invalid domain is detected.
notification_domain_required String Required The notification message displayed when a domain is required but not provided.
notification_domain_in_use String Required The notification message displayed when the domain is already in use.
notification_license_suspended String Required The notification message displayed when the license is suspended.
notification_license_expired String Required The notification message displayed when the license has expired.
notification_updates_expired String Required The notification message displayed when updates have expired.
notification_support_expired String Required The notification message displayed when support has expired.
notification_license_cancelled String Required The notification message displayed when the license is cancelled.
notification_license_limit String Required The notification message displayed when the license limit is reached.
notification_installation_not_found String Required The notification message displayed when the installation is not found.
notification_invalid_signature String Required The notification message displayed when an invalid signature is detected.
notification_host_banned String Required The notification message displayed when the host is banned.
notification_unknown_error String Required The notification message displayed when an unknown error occurs.

Response

{
    "success": true,
    "message": "The server notification details has been updated",
    "data": {
        "notification_id": 1,
        "notification_product_not_found": "Requested product not found",
        "notification_product_inactive": "Product %PRODUCT_TITLE% is inactive",
        "notification_license_ok": "License OK",
        "notification_license_not_found": "License with email address %CLIENT_EMAIL% or license code %LICENSE_CODE% not found (or product not found or is inactive)",
        "notification_invalid_ip": "%PRODUCT_TITLE% installation on IP address %IP_ADDRESS% is not allowed",
        "notification_invalid_domain": "%PRODUCT_TITLE% installation on domain %ROOT_URL% is not allowed",
        "notification_domain_required": "%PRODUCT_TITLE% installation is only allowed on a real and working domain",
        "notification_domain_in_use": "Domain %ROOT_URL% is already in use by another client",
        "notification_license_suspended": "%PRODUCT_TITLE% license suspended",
        "notification_license_expired": "%PRODUCT_TITLE% license expired on %LICENSE_EXPIRE_DATE%",
        "notification_updates_expired": "%PRODUCT_TITLE% updates expired on %LICENSE_UPDATES_DATE%",
        "notification_support_expired": "%PRODUCT_TITLE% support expired on %LICENSE_SUPPORT_DATE%",
        "notification_license_cancelled": "%PRODUCT_TITLE% license cancelled on %LICENSE_CANCEL_DATE%",
        "notification_license_limit": "The maximum number of allowed  %PRODUCT_TITLE% installations (%LICENSE_LIMIT% installation(s) total) reached",
        "notification_installation_not_found": "%PRODUCT_TITLE% installation on domain %ROOT_URL% and\/or IP address %IP_ADDRESS% not found",
        "notification_invalid_signature": "License signature is invalid",
        "notification_host_banned": "Hostname %IP_ADDRESS% is banned",
        "notification_unknown_error": "An unknown error occurred (probably database failure or unauthorized modification of data)",
        "created_at": null,
        "updated_at": null
    }
}

View Notifications

URL: /api/admin/viewNotifications

Method: GET

Description: Retrieves a list of notifications.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
    "message": "lang.Notification_Show",
    "data": [
        {
            "notification_id": 1,
            "notification_product_not_found": "Requested product not found",
            "notification_product_inactive": "Product %PRODUCT_TITLE% is inactive",
            "notification_license_ok": "License OK",
            "notification_license_not_found": "License with email address %CLIENT_EMAIL% or license code %LICENSE_CODE% not found (or product not found or is inactive)",
            "notification_invalid_ip": "%PRODUCT_TITLE% installation on IP address %IP_ADDRESS% is not allowed",
            "notification_invalid_domain": "%PRODUCT_TITLE% installation on domain %ROOT_URL% is not allowed",
            "notification_domain_required": "%PRODUCT_TITLE% installation is only allowed on a real and working domain",
            "notification_domain_in_use": "Domain %ROOT_URL% is already in use by another client",
            "notification_license_suspended": "%PRODUCT_TITLE% license suspended",
            "notification_license_expired": "%PRODUCT_TITLE% license expired on %LICENSE_EXPIRE_DATE%",
            "notification_updates_expired": "%PRODUCT_TITLE% updates expired on %LICENSE_UPDATES_DATE%",
            "notification_support_expired": "%PRODUCT_TITLE% support expired on %LICENSE_SUPPORT_DATE%",
            "notification_license_cancelled": "%PRODUCT_TITLE% license cancelled on %LICENSE_CANCEL_DATE%",
            "notification_license_limit": "The maximum number of allowed  %PRODUCT_TITLE% installations (%LICENSE_LIMIT% installation(s) total) reached",
            "notification_installation_not_found": "%PRODUCT_TITLE% installation on domain %ROOT_URL% and\/or IP address %IP_ADDRESS% not found",
            "notification_invalid_signature": "License signature is invalid",
            "notification_host_banned": "Hostname %IP_ADDRESS% is banned",
            "notification_unknown_error": "An unknown error occurred (probably database failure or unauthorized modification of data)",
            "created_at": null,
            "updated_at": null
        },
        {
            "notification_id": 2,
            "notification_product_not_found": "Requested product not found",
            "notification_product_inactive": "Product %PRODUCT_TITLE% is inactive",
            "notification_license_ok": "License OK",
            "notification_license_not_found": "License with license code %LICENSE_CODE% not found (or product not found or is inactive)",
            "notification_invalid_ip": "%PRODUCT_TITLE% installation on IP address %IP_ADDRESS% is not allowed",
            "notification_invalid_domain": "%PRODUCT_TITLE% installation on domain %ROOT_URL% is not allowed",
            "notification_domain_required": "%PRODUCT_TITLE% installation is only allowed on a real and working domain",
            "notification_domain_in_use": "Domain %ROOT_URL% is already in use by another client",
            "notification_license_suspended": "%PRODUCT_TITLE% license suspended",
            "notification_license_expired": "%PRODUCT_TITLE% license expired on %LICENSE_EXPIRE_DATE% ,Please renew it on  billing.faveohelpdesk.com",
            "notification_updates_expired": "%PRODUCT_TITLE% updates expired on %LICENSE_UPDATES_DATE% ",
            "notification_support_expired": "%PRODUCT_TITLE% support expired on %LICENSE_SUPPORT_DATE%",
            "notification_license_cancelled": "%PRODUCT_TITLE% license cancelled on %LICENSE_CANCEL_DATE%",
            "notification_license_limit": "The maximum number of allowed  %PRODUCT_TITLE% installations (%LICENSE_LIMIT% installation(s) total) reached",
            "notification_installation_not_found": "%PRODUCT_TITLE% installation on domain %ROOT_URL% and\/or IP address %IP_ADDRESS% not found",
            "notification_invalid_signature": "License signature is invalid",
            "notification_host_banned": "Hostname %IP_ADDRESS% is banned",
            "notification_unknown_error": "An unknown error occurred (probably database failure or unauthorized modification of data)",
            "created_at": null,
            "updated_at": null
        }
    ]
}

View Emails

URL: /api/admin/viewEmails

Method: GET

Description: Retrieves a list of emails.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
    "message": "lang.Emails_Show",
    "data": {
        "emails": [
            {
                "SETTING_ID": 1,
                "ROOT_URL": "https://demo.license.com",
                "CLIENT_EMAIL": "admin@license.com",
                "LICENSE_CODE": "ae11e-5949-4939-a182-e4d51186",
                "INSTALLATION_HASH": "    ",
                "SYSTEM_LANGUAGE": "en",
                "TIMEZONE": "UTC",
                "RECORDS_ARCHIVE_DAYS": 1000,
                "RECORDS_ON_ADMIN_PAGE": 10,
                "RECORDS_ON_INDEX_PAGE": 5,
                "RECORDS_ON_SEARCH_PAGE": 10,
                "API_STATUS": 1,
                "BANNED_HOSTS": 0,
                "BANNED_HOST_MESSAGE": "",
                "FAILED_LOGINS": 1,
                "FAILED_LOGINS_LIMIT": 3,
                "FAILED_LICENSINGS_LIMIT": 0,
                "FAILED_UPDATES_LIMIT": 0,
                "FAILED_HOSTS_FORGET": 1,
                "FAILED_FORGET_LIMIT": 3,
                "SMART_REPORTS": 1,
                "SMART_TABLES": 1,
                "MIN_PASSWORD_LENGTH": 8,
                "PASSWORD_VALIDATION_MESSAGE": null,
                "WHITELISTED_ACCESS": 0,
                "WHITELISTED_IP": "",
                "VERIFIED_UPDATES": "0",
                "EMAIL_FROM_NAME": "Testing",
                "EMAIL_FROM_ADDRESS": "demolicense@gmail.com",
                "EMAIL_CC_ADMIN": 0,
                "EMAIL_EXPIRING_LICENSE_DAYS": 0,
                "EMAIL_EXPIRING_UPDATES_DAYS": 0,
                "EMAIL_EXPIRING_SUPPORT_DAYS": 0,
                "EXPIRATION_CHECK_DATE": "2021-08-04",
                "DATABASE_CLEANUP_ENABLED": 1,
                "DATABASE_CLEANUP_CALLBACKS": 90,
                "DATABASE_CLEANUP_REPORTS_MAIN": 90,
                "DATABASE_CLEANUP_REPORTS_SYSTEM": 60,
                "DATABASE_CLEANUP_REPORTS_LICENSES": 0,
                "DATABASE_CLEANUP_VERSIONS": 0,
                "DATABASE_CLEANUP_FILES": 0,
                "DATABASE_CLEANUP_DATE": "2021-08-04",
                "NEWS_TEXT": "[{\"title\":\"license manager Scripts Receive New Features and Core Updates\",\"full_url\":\"https:\\/\\/www.license manager.com\\/blog\\/license manager-scripts-receive-new-features-and-core-updates\\/\",\"date\":\"2019-08-19\"},{\"title\":\"Force User Input Validation with Auto PHP Licenser 2.5\",\"full_url\":\"https:\\/\\/www.license manager.com\\/blog\\/force-user-input-validation-with-auto-php-licenser-2-5\\/\",\"date\":\"2019-04-18\"},{\"title\":\"Dead Man Switch 1.4 Gets Visual Emails Composer\",\"full_url\":\"https:\\/\\/www.license manager.com\\/blog\\/dead-man-switch-1-4-gets-visual-emails-composer\\/\",\"date\":\"2019-01-28\"}]",
                "NEWS_DATE": "2021-08-02",
                "ENVATO_API_TOKEN": "",
                "DATABASE_VERSION": "v3.0.1",
                "created_at": null,
                "updated_at": null,
                "EMAIL_DRIVER": "smtp",
                "EMAIL_PASSWORD": "eyJpdiI6IllWYmtsWE9tREJkZjcrS3Raa2hYWUE9PSIsInZhbHVlIgHGXuyagbjbskcznVdrSkxKWUtXc1BkVGhlQUZwWTlOSG1uY1l3VnR2clJlOHNqQVVMbz0iLCJtYWMiOiIwMjVlZDRhMDcyM2I4YjcwZmQ3Mzk4NDRiMjI4NzNmN2QyMWI2YmFhZGNkMDM0NTI4OTdhMzZlNGRlOTJjYzU3IiwidGFnIjoiIn0=",
                "EMAIL_PORT": 465,
                "EMAIL_ENCRYPTION": "SSL",
                "EMAIL_HOST": "smtp.gmail.com",
                "EMAIL_SENDING_STATUS": 1,
                "debugger": 0
            }
        ],
        "encryptionDropdown": [
            {
                "id": "none",
                "name": "None"
            },
            {
                "id": "SSL",
                "name": "SSL"
            },
            {
                "id": "TLS",
                "name": "TLS"
            },
            {
                "id": "StartTLS",
                "name": "StartTLS"
            }
        ],
        "prototypeDropdown": [
            {
                "id": "smtp",
                "name": "SMTP"
            },
            {
                "id": "mail",
                "name": "Php Mail"
            }
        ]
    }
}

Show Update Notifications

URL: /api/admin/showUpdateNotifications

Method: GET

Description: Retrieves a list of updated notifications.

Parameters

This endpoint does not require any parameters.

Response

[
    {
        "notification_id": 1,
        "notification_operation_ok": "Operation successful",
        "notification_product_not_found": "Requested product not found",
        "notification_product_inactive": "Product %PRODUCT_TITLE% is inactive",
        "notification_product_no_versions": "%PRODUCT_TITLE% has no versions",
        "notification_version_not_found": "Requested %PRODUCT_TITLE% version not found",
        "notification_version_inactive": "Product %PRODUCT_TITLE% version %VERSION_NUMBER% is inactive",
        "notification_version_expired": "%PRODUCT_TITLE% version %VERSION_NUMBER% expired on %VERSION_EXPIRE_DATE%",
        "notification_install_limit_reached": "%PRODUCT_TITLE% version %VERSION_NUMBER% installations limit (%VERSION_INSTALL_LIMIT%) reached",
        "notification_upgrade_limit_reached": "%PRODUCT_TITLE% version %VERSION_NUMBER% upgrades limit (%VERSION_UPGRADE_LIMIT%) reached",
        "notification_install_archive_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% installation archive not found",
        "notification_install_query_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% installation query not found",
        "notification_upgrade_archive_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% upgrade archive not found",
        "notification_upgrade_query_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% upgrade query not found",
        "notification_raw_install_query_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% installation raw query not found",
        "notification_raw_upgrade_query_not_found": "%PRODUCT_TITLE% version %VERSION_NUMBER% upgrade raw query not found",
        "notification_installation_not_verified": "%PRODUCT_TITLE% updates are only allowed for verified installations",
        "notification_host_banned": "Hostname %IP_ADDRESS% is banned",
        "notification_invalid_signature": "Script signature is invalid",
        "notification_invalid_parameter": "Invalid parameters",
        "notification_unknown_error": "An unknown error occurred (probably database failure or unauthorized modification of data)",
        "created_at": null,
        "updated_at": null
    }
]

Clone this wiki locally