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.

Deprecated API's - what to do then?

Discussion in 'cPanel Developers' started by Darma, Sep 2, 2015.

  1. Darma

    Darma Member

    Joined:
    Jul 31, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Belgium
    cPanel Access Level:
    Reseller Owner
    Hello guys,

    I am relatively new with WHM / Cpanel and need to develop a simple application in PHP to achieve some basic stuff.

    Looking into the Cpanel SDK documentation I see mostly this message:

    cPanel API 1 is deprecated. We strongly recommend that you do not use cPanel API 1. However, no equivalent function exists in our newer APIs.

    What should I do in this case. Is the use of the deprecated API's really discouraged or not supported? How can I then achieve my goals?

    Any advise will be highly appreciated.

    Kind regards,

    Darma
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
  3. cPDavidN

    cPDavidN cPanel Developer
    Staff Member

    Joined:
    Mar 19, 2013
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    DataCenter Provider
    In the case that there's no equivalent function in Api2 or UAPI, unfortunately the only choice is to use Api1. We still have a lot of code using Api1, as it's very labor intensive to add new UAPI calls and remove the old Api1 call sites. As we add new UAPI calls, we are updating the documentation to direct people from the Api1 / Api2 page for a given call, to the UAPI equivalent.

    Thank you for your understanding.

    David Nielson
    Integration Developer, cPanel
     
  4. Darma

    Darma Member

    Joined:
    Jul 31, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Belgium
    cPanel Access Level:
    Reseller Owner
    Thank you David, this is what I needed to know.
    Is there a way to be notified when updates are being added ?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. Darma

    Darma Member

    Joined:
    Jul 31, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Belgium
    cPanel Access Level:
    Reseller Owner
    Thank you !
     
Loading...

Share This Page