Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Set setredirecturl for the park domain using Cpanel & WHM API 2

Discussion in 'cPanel Developers' started by B2Dev, Oct 8, 2012.

  1. B2Dev

    B2Dev Registered

    Joined:
    Oct 7, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hey Hi All,

    Please help us to "Set setredirecturl for the park domain using Cpanel & WHM API 2".
    Thanks

    Regards,
    Developers
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi B2Dev,

    API2 does not provide the setredirecturl functions. It is only available as an API1 call (documented here: Park Module Documentation).

    FWIW: API1 is not the predecesor to API2. It is true that many API1 functions have an analogous API2 function. However, because they are different APIs it cannot be assumed that there will always be such parity. Related information can be found in a blog article, Introduction to cPanel & WHM APIs | cPanel Blog

    Regards,
    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. B2Dev

    B2Dev Registered

    Joined:
    Oct 7, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi DavidN,

    We have tried API1 call for setredirecturl functions, but we did not succeeded. We have got following response.
    ----- starts-------
    Array
    (
    [apiversion] => 1
    [type] => event
    [module] => Park
    [func] => setredirecturl
    [source] => module
    [data] => Array
    (
    [result] => nowhere (Redirection Disabled!)

    )

    [event] => Array
    (
    [result] => 1
    )

    )
    ------ ends-------
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice