Skip to main content
pp_patto
New Member
June 9, 2017
Question

Fortimail API script example

  • June 9, 2017
  • 1 reply
  • 5996 views

Hi, I'm developing a Python script for Fortimail. From your Fortimail REST API Reference, can you explain how can I utilize the API to login to Fortimail (Local Password-based authentication)? What should be the format to put username and password for login?

 

URL: http(s)://host_or_ip/api/v1/AdminLogin/

Method: POST

JSON: {“name”: “admin”, “password”: “****”}

 

For example, for proxy it could be like "https":"username:password@localhost:port_number"

 

If you can provide me an example of line of code in Python, I'd be much appreciated. 

 

Pat

    1 reply

    pp_patto
    pp_pattoAuthor
    New Member
    June 12, 2017

    No one? Please....

    Big_Abe
    New Member
    June 15, 2017

    Please post results if you find them out of this forum - I'd be very interested as well. 

    Thanks.