Hi i have a reseller account with another company and they have cpsess enabled all my scripts i wrote using fopen used to work but they turned fopen off I have been trying to use your addpop but keep getting access denied result what can be going wrong?
returns the error
Code:
<?php
include("xmlapi.php.inc");
$ip = "whr4.whrcisp4.com";
$root_pass = "mycpanelpassword";
$account = "mycpanelusername";
$email_user = "johnsmith";
$email_password = "FlubbeR678";
$email_domain = "buyandsell123.com";
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth("root",$root_pass);
$xmlapi->set_debug(1);
print $xmlapi->api1_query($account, "Email", "addpop", array($email_user, $email_password, $email_domain) );
?>
Code:
RAW API1 CALL: Emailaddpop1johnsmithFlubbeR678buyandsell123.com QUERY: https://whr4.whrcisp4.com:2083/xml-api/cpanel?user=mycpanelusername&xmlin=%3Ccpanelaction%3E%3Cmodule%3EEmail%3C%2Fmodule%3E%3Cfunc%3Eaddpop%3C%2Ffunc%3E%3Capiversion%3E1%3C%2Fapiversion%3E%3Cargs%3Ejohnsmith%3C%2Fargs%3E%3Cargs%3EFlubbeR678%3C%2Fargs%3E%3Cargs%3Ebuyandsell123.com%3C%2Fargs%3E%3C%2Fcpanelaction%3E RAW XML: 0 Access denied object(SimpleXMLElement)#2 (1) { ["data"]=> object(SimpleXMLElement)#3 (2) { ["result"]=> string(1) "0" ["reason"]=> string(13) "Access denied" } } SIMPLEXML OBJ:
[code]
just to let you know where it says mycpanelusername uses my real username
Any help would be most appreciated