Hey
I have a reseller package / hosting from UK Web Solutions Direct and I'm having a problem with using the API.
I have a PHP script that automatically creates a email account on cpanel via the API.
This works fine if you enter the cpanel user and pass of the domain you want to add the email account too.
What I want to do is enter the cpanel user and pass of my reseller main account and then add email accounts on different domains without changing the cpanel user and pass.
The thing that confuses me is that using the user and pass of my reseller main account within cpanel allows me full access to different domains control panels, so why is this different for the API?
This is the script (if taken the user/pass/domain out for obv reasons):
/http://pastebin.com/HAdxYUBL
Any help or pointers would be great.
Regards,
Matt Clarke
I have a reseller package / hosting from UK Web Solutions Direct and I'm having a problem with using the API.
I have a PHP script that automatically creates a email account on cpanel via the API.
This works fine if you enter the cpanel user and pass of the domain you want to add the email account too.
What I want to do is enter the cpanel user and pass of my reseller main account and then add email accounts on different domains without changing the cpanel user and pass.
The thing that confuses me is that using the user and pass of my reseller main account within cpanel allows me full access to different domains control panels, so why is this different for the API?
This is the script (if taken the user/pass/domain out for obv reasons):
/http://pastebin.com/HAdxYUBL
Any help or pointers would be great.
Regards,
Matt Clarke