Good day.
Can i get link on API documentation? Mostly i need for Exchange module, as we planning integration with our CRMbilling systems.
Is there any significant changes from WSP API?
Hello,
We currently do not have documentation on the API.
I Believe a lot of the API has not been changed from WSP. You maybe able to see in our WHMCS plugin alot of the API codes.
If you have specific requests on parts of the API please let us know and i can try find the pieces you need.
Kind Regards,
Trevor Robinson
Okay, here's a specific API question: Can you please provide an example of how to use
http://192.168.xx.xx:9002/esImport.asmx?op=ImportItems
to import SmarterMail domains?
Apparently I need something like this:
[async] => (boolean)
[taskId] => (arbitrary?)
[packageId] => (integer)
[items] => (array of strings)
I think the string array should include domain names and probably the itemTypeId (11), but I don't know how to format the strings. Thanks!
Hello,
Sorry for the delay in our response.
I have taken a look through the code to try understand what strings form the array and how they are formed. During my testing i created some breakpoints on the portal and imported 3 DNS's to a hosting space. These are the strings it made into a array:
[0] "12|TestSCP5-a.com"
[1] "12|TestSCP5-b.com"
[2] "12|TestSCP5-c.com"
It will use the ItemTypeID as found in [dbo].[ServiceItemTypes] as you suggested.
Hopefully this will help you. If we can be of any other assistance then please let us know.
Kind Regards,
Trevor Robinson
Thanks, that sounds like the correct answer that I was hoping for, but alas, I have not got it to work. I just get [ImportItemsResult] => 0.
For what it's worth, my array looks like this (and I also tried async false).
Array
(
[async] => 1
[taskId] => ImportMail-ArbitraryText
[packageId] => 62
[items] => Array
(
[0] => 11|domain-name.org
)
)