This function is designed to allow upload of a contact list directly into CustomerGauge’s Address Book. Emails will not be sent out automatically. It will need to be sent manually using the Email Engine from inside of the CustomerGauge application.


IMPORTANT: The File Size Limit for API's is 2MB.


Resource Information

Response formats
JSON (default), XML
HTTP Method
POST
Response family
stream
Header
Authorization: api_key XXXXX


Resource URL

Production Server:https://api.customergauge.com/v4.1/stream/contact.json


POST Data

Post XML data based on upload mapping.


POST Data Example Values


<?xml version=’1.0′ encoding=’UTF-8′?>
<records>
<record>
<Email>lee_klameth@directness.net</Email>
<FirstName>Lee</FirstName>
<LastName>Klameth</LastName>
</record>
</records>




Example Request

cURL Example
curl -X POST “https://api.customergauge.com/v4.1/stream/contact.json?” -d “<records><record><Email>lee_klameth@directness.net</Email><FirstName>Lee</FirstName><LastName>Klameth</LastName></record></records>”


Example Result


Data states if successful or not. Message reported on successful operation:




1




{"Data":true}




Message reported on failed operation:




1




{"Error":{"No data provided","Code":400700}}