This function returns whether the in-product survey banner should display for the current user and the survey link.
Notes:
display
value of 0
means you should not render the banner UI.uapi --output=jsonpretty \ --user=username \ InProductSurvey \ get_in_product_survey_url
{- "apiversion": 3,
- "func": "get_in_product_survey_url",
- "module": "InProductSurvey",
- "result": {
- "data": {
- "display": "1",
- "max_dismiss": "3",
- "new_user": "0",
- "submit_event": "survey_submitted",
- "server_type": "cpanel",
- "user_type": "cpanel"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}