Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > Mdaemon API Access via Postman

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

Mdaemon API Access via Postman

[Mclaughlin, John]
John Mclaughlin
Newbie
Newbie
Posts: 7
John Mclaughlin - 02:28pm, Mar 6 2020

I am looking to access the XML api using Postman or SoapUI and need a clear understanding of how to pass the auth credentials.

410 A login request contained an invalid logon type value.

currently I am passing Logon and password as additonal header parameters.

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Keith Personett (apparently) - Mar 6, 2020 2:48 pm (#1 Total: 7)  

via email  

Photo of Author
Keith Personett
Newbie
Newbie
Posts: 76

The Xml Api supports Basic Authentication…

 

objHttp.setRequestHeader("Authorization", "Basic " + Base64.encode("charles.xavier@x-men.int:Password") );

 

Keith Personett

Senior Software Developer, Cerebro Calibration Specialist, Agent of S.H.I.E.LD., Helicarrier Systems Analyst

MDaemon Technologies http://www.mdaemon.com/ or on Facebook

Sent using Outlook 2013 via ActiveSync Services for MDaemon Messaging Server.

I 16 1018

"You get hurt, hurt 'em back. You get killed... walk it off!"

                - Steve Rogers/Captain America

 

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

Arron Caruth - Mar 6, 2020 3:45 pm (#2 Total: 7)  

Guest User  

Photo of Author
Posts: 1

Hi John,

 

There is no need to manually add header parameters for authentication.  On the Authorization tab in Postman select Basic as the type of authentication to use, enter your username, enter your password, and Postman will create the Authorization header for you.

 

 

--
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 John Mclaughlin
Sent: Friday, March 6, 2020 1:28 PM
To: md-api List Member <md-api@mdaemon.com>
Subject: [md-api] Mdaemon API Access via Postman

 

I am looking to access the XML api using Postman or SoapUI and need a clear understanding of how to pass the auth credentials.

410 A login request contained an invalid logon type value.

currently I am passing Logon and password as additonal header parameters.


View/reply at Mdaemon API Access via Postman

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

John Mclaughlin - Mar 7, 2020 11:43 am (#3 Total: 7)  

 

Photo of Author
John Mclaughlin
Newbie
Newbie
Posts: 7
thanks everyone I am able to authenticate now.

John Mclaughlin - Mar 7, 2020 11:59 am (#4 Total: 7)  

 

Photo of Author
John Mclaughlin
Newbie
Newbie
Posts: 7
I have the documentation returning when posting the following XML.

<MDaemon>
<API>
<Request verbose="0" echo="1" version="19.0.0">
<Operation>GetDomainList</Operation>
</Request>
</API>
</MDaemon>

Has anyone created any postman examples?

I found a post from march 2019 providing something but I could not find a link.

any help would be great.

[Last Editor: John Mclaughlin, Mar 7, 2020 12:08 pm. Total Edits: 1]

Replies to this message
  • John Mclaughlin (Mar 7, 2020 4:00 pm)


  • John Mclaughlin - Mar 7, 2020 4:00 pm (#5 Total: 7)  

     

    Photo of Author
    John Mclaughlin
    Newbie
    Newbie
    Posts: 7
    Replying to: John Mclaughlin (Mar 7, 2020 11:59 am)
    I have the documentation returning when posting the following XML. GetDomainList Has anyone created...

    All good now, I must remind myself to slow down.

    Keith Personett (apparently) - Mar 8, 2020 10:02 am (#6 Total: 7)  

    via email  

    Photo of Author
    Keith Personett
    Newbie
    Newbie
    Posts: 76

    GET requests to the API port return the documentation. Make sure you are using a POST method.

     

    I’ve never used Postman, in fact, I’ve never even seen it. I generally just write C/C++, Jscript, and a little PowerShell to access the API and the latter two to write the samples I provide in the help portal.

     

    That is why my response on your Authentication question was how I personally construct the Authorization header, using a Base64 object I have for Jscript. By constructing the header manually, I avoid the initial un-authenticated attempt that the http request objects make.

     

    Arron, who provided the Auth tip for Postman in an earlier response to your question, uses it to access the API quite a bit.

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

    Arron Caruth - Mar 9, 2020 7:26 am (#7 Total: 7)  

    Guest User  

    Photo of Author
    Posts: 1

    Hi John,

     

    Examples in postman will just be the XML request you are sending. There are a number of examples, include the response you receive back, in the \MDaemon\Docs\API\XML API\Samples directory.

     

    If you have something specific that you are having problems getting to work, please post the XML you are sending along with a description of what you are trying to accomplish and we would be glad to help you figure it out.

     

    --
    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 John Mclaughlin
    Sent: Saturday, March 7, 2020 11:00 AM
    To: md-api List Member <md-api@mdaemon.com>
    Subject: [md-api] Mdaemon API Access via Postman

     

    I have the documentation returning when posting the following XML.

    Has anyone created any postman examples?

    I found a post from march 2019 providing something but I could not find a link.

    any help would be great.


    View/reply at Mdaemon API Access via Postman

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