mgufrone / cpanel-php

CPanel/WHM API for PHP
MIT License
158 stars 91 forks source link

Missing security token? #1

Closed ratliff closed 9 years ago

ratliff commented 9 years ago

When I run your code against our cPanel server I receive an error indicating that the server has returned a 403 Forbidden for URL https://hostname.domain.com:2087/json-api/listaccts

Shouldn't the URL called be the code have a security token of the form cpsess###### in it somewhere?

ratliff commented 9 years ago

Nevermind. I figured out how to make it work. I needed to set auth_type = 'hash" and password = "the remote API key found in the WHM web interface".