Automated List Upload

Description

The Automated List Upload interface is used to both CREATE , REPLACE and APPEND lists within the platform. This is a two-part-request, with the META request followed by the DATA request Resource Location .../interface/list_upload_meta.php .../interface/list_upload_data.php Base URL https://response.pure360.com/ Custom Version http://{~customDomain~} HTTP Method POST

Data Parameters : List Upload Meta

key value usage
profileName
"profileName"
Profile name to manipulate the list in
listName
"Master+List"
List name either new, or existing. Unique.
languageCode
"en_GB.ISO8859-15"
Language of the list must be enabled on the profile e.g. en_GB.ISO8859-15 (optional with profile default assumed)
transactionType
"CREATE"
CREATE | APPEND | REPLACE
emailCol
0
During a CREATE / REPLACE this value referes to the email column index in the CSV file (optional if mobileCol provided)
During an APPEND the email address MUST be in column 0 of the CSV file
mobileCol
1
mobile column index (optional if emailCol provided)
responseType
"EMAIL"
EMAIL | HTTP | REST : How to send the list upload completion notification
responseUri
"test@test.com"
The address to send the notification to, either email address or URI.
If IGNORE is given as the responseType it is recommended to use a string value such as 'FALSE', 'NULL' or 'NONE' as the value for maintainability purposes
COL_field1
2
During a CREATE / REPLACE the field1 is the name to give the custom data field in the contact list, the value is the index of this field both in the CSV and the custom data field index in the contact list.
During an APPEND the field1 refers to the existing custom data field name in the contact list, and the value refers to the custom data field index in the contact list. Therefore the field order in the CSV file uploaded (during the data request) MUST be in the order for the APPEND that they were during the CREATE.
token
"d82c69cd7a21a2c569db960b528d7ae53e6b45748fe2237a4f146fcd80a4fd56"
Security Token authentication (enabled within the platform via my account -> edit details -> enable -> generate)(optional)

Response

type code content : string
Success 200 OK : Integer (Where the integer is the transactionID used in the data upload
Error 200 Error : Error Message

Data Parameters : List Upload Data

key value usage
profileName
"profileName"
Profile name to manipulate the list in
transactionId
454565
The transactionId returned from list_upload_meta
file
"@//usr/FilePath/file.csv"
valid CSV file (list) to upload

Response

type code content : string
Success 200 OK : Integer (Where the integer is the transactionID used in the data upload
Error 200 Error : Error Message

Example - Curl Sending Meta Data

curl 
--data "profileName=TestProfile&listName=NewList&transactionType=CREATE&emailCol=0&responseType=EMAIL&responseUri=test@pure360.com&COL_first_name=1" 'https://response.pure360.com/interface/list_upload_meta.php'
Send a request to the list upload meta processor, in this case adding the NewList to the profile TestProfile, and it’s being CREATEd, in the first column of the CSV that will get sent across is the email address and in the next column is the first name, when the list uploads send a notification EMAIL to [test@pure360.com](mailto:test@pure360.com) If this has processed correctly the response should be OK : XXXX where XXXX is a transactionId.

Example - Curl Sending List Data

curl 
--form "profileName=TestProfile"
--form "transactionId=XXXX"
--form "file=@//usr/FilePath/file.csv"
'https://response.pure360.com/interface/list_upload_data.php'
Send a request to the list upload data processor, in this case sending the file in usr/FilePath/file.csv to profile TestProfile and reference the container for this as the XXXX transaction ID returned from the meta request.