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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page