{
  "synLogic": "char $ret \u003d $api();",
  "help": "The ns_get_redirect_url stores the  redirected  url from  location header",
  "notes": "It is sometimes require to  extract certain values from location header . In this case we can this api to save the redirected url and thereafter use ns_search_string api to extract value from it",
  "returns": "The function returns a string that holds the redirected URL.",
  "arguments": "",
  "parameterization": "Standard parameterization is not available for this api",
  "name": "ns_get_redirect_url",
  "syntax": "char *ns_get_redirect_url();",
  "javaSyntax": "String ns_get_redirect_url();",
  "jsSyntax": "ns_get_redirect_url();",
  "cEx": "flow()\n{\n  rdcturl \u003d ns_get_redirect_url();\n  // ADD SAVE SEARCH API TO EXTRACT SOME VALUE FROM rdcturl varaible\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    rdcturl \u003d nsApi.ns_get_redirect_url();\n    // ADD SAVE SEARCH API TO EXTRACT SOME VALUE FROM rdcturl varaible\n  }\n}",
  "jsEx": "  let rdcturl \u003d nsApi.ns_get_redirect_url();\n",
  "insertStrC": "ns_get_redirect_url();",
  "insertStrJava": "ns_get_redirect_url();",
  "insertStrJs": "ns_get_redirect_url();",
  "description": "It stores the redirected Url based on  location header in the response",
  "component": [
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter return variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true,
		"method":"isValidVar(arg)"
      }
    }
  ]
}
