Assuming that you are using their REST Api @ http://developers.hubspot.com/docs/methods/contacts/create_contact
You could add your api post to app/design/frontend/base/default/template/checkout/success.phtml
(will only send info to crm for customer who places order from the frontend and not from admin)
You could also create a observer
In config.xml
<events>
<sales_order_place_after>
<observers>
<hubspot_create_customer_api>
<type>singleton</type>
<class>hubspotApi/observer</class>
<method>createCustomer</method>
</hubspot_create_customer_api>
</observers>
</sales_order_place_after>
In your observer.php
class MageIgniter_HubspotApi_Model_Observer
{
public function createCustomer($event)
{
//$_order = $event->getOrder();
//$_order->getCustomerFirstname();
print_r($_order->getBillingAddress()); //get customer billing info
print_r($_order->getBillingAddress()->getFirstname());
//make curl call to post info to api
//see http://mydons.com/using-curl-functions-in-magento-way/
}
}
To learn how to create an custom module with an observer