Informizely customer feedback surveys
By using the Aculab site, you agree with our use of cookies.

redirect Action

Redirect to a new web page.

The redirect properties are:

PropertyRequired/OptionalDefaultDescription
next pagerequiredA web page request object that defines the next page to be requested.



  • Examples:

    • Redirect to an alternative page using the default method:

      "redirect" :
      {
          "next_page" : 
          {
              "url" : "my_alternative_page"
          }
      }
      
    • Redirect to an alternative page using the GET method:

      "redirect" :
      {
          "next_page" : 
          {
              "url" : "my_alternative_page",
              "method" : "GET"
          }
      }
      
  • Redirect Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to redirect to a new web page.

    public class Redirect : TelephonyAction
    {
        // Constructors
        public Redirect(WebPageRequest nextPage);
    }
    

    Examples:

    • Redirect to an alternative page using the default method:

      List<TelephonyAction> actions = new List<TelephonyAction>();
      
      actions.Add(new Redirect(new WebPageRequest("AlternativePage.aspx")));
      
    • Redirect to an alternative page using the GET method:

      List<TelephonyAction> actions = new List<TelephonyAction>();
      
      actions.Add(new Redirect(new WebPageRequest("AlternativePage.aspx", "GET")));
      
  • Redirect Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to redirect to a new web page.

    Public Class Redirect
        Inherits TelephonyAction
    
        ' Constructors
        Public Sub New (nextPage As Webpagerequest)
    End Class
    

    Examples:

    • Redirect to an alternative page using the default method:

      Dim actions = New List(Of TelephonyAction)
      
      actions.Add(New Redirect(New WebPageRequest("AlternativePage.aspx")))
      
    • Redirect to an alternative page using the GET method:

      Dim actions = New List(Of TelephonyAction)
      
      actions.Add(New Redirect(New WebPageRequest("AlternativePage.aspx", "GET")))
      
  • class Redirect extends TelephonyAction

    Represents a redirect action.

    Class synopsis:

    // Constructors:
    public Redirect(WebPageRequest nextPage)
    

    Examples:

    • Redirect to an alternative page using the default method:

      List<TelephonyAction> actions = new ArrayList<TelephonyAction>();
      
      actions.add(new Redirect(new WebPageRequest("my_alternative_page")));
      
    • Redirect to an alternative page using the GET method:

      List<TelephonyAction> actions = new ArrayList<TelephonyAction>();
      
      actions.add(new Redirect(new WebPageRequest("my_alternative_page", "GET")));
      
  • class Redirect

    Represents a redirect action.

    Class synopsis:

    # Redirect object:
    Redirect(next_page)
    
    • Redirect to an alternative page using the default method:

      my_actions.append(Redirect(WebPage(url='my_alternative_page')))
      
    • Redirect to an alternative page using the GET method:

      my_actions.append(Redirect(WebPage(url='my_alternative_page', method='GET')))
      
  • The Redirect class

    Introduction

    Represents a redirect action.

    Class synopsis

    class Redirect extends ActionBase {
    
        /* methods */
        public __construct(WebPageRequest|string $next_page, string $method = null)
    }
    

    Examples:

    • Redirect to an alternative page using the default method:

      $response->addAction(new Aculab\TelephonyRestAPI\Redirect('alternativePage'));
      
    • Redirect to an alternative page using the GET method:

      $web_page = new Aculab\TelephonyRestAPI\WebPageRequest('alternativePage', 'GET');
      $response->addAction(new Aculab\TelephonyRestAPI\Redirect($web_page));