LOGON5 API Documentation

Use this information to integrate your custom solutions



API Name: Contact Us / Send A Message

Description: Use this API to connect your sites existing Contact Us or Messaging page to your LOGON5 management account.
The example page shows a contact page that uses this API to save information to
your LOGON5 account. The API also automatically triggers an email to your account email
so you are notified when you receive a Contact Us Inquiry.

API Parameters
Field Name Type Required Description
ID Guid Yes Unique Record ID
SiteID Guid Yes Your Site ID assigned by LOGON5
Subject_Line String Yes Message Subject
First_Name String Yes Contacts First Name
Last_Name String Yes Contacts Last Name
Email_Addr String Yes Contacts Email Address
Phone String Yes Contacts Phone Number
Memo String No The Message Body
Add_To_Mail_List Boolean Yes true=Add contact to your distribution list.
false= Do not add contact to your distribution list.

Example page: Contact Us Page

Example Page Code:

        <section>
    <div class="rt-container">
        <div class="col-rt-12">
            <div class="Scriptcontent">

                <div>

                    <div class="container">


                        <div class="contact-parent">
                            <div class="contact-child child1">
                                <p>
                                    <i class="fas fa-map-marker-alt"></i> Mailing Address <br />
                                    <span>
                                        2415 Washington Street
                                        <br />
                                        Hollywood, FL 33020
                                    </span>
                                </p>

                                <p>
                                    <i class="fas fa-phone-alt"></i> Let's Talk <br />
                                    <span> (954)243-8463</span>
                                </p>

                                <p>
                                    <i class=" far fa-envelope"></i> General Support <br />
                                    <span>tim.collins1970@gmail.com</span>
                                </p>
                            </div>

                            <div class="contact-child child2">

                                <div class="inside-contact">

                                    <h2>Contact Us</h2>
                                    <h3>
                                        <span id="confirm"></span>
                                    </h3>
                                    <form id="form" method="post">
                                        <p>First Name *</p>
                                        <input type="text" id="firstName" name="firstName" Required="required" />

                                        <p>Last Name *</p>
                                        <input type="text" id="lastName" name="lastName" Required="required" />

                                        <p>Email *</p>
                                        <input id="email" name="email" type="email" Required="required">

                                        <p>Phone * (format: 999-999-9999)</p>
                                        <input id="cellPhone" name="cellPhone" type="tel" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" Required="required">


                                        <p>Message *</p>
                                        <textarea id="memo" rows="4" cols="20" Required="required"></textarea>

                                        <input type="submit" id="submit" value="SEND">
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>


</section>
<br />
<br />
<br />



section Scripts
{
   
    <script type="text/javascript">
        
        var form = document.getElementById('form')

        form.addEventListener('submit', function (e) {
            e.preventDefault()
            var id = '{your Guid goes here}'
            var siteId = '{your assigned site id goes here}'
            var subject_Line = 'Aquatic Tribe Contact Us Requested'
            var first_Name = document.getElementById('firstName').value
            var last_Name = document.getElementById('lastName').value
            var email_addr = document.getElementById('email').value
            var phone = document.getElementById('cellPhone').value
            var memo = document.getElementById('memo').value
            var add_To_Mail_List = true;

            fetch("http://www.logon5.com/api/messages", {
                method: 'POST',
                body: JSON.stringify({
                    SiteID: siteId,
                    Subject_Line: subject_Line,
                    First_Name: first_Name,
                    Last_Name: last_Name,
                    Email_Addr: email_addr,
                    Phone: phone,
                    Memo: memo,
                    Add_To_Mail_List: add_To_Mail_List
                }),
                headers: {
                    "Content-Type": "application/json; charset=UTF-8"
                }
            })
                .then(function (response) {
                    return response.json()
                })
                .then(function (data) {
                    console.log(data)
                    var results = document.getElementById('confirm')
                    results.innerHTML = '<p></br></br>Message Sent Successfully.  We will contact you soon.</p>'
                })
        })
        

    </script>

    

Return Value: The API will return a status string.

Operations Performed: The API will
1. Add message to your LOGON5 account
2. Send notification to the message creator
3. Send notification to the LOGON5 account holder
4. Add contact to your distribution list if parameter is marked true




API Name: Events Listing (without photo)

Description: Use this API to retrieve current information on all active events.

API Parameters
Field Name Type Required Description
This API does not require any parameters to be sent to it.

API URL: http://www.logon5.com/api/events


Operations Performed: The API will
Return a JASON result containing information on every event currently available.




API Name: Events Listing for a Specific Site

Description: Use this API to retrieve current information on all active events within a given date range for a particular siteID.
This also returns the main photo for the event(s)

API Parameters
Field Name Type Required Description
SiteID Guid YES This is the Guid of the site you want to retrieve Event information.
If you do not know the siteID, contact its administrator.
Start Date String YES Starting Date Range of Events you want to retrieve.
End Date String YES Ending Date Range of Events you want to retrieve.
Photo Indicator String Optional Use an X for this value if you want the event photo returned along with the information.

API URLs: http://www.logon5.com/api/events/303E605B-A6E3-41F9-12C3-08D8D49583C8/02012022/06012022 http://www.logon5.com/api/events/303E605B-A6E3-41F9-12C3-08D8D49583C8/02012022/06012022/x


Operations Performed: The API will
Return a JASON result containing information on every event currently available
for the SiteID and Date Range selected.
If you use the optional X parameter, the Event Photo will also be returned.