Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Upload csv files programmatic c#

$
0
0

Hi @dor_hivert,

Service is called BulkuploadService, the action you'll want is Add().
I don't code in C# too often but should be something along the lines of:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Kaltura{
class CodeExample{
static void Main(string[] args){
KalturaConfiguration config = new KalturaConfiguration(partnerId);
config.ServiceUrl = "";
KalturaClient client = new KalturaClient(config);
int conversionProfileId = null;
File csvFileData = "/path/to/csv";
KalturaBulkUploadType bulkUploadType = KalturaBulkUploadType.CSV;
String uploadedBy = null;
String fileName = null;
Object result = client.BulkuploadService.Add(conversionProfileId, csvFileData, bulkUploadType, uploadedBy, fileName);
}
}
}

Here is a PHP script I wrote that accomplishes the same, as a reference point:


Viewing all articles
Browse latest Browse all 7410

Trending Articles