Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > XML API for list management

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

XML API for list management

[BARTHES, Stephane]
Stephane BARTHE…
Newbie
Newbie
Posts: 5
Stephane BARTHES - 09:34am, Mar 12 2021

Hello,

I am looking into using the XML API to update sime mailing lists from our ERP.

If I understood properly, the UpdateList service only adds or Remove users. So I need to request the list of users in the ML to remove them and add the ones that should be subscribed?
Am I wrong on this one already ?

In order to get the current list of users, I tried the GetListInfo service, but which ever get I give, the response only contains the list name.

My request is like this :
(?xml version="1.0" encoding="utf-8"?)
(MDaemon)
(API)
(Request version="20.0.0" echo="1" verbose="0")
(Operation)GetListInfo(/Operation)
(Parameters)
(Domain)domainName(/Domain)
(ListName)testu(/ListName)
(Get)SubScriptions(/Get)
(/Parameters)
(/Request)
(/API)
(/MDaemon)

Asnwers comes back as :
(?xml version="1.0" encoding="utf-8"?)
(MDaemon)
    (API)
        (Request version="20.0.0" echo="1" verbose="0")
            (Operation)
                GetListInfo
            (/Operation)
            (Parameters)
                (Domain)
                    domainName
                (/Domain)
                (ListName)
                    testu
                (/ListName)
                (Get)
                    Membership
                (/Get)
            (/Parameters)
        (/Request)
        (Response version="20.0" session="E310DC13" et="0.001028")
            (Status id="0" value="0x00000000" message="L’opération a réussi."/)
            (ServiceVersion)
                20.0.4.1
            (/ServiceVersion)
            (Result)
                (List id="testu@domainName"/)
            (/Result)
        (/Response)
    (/API)
(/MDaemon)

What I am doing wrong, in order to get the list of email addresses subscribed to the ML. I have tried some other Get orders (Detail, Expansion), all get me the same kind of results.

PS : it took me a while to figure out the proper URL to get a response from MDeamon. So I am using : https//myemailserverFQDNName:446/MdMgmtWS/API is the the proper way of formatting the URL ?

  (older msg: 6)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron Caruth - Mar 15, 2021 2:27 pm (#7 Total: 7)  

Guest User  

Photo of Author
Posts: 1

The XML-API does not recognize list administrators.  We will add it to our list to consider adding for future versions.

 

Thanks,

 

 

--
Arron Caruth
Vice President of Product Development
o: 817-601-3222    e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email
Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server

From: md-api@mdaemon.com [mailto:md-api@mdaemon.com] On Behalf Of lists-md-api@mdaemon.com (Stephane BARTHES)
Sent: Saturday, March 13, 2021 4:26 AM
To: md-api List Member <md-api@mdaemon.com>
Subject: [md-api] XML API for list management

 

Hello again (and thank you for the quick answers yesterday),

Now, that I know I can manage my list via the API, I tried to use a non administrative user account to run the API calls.

I have added the user as list administrator, and can manage the list from the web admin console. however, when trying with the API, I get a Domain does not exist or you do not have rights over it.

I have added given this user administrative right over the domain, and can now access the ML webservice.

Is there a setting somewhere to allow a non domain administrator to use the xml api to manage a list he/she has rights on?

Regards,


View/reply at XML API for list management

 
 
--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------
 
---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion.  MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.