| what is flowmail |
| how it works |
| software features |
| documentation |
| pricing |
| online demo |
| inquiries |
| get verified |
FlowMail APIAs a new feature added to FlowMail 2.0 there is a publicly-accessible XML-based API for web developers to query and update flowmail. The following is a technical description of this API that may be helpful for any developer who wishes to update FlowMail from a website or client application. OverviewThe HTTP address of the API is: http://www.flowmail.net/interface.asp Any programming framework / language will be able to interact with this interface as long as it supports POST/GET requests and XML parsing. For example, in javascript, the XMLHttpRequest object (or the Microsoft.XMLHTTP object) is capable of sending and recieving HTTP data from a web-page. (*see notes below for JavaScript security restrictions) An example HTTP GET Request that could be sent to the FlowMail API is as follows: http://www.flowmail.net/interface.asp?xml=[place your xml code here]
Example XML code to create a new Address List would look like this:
Example XML Code to insert contacts into a specific Address List would look like this:
AuthenticationThere are four fields required for authentication:
FlowMail Username is your regular username that you login to FlowMail with normally. Each request you send must have a UNIQUE Request ID. This ID can be any string of numbers or letters of your choosing but, again, it must be globally unique. This ensures the same request cannot be submitted more than once. The Date/Time of the request must be a string containing the current UTC (GMT) date and time. This can be in any of several acceptable formats including: MM/DD/YYYY HH:MM:SS in 24-hour time or M/D/YYYY H:M:S PM. Remember this MUST be the current UTC date/time. The MD5 Hash must be a 32-character lowercase hexidecimal string that is calculated from concatinating the Request ID string, the Date/Time string, and the MD5 hash of your FlowMail password. Example: MD5(strRequestID + strDateTime + MD5(strPassword)) This means that the hash function is called TWICE. Once to hash the user's password and once again to hash the entire string. If you do not understand what an MD5 hash is, or do not know how to calculate this in your programming language, look it up on the internet. An MD5 hash algorithm/function is available for every major programming language and built into most database interfaces. CommandsThe commands currently available in the FlowMail API are:
The address_list_create command is the simplest. It takes only one parameter: name The contact_insert command takes one XML attribute: authcode="012345" which contains the AuthCode of the address list into which you wish to insert the contact(s) and it also takes one or more contacts as parameter(s) which are formatted in the following way: <contact> Each Command Returns a result and/or an error in XML format as follows: <flowmail> -OR- <flowmail> The address_list_query command takes no parameters, but returns an XML DataSet in the following format: <flowmail> There will likely be more functionality added to the FlowMail API in the future, but the format for sending commands and receiving results should stay the same. Misc Notes
|