Jump to content

Recommended Posts

Posted

Just wondering if the cpanel module has been or will be updated for the new version of the api?

 

from what I read they are getting rid of the secret key like we have now and  implementing a new way to do it. 

 

(Link to be added a soon as off mobile)

Posted

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?

Posted
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

Posted
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.

Posted
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.

 

Posted

yeah i know just be nice to have the option to use it as ive already switched with my servers and nah its not the only reason, need to test it before i update and move my install to own folder integrate v4 into my site etc etc

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...