Dorathoto
New Pleskian
I created a client
In => mydomain.com/:8880/admin/customer/list?context=customers
Then I created a domain and a subscription for that user.
When I run the API with the following package
<Packet>
<Server>
<Get_protos />
</ Server>
</ Packet>
I get the expected response:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Packet version = "1.6.7.0">
<Server>
<Get_protos>
<Result>
<Status> ok </ status>
<Protos>
<Proto> 1.0.0.0 </ proto>
<Proto> 1.1.0.0 </ proto>
<Proto> 1.2.0.0 </ proto>
...
But when I apply
<Packet version = "1.6.3.0">
<Mail>
<Get_info>
<Filter>
<Site-id> 647 </ site-id>
</ Filter>
<Mailbox />
</ Get_info>
</ Mail>
</ Packet>
I receive:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Packet version = "1.6.3.0">
<Mail>
<Get_info>
<Result>
<Status> error </ status>
<Errcode> 1006 </ errcode>
<Errtext> Permission denied. </ Errtext>
</ Result>
</ Get_info>
</ Mail>
</ Packet>
The ID is not wrong, because if I enter the wrong site-id it would have the message:
<Errcode> 1015 </ errcode>
<Errtext> Domain does not exist. </ Errtext>
In => mydomain.com/:8880/admin/customer/list?context=customers
Then I created a domain and a subscription for that user.
When I run the API with the following package
<Packet>
<Server>
<Get_protos />
</ Server>
</ Packet>
I get the expected response:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Packet version = "1.6.7.0">
<Server>
<Get_protos>
<Result>
<Status> ok </ status>
<Protos>
<Proto> 1.0.0.0 </ proto>
<Proto> 1.1.0.0 </ proto>
<Proto> 1.2.0.0 </ proto>
...
But when I apply
<Packet version = "1.6.3.0">
<Mail>
<Get_info>
<Filter>
<Site-id> 647 </ site-id>
</ Filter>
<Mailbox />
</ Get_info>
</ Mail>
</ Packet>
I receive:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Packet version = "1.6.3.0">
<Mail>
<Get_info>
<Result>
<Status> error </ status>
<Errcode> 1006 </ errcode>
<Errtext> Permission denied. </ Errtext>
</ Result>
</ Get_info>
</ Mail>
</ Packet>
The ID is not wrong, because if I enter the wrong site-id it would have the message:
<Errcode> 1015 </ errcode>
<Errtext> Domain does not exist. </ Errtext>