Beispiel #1
0
        public async Task Test_GetLsm()
        {
            var api     = new ReceptivitiClient(API_KEY, API_SECRET_KEY);
            var person1 = (Person)await api.CreatePerson(new CreatePersonRequest()
            {
                Handle = Guid.NewGuid().ToString(),
                Name   = "Test Person 1",
                Gender = Gender.Male,
                Tags   = new string[] { "tag1", "tag2" },
            });

            var person2 = (Person)await api.CreatePerson(new CreatePersonRequest()
            {
                Handle = Guid.NewGuid().ToString(),
                Name   = "Test Person 2",
                Gender = Gender.Male,
                Tags   = new string[] { "tag1", "tag2" },
            });

            var sample1 = await api.CreatePersonContent(person1.Id, new ContentRequest()
            {
                Source      = ContentSource.ProfessionalCorrespondence,
                Content     = "hello this is a test",
                RecipientId = person2.Id,
            });

            var sample2 = await api.CreatePersonContent(person2.Id, new ContentRequest()
            {
                Source      = ContentSource.ProfessionalCorrespondence,
                Content     = "hello this is a test",
                RecipientId = person1.Id,
            });

            person1 = await api.GetPerson(person1.Id);

            person2 = await api.GetPerson(person2.Id);

            var lsm = await api.GetLsmScore(person1.Id, person2.Id);
        }
Beispiel #2
0
 public async Task Test_GetPerson()
 {
     var api    = new ReceptivitiClient(API_KEY, API_SECRET_KEY);
     var person = await api.GetPerson("57489384955bdb0647153c5e");
 }