plug-in_configuration

Clickthrough Plugin Configuration

A Clickthrough plug-in can be configured to send real-time guest user profile information to a third party application when a guest logs in successfully using the Clickthrough plug-in. You can view all the configuration details for the Clickthrough plugin. Based on the information, a personalized message or personalized offers can be presented to the guest. You can view it by navigating through Portals-> Click the portal name for which you want to configure Clickthrough plugin-> Settings tab-> plugin configuration -> Clickthrough icon. Once done with it you need to fill up the details and save it. Once done you will be able to see the configuration settings on the portal specified.

JSON Table

Parameter Data Type Description Manadatory Default/Sample Value
session_timeout int The time period, in minutes, after which the guest user session expires. The user must re-authenticate to continue using the WiFi service. A value of zero indicates that the user session does not timeout and the user must explicitly log out from the portal. A non-zero timeout configured on the user account takes precedence over the timeout configured on the plug-in, portal, and the SSID profile in Wireless Manager. No 60
blackout_time int The time period in minutes for which a user cannot log in to the portal after his last successful login has timed out. A value of zero indicates no blackout time. The blackout time, including zero value, configured on the user account takes precedence over the blackout time configured on the plug-in, portal, and the SSID profile in Wireless Manager. No 10
landing_url String The URL of the page to which the guest user is redirected to on successful login using this plug-in. No http://www.google.com
bandwidth_upload_limit int Maximum upload bandwidth, in Kbps, for the guest user accounts. No 128
bandwidth_download_limit int Maximum download bandwidth, in Kbps, for the guest user accounts. No 256

Copy Sample JSON
Sample JSON
[{
    "success": true,
    "message": "Record Updated",
    "data": {
        "totalCount": 1,
        "clickthroughConfig": {
            "pid": 6,
            "client_id": null,
            "client_secret": null,
            "developer_key": null,
            "date_created": "2018-02-01 13:10:31.655334",
            "session_timeout": null,
            "blackout_time": null,
            "date_modified": "2018-02-02 09:19:17.820825",
            "redirect_landing_url": null,
            "bandwidth_upload_limit": null,
            "bandwidth_download_limit": null,
            "redirect_endpoint_id": null,
            "redirect_campaign_id": null,
            "redirect_type": "redirect_landing_url",
            "selected_categories": [
                "https://www.googleapis.com/auth/userinfo.email",
                "https://www.googleapis.com/auth/plus.login"
            ],
            "all_categories": {
                "https://www.googleapis.com/auth/userinfo.email": {
                    "1": "Users Email"
                },
                "https://www.googleapis.com/auth/plus.login": {
                    "2": "Users Location",
                    "3": "Users Age Range",
                    "4": "Users Friend Count",
                    "5": "Users Profile Picture"
                }
            },
            "callback_url": "https://marketverticalanalytics.airtightnw.com/plugin/clickthroughplus/auth",
            "campaign": null
        }
    }
}]
API Calls

/V1.14/portals/{pid}/clickthrough/config

/V1.14/portals/{pid}/clickthrough/config

Get Clickthrough Plugin Configuration

Description This API is used to fetch the configuration details of the Clickthrough plug-in for a specified portal.
Syntax
GET <Base_URL>/portals/{pid}/clickthrough/config

Here,

  • pid

    It is the unique ID of the portal for which the Clickthrough plug-in configuration has to be fetched.

Sample code
GET https://marketverticalanalytics.airtightnw.com/api/v1.14/portals/1/clickthrough
/config
Request Body This API call does not require any request body parameters.
Response Body The API returns the details of clickthrough plug-in configuration in the response body.
The response is in the application/json format.

Edit Clickthrough Plugin Configuration

Description This API is used to modify the configuration details of the Clickthrough plug-in for a specified portal.
Syntax
PUT <Base_URL>/portals/{pid}/clickthrough/config

Here,

  • pid

    It is the unique ID of the portal for which the Clickthrough plug-in configuration has to be set.

Sample code
PUT https://marketverticalanalytics.airtightnw.com/api/v1.14/portals/1/clickthrough
/config
Request Body The API takes the plug-in configuration details to be updated as parameters in the request body.
The parameters are passed in the application/json format.
Response Body The API returns the details of clickthrough plug-in configuration in the response body.
The response is in the application/json format.