SpreadWebServcie.UploadContactListFile Method

 

上傳聯系人數據文件.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵箱.

loginPassword

String

Spread賬號的登錄密碼或者API Key.

fileType

String

上傳數據文件類型包括".xls", ".csv", ".xlsx".

myFileStream

byte()

上傳數據文件流(小于100M).

ContactListName

String

聯系人列表的名稱.

返回結果

如果上傳成功,返回string:Spread has received your data and will send you an email after upload complete. (RequestID:123456).

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

System.IO.FileStream fileStream = new System.IO.FileStream(@"D:\content1.xlsx", System.IO.FileMode.Open);

byte[] arrayByte = new byte[fileStream.Length];

fileStream.Read(arrayByte, 0, Convert.ToInt32(fileStream.Length));

fileStream.Close();

SpreadAPI.SpreadWebService MySpread = new SpreadAPI.SpreadWebService();

string result = MySpread.UploadContactListFile(loginEmail, loginPassword, ".xlsx", arrayByte, "test 20130204");

參見

SpreadWebService Class | Spread Web Service Namespace