如何在sailthru中获取个人资料ID和相关数据?

时间:2015-04-20 06:06:51

标签: .net sem

我需要使用.NET API从Sailthru提取数据以获取以下列:

profile_id,
email,
hash,
send_time,
open_time,
click_time,
first_ten_clicks,
first_ten_clicks_time,
purchase_time,
device

我已经浏览过该网站也尝试了一些参数,但没有任何帮助来明智地获取数据。

1 个答案:

答案 0 :(得分:0)

此代码片段可以帮助您:

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