API documentation
 
Notifications
Clear all

API documentation

7 Posts
3 Users
0 Reactions
2,675 Views
Posts: 10
Topic starter
(@aleksandr-k)
Active Member
Joined: 8 years ago

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?

6 Replies
Posts: 1509
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

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

Reply
Posts: 71
(@dolphyn5)
Estimable Member
Joined: 8 years ago

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!

Reply
Posts: 1509
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

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

Reply
Posts: 71
(@dolphyn5)
Estimable Member
Joined: 8 years ago

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
)
)

Reply
Page 1 / 2
Share: