Jump to content

New cpanel api authentication


MDHMatt

Recommended Posts

I spent some time trying to find the right API docs for this, but I might not be smart enough. A link to the API docs? Is it just "WHM API 1"? Do you know if they have released a PHP API Library for this version of the API? If so, where is it?

Link to comment
Share on other sites

27 minutes ago, Paul said:

I spent some time trying to find the right API docs for this, but I might not be smart enough. A link to the API docs? Is it just "WHM API 1"? Do you know if they have released a PHP API Library for this version of the API? If so, where is it?

Here mate: https://documentation.cpanel.net/display/SDK/Guide+to+API+Authentication+-+API+Tokens

Link to comment
Share on other sites

3 hours ago, Paul said:

I spent some time trying to find the right API docs for this, but I might not be smart enough. A link to the API docs? Is it just "WHM API 1"? Do you know if they have released a PHP API Library for this version of the API? If so, where is it?

Yes, WHM API 1 (not 0). cPanel has a few SDKs. Their official one is only for XML responses 

https://github.com/CpanelInc/publicapi-php

But they also support JSON. All API functions support XML and JSON. If you look at their confluence page for all SDKs, they provide sample Perl and JSON code.

Example:
https://documentation.cpanel.net/display/SDK/Guide+to+API+Authentication+-+API+Tokens
 

 

Here a list of 3rd party cPanel libraries. PHP is included.

https://documentation.cpanel.net/display/SDK/Quickstart+Development+Guide+-+Libraries

 

-Adam

Link to comment
Share on other sites

8 hours ago, Paul said:

I spent some time trying to find the right API docs for this, but I might not be smart enough. A link to the API docs? Is it just "WHM API 1"? Do you know if they have released a PHP API Library for this version of the API? If so, where is it?

THey have only added a new authetification methode. All the old API request is the same.

Link to comment
Share on other sites

5 hours ago, ginner159 said:

cool ill wait for it to be released before moving up to version 4

cPanel is not removing the old WHM authentication anytime soon. It will be years, and I mean years, before cPanel fully deprecates the old style key based authentication in favor for the ReST one.

This should not be the only reason holding you back on upgrading.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...