Skip to content

Instantly share code, notes, and snippets.

View bomortensen's full-sized avatar

Bo Mortensen bomortensen

View GitHub Profile
var content = ApplicationContext.Services.ContentService.GetById(1051);
var data = new GridRowCollection();
string[] nodeIds = {"1051", "1052"};
foreach (string companyNodeId in nodeIds)
{
Node node = uQuery.GetNode(companyNodeId);
var row = new GridRow();
var companyCell = new GridCell() { DataType = 1034, Alias = "nodePicker", Name = node.Name, Value = node.Id.ToString()};
var permissionCell = new GridCell { DataType = -42, Alias = "permission", Name = "Permission", Value = "7" };
row.Add(companyCell);
ApsisNewsletterProv3API service = new ApsisNewsletterProv3API();
// Register subscriber
long result = service.InsertSubscriber(apsisUsername, apsisPassword, email, email, "HTML", "0045", "12345678", apsisListId);