我需要使用 .NET API 从Sailthru中提取数据以获取以下列:
profile_id,
email,
hash,
send_time,
open_time,
click_time,
first_ten_clicks,
first_ten_clicks_time,
purchase_time,
device
我浏览了该网站,也尝试了一些参数,但没有任何帮助获得明智的数据配置文件。
此代码片段应该可以帮助您:
UserRequest request = new UserRequest();
request.Id = theUsersEmail;
request.Key = theUsersEmail;
Hashtable fieldsHashtable = new Hashtable();
fieldsHashtable.Add("vars", 1);
request.Fields = fieldsHashtable;
SailthruResponse response = YourSailthruClientInstance.GetUser(request);
response.HashtableResponse; // This is the keyvalue table where your data is stored