How do I push contact form data to SugarCRM? (currently using Sprout Forms) SugarCRM has a REST API, and Craft boasts its ability to integrate with almost anything that has an API; however, I am working on a site that uses Sprout Forms, which doesn't mention anything in their docs about integration.

Is there a way, in addition to emails and saved entries, for Craft to push Sprout Form data to SugarCRM?

If this isn't possible, if there another contact form solution that will integrate this way?
I was able to accomplish this by grabbing Craft Business Logic, stripping out most of the examples, and simply listening for a form submission:

craft()-&gt;on('sproutForms.onSaveEntry', function (Event $event)
{
    $entry = $event-&gt;params['entry'];
    $content = $entry-&gt;getContent()-&gt;getAttributes();

    // Let's not pass fields we don't need
    $fields = array();
    $ignore = array('id', 'slug', 'title', 'handle', 'locale', 'element', 'elementId');

    foreach ($content as $field =&gt; $value)
    {
        if(!in_array($field, $ignore))
        {
            $fields[$field] = $value;
        }
    }

    $fields = http_build_query($fields);
    $ch = curl_init('https://url-to-sugar.crm/index.php?entryPoint=WebToLeadCapture');
    curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);

    $response = curl_exec($ch);
    curl_close($ch);
}


I just created an init function in the plugin and added this there. I didn't need to use an API because the data is only flowing in one direction. I just used curl to push the data.