Array
(
    [CONTACT_ID] => 120160945
    [SALUTATION] => 
    [FIRST_NAME] => s
    [LAST_NAME] => Ordorica
    [BACKGROUND] => ORDER #8837 done
    [IMAGE_URL] => https://s3.amazonaws.com/insightly.userfiles/469287/IGFROF/906e9b6d-697a-40d0-9d3c-fd4af76372bf.jpeg
    [DEFAULT_LINKED_ORGANISATION] => 
    [OWNER_USER_ID] => 818308
    [DATE_CREATED_UTC] => 2015-05-11 16:44:07
    [DATE_UPDATED_UTC] => 2017-05-15 04:55:02
    [VISIBLE_TO] => EVERYONE
    [VISIBLE_TEAM_ID] => 
    [VISIBLE_USER_IDS] => 
    [CUSTOMFIELDS] => Array
        (
            [0] => Array
                (
                    [CUSTOM_FIELD_ID] => CONTACT_FIELD_2
                    [FIELD_VALUE] => Converted
                )

        )

    [ADDRESSES] => 
    [CONTACTINFOS] => Array
        (
            [0] => Array
                (
                    [CONTACT_INFO_ID] => 40120160945
                    [TYPE] => PHONE
                    [SUBTYPE] => 
                    [LABEL] => WORK
                    [DETAIL] => 9492329797
                )

            [1] => Array
                (
                    [CONTACT_INFO_ID] => 100120160945
                    [TYPE] => EMAIL
                    [SUBTYPE] => 
                    [LABEL] => WORK
                    [DETAIL] => salvadorordorica@gmail.com
                )

        )

    [DATES] => Array
        (
        )

    [TAGS] => Array
        (
        )

    [LINKS] => Array
        (
        )

    [CONTACTLINKS] => Array
        (
        )

    [CAN_EDIT] => 1
    [CAN_DELETE] => 1
    [SOCIAL_LINKEDIN] => https://www.linkedin.com/in/salvadorordorica
    [SOCIAL_FACEBOOK] => https://www.facebook.com/salvadorordorica
    [SOCIAL_TWITTER] => http://twitter.com/salvadorrrr
    [ASSISTANT_NAME] => 
)
Array
(
    [FIRST_NAME] => 
    [LAST_NAME] => 
    [CUSTOMFIELDS] => Array
        (
            [0] => Array
                (
                    [CUSTOM_FIELD_ID] => CONTACT_FIELD_2
                    [FIELD_VALUE] => Converted
                )

        )

    [CONTACTINFOS] => Array
        (
            [0] => Array
                (
                    [TYPE] => EMAIL
                    [DETAIL] => 
                )

            [1] => Array
                (
                    [TYPE] => PHONE
                    [DETAIL] => 
                )

        )

)

Fatal error: Uncaught exception 'Exception' with message 'Bad HTTP status code: 400' in /home/tsgllc/public_html/wp-content/themes/translations/insightly.php:1534 Stack trace: #0 /home/tsgllc/public_html/wp-content/themes/translations/insightly.php(1547): InsightlyRequest->asString() #1 /home/tsgllc/public_html/wp-content/themes/translations/insightly.php(235): InsightlyRequest->asJSON() #2 /home/tsgllc/public_html/wp-content/themes/translations/page-templates/test.php(22): Insightly->addContact(Array) #3 /home/tsgllc/public_html/wp-includes/template-loader.php(74): include('/home/tsgllc/pu...') #4 /home/tsgllc/public_html/wp-blog-header.php(19): require_once('/home/tsgllc/pu...') #5 /home/tsgllc/public_html/index.php(17): require('/home/tsgllc/pu...') #6 {main} thrown in /home/tsgllc/public_html/wp-content/themes/translations/insightly.php on line 1534