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!

Is it possible to add redirect to domain with cPanel API?

Discussion in 'cPanel Developers' started by Killy123, Jun 15, 2017.

Tags:
  1. Killy123

    Killy123 Member

    Joined:
    Oct 28, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    I am trying to add redirect to domain as it is possible at ".../frontend/paper_lantern/mime/redirect.html".I can not figure out how t do it with cPanel API 2 and the WHM API 1 .
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. haulpd

    haulpd Active Member

    Joined:
    May 20, 2011
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    58
    Hi cPanelMichael
    How to call that API from client code at another server. I have search for authen to call UAPI but can not implement with Python.
    I want call Mine:add_redirect and tried authen via API Token, User-Password, but just on WHM, can not authen via port 2083 to call api from applist.
    Can you give me any advise or reference.

    Thank You.
     
  4. haulpd

    haulpd Active Member

    Joined:
    May 20, 2011
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    58
    It solved, I create_user_session with fake account, and it false
    "You cannot create a session for the user “fake account” because they do not exist."
    Thanks
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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