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
  #1  
Old 9th November 2011, 15:45
edispah edispah is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retrieving data from remoting API without IDs

If I want to retrieve, for example, a mail user using the remoting API but I do not know its ID in the database is there a way I can get it?

I know that when I call mail_user_add it returns the new ID and that I can pass this when I call mail_user_get but without storing a list of these IDs myself I can't then access/update the mail users in the future. Also, even if I did store these IDs myself I wouldn't be able to access mail users that had been added separately through the ISPConfig front end.

What I need is a function similar to dns_zone_get_by_user which returns a list of zones and their IDs for a particular client. Does something similar exist for mail users?

It would be useful to have such functions for all of the different configuration elements, not just mail users.
Reply With Quote
Sponsored Links
  #2  
Old 9th November 2011, 15:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

I've planned to add such functions to the API in the future.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th November 2011, 16:31
edispah edispah is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks very much for your swift response.

Great work on the API as well - it is looking really good and I like the interface a lot. It is clean, easy to use and powerful.

Out of interest - is there an approximate time scale for these updates?
Reply With Quote
  #4  
Old 9th November 2011, 16:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Quote:
Out of interest - is there an approximate time scale for these updates?
I cant give you an estimate yet. But if you require some of these functions and are able to add them in the remoting.inc.php file, then it would be great if you could contribute them. The should be very similar to dns_zone_get_by_user, just that other table and field names are used in the query inside the function.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
api, remoting framework

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
Remoting API Documentation joecoder Developers' Forum 8 3rd December 2011 11:28
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 16:23
About Remoting Framework API mark0168 General 1 28th March 2008 15:08
Help with Bluetooth PAND josto HOWTO-Related Questions 1 7th August 2007 21:53
log files cruz Technical 3 15th May 2007 15:35


All times are GMT +2. The time now is 22:45.


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