Importing Content and Contacts
Content and Contacts can be imported to Brick River from any correctly formatted .csv (comma separated values) file.
The process of defining Import settings and uploading import files is documented fully in the Brick River User's Guide - here.
Once an Import document has been saved in Brick River it is possible to automate the import of Content and Contacts records using any tool that can POST or PUT a .cvs file to the designated location on the Brick River server.
An example below describes using cURL to perform this task.
When an Import Definition is saved in Brick River a URL is created to point to the folder that will receive the import file. Whenever a .csv file is posted to this location it is immediately processed using settings stored in the Import Definition document.
cURL is a command line utility used to transfer files using a variety of protocols, including HTTP.
The format for an import is:
curl -k -T [filename.csv] https://[yourname]-data.brtapp.com/import/[import ID]/[filename.csv]
Using the data syncing url from the TestImport definition above, and an import file 'import.csv', the command would be:
curl -k -T import.csv https://lab-data.brtapp.com/import/7d4e34c6017f4c95914d0abb3637d1b9/import.csv
curl -k -H "X-Test:yes" -H "Content-Type:text/csv" -T [filename.csv] https://[yourname]-data.brtapp.com/import/[import ID]/[filename.csv]