public static void CreateActivity(SqlString url, SqlString username, SqlString password, SqlString token, SqlDateTime createdDT, SqlBoolean externalMessage, SqlString employeeId, SqlString actUrl, SqlString actTitle, SqlString actBody) { IChatterSoapService service = new ChatterSoapService(url.Value); service.AllowUntrustedConnection(); service.Login(username.Value, password.Value, token.Value); service.CreateProfileActivity(employeeId.IsNull ? null : employeeId.Value, actUrl.IsNull ? null : actUrl.Value, actTitle.IsNull ? null : actTitle.Value, actBody.IsNull ? null : actBody.Value, createdDT.Value); if (externalMessage.IsTrue) { service.CreateExternalMessage(actUrl.IsNull ? null : actUrl.Value, actTitle.IsNull ? null : actTitle.Value, actBody.IsNull ? null : actBody.Value, employeeId.IsNull ? null : employeeId.Value); } }
public void TestCreateProfileActivity() { IChatterSoapService service = new ChatterService.ChatterSoapService(_url); service.Login(_username, _password, _token); //DateTime dt = new DateTime(2012, 7, 29, 14, 11, 12); DateTime dt = DateTime.Now; service.CreateProfileActivity("025693078", null, "Edited their narrative", "Test Activity from 'TestCreateReseachProfile':" + dt, dt); //service.CreateProfileActivity("025693078", "Null body test", null, dt); //service.CreateProfileActivity(_employeeId, "Edited their narrative", "Test Activity from 'TestCreateReseachProfile':" + dt, dt); }
public void TestCreateProfileActivity() { IChatterSoapService service = new ChatterService.ChatterSoapService(_url); service.Login(_username, _password, _token); //DateTime dt = new DateTime(2012, 7, 29, 14, 11, 12); DateTime dt = DateTime.Now; service.CreateProfileActivity("025693078", null, "Edited their narrative", "Test Activity from 'TestCreateReseachProfile':" + dt, dt); //service.CreateProfileActivity("025693078", "Null body test", null, dt); //service.CreateProfileActivity(_employeeId, "Edited their narrative", "Test Activity from 'TestCreateReseachProfile':" + dt, dt); }