Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 11th October 2011, 17:02
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

All the remote methods are enabled and the request of the connection is correct. So why there are no errors/exceptions. strange thing! I'll doublecheck it

Other question
Is there a way to get the client_id from the email of the user set in the ISPConfig administration panel? I don't know how to match my users in the billing web software with the ISPConfig software. Any suggestion?

thanks
Reply With Quote
Sponsored Links
  #12  
Old 11th October 2011, 17:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

You mean client id by client email? There is no such function available yet, for a full list of functions, see the new api docs that are part of ispconfig 3.0.4. Users in ispconfig dont have a email address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 11th October 2011, 17:11
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

No, I mean this one:

function sites_web_domain_add($session_id, $client_id, $params, $readonly = false)

furthermore there are no $params description. Have you a manual or something that can help me?

thanks
Reply With Quote
  #14  
Old 11th October 2011, 17:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

The client_id is the same in all functions, it is the unique ID that identifies a client and has to be used in all functions. There is a function to get the client_id by sys_userid of a record. All functions are described in detail in the new api docs.

Quote:
furthermore there are no $params description. Have you a manual or something that can help me?
There is a full params description in the api documentation and also a working example function for each api call. Download the 3.0.4 beta and take a look in the remote_client folder or get the latest svn release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 11th October 2011, 17:49
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Where is the api documentation?
Reply With Quote
  #16  
Old 11th October 2011, 18:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

Have you downloaded 3.0.4 beta and looked at the remoting_client folder as I suggested? There are just two subfolders inside that folder and one is named API-docs and there you find the api docs.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 11th October 2011, 18:39
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Thanks Till I have found it!

Which is the mail method to get all the client's email accounts? I don't see it.
Reply With Quote
  #18  
Old 11th October 2011, 18:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

All functions that are currently available in the remote API are listed in the api docs. If a function is not listed there, then it does not exist.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #19  
Old 11th October 2011, 18:46
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Ok. So there is no way to show the list of the account email addresses of a particular user starting by your API.
I mean that there is no way to start from a common field like the username and get all the email accounts in order to show all the accounts in a list.

Last edited by vaio1; 11th October 2011 at 18:52.
Reply With Quote
  #20  
Old 11th October 2011, 18:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
 
Default

The API ihas been developed mainly for adding records to ispconfig, e.g. during the order process. If you need additional functions, feel free to extend it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Cannot Receive Email - Smtp Timed Out newbielinx Installation/Configuration 4 26th September 2011 18:14
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu General 58 16th April 2010 13:24
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 10:21
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
email forwarding locally consumes all resources rdells General 20 1st May 2006 20:43


All times are GMT +2. The time now is 11:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.