Clarity

 View Only

Gel Script to call Rest API

  • 1.  Gel Script to call Rest API

    Posted Jun 18, 2021 03:14 PM
    Hi Team,
    We are planning to enclose Rest API in Gel script for project object. Have referred to the link  https://www.pemari.com/techie/gel-script-restapi/.It is not proceeding at the step while authenticating

    <core:set var="void" value="${ClarityConnection.connect()}"/>





    <core:set var="CL_isAuthenticated" value="${ClarityConnection.getHeaderField(0)}"/>

    <core:set var="response_msg" value="${ClarityConnection.getResponseMessage()}"/>

    <gel:log>Clarity isAuthenticated: ${CL_isAuthenticated}</gel:log>
    <gel:log>Clarity Response: ${response_msg}</gel:log>

    The process is completing with blank values in Clarity Authentication and response msg 

    Please let me know if I am missing something.
    Thanks in advance