mgufrone/cpanel-php

Missing security token?

Closed this issue · 1 comments

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?

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