public async Task <HttpResponseMessage> Create(string personGroupId) { var personGroup = new { Name = personGroupId, UserData = "Sample Data" }; var content = _httpHelper.CreateHttpContent(personGroup, "application/json"); string uri = _uriBase + $"persongroups/{ personGroupId }"; var client = _httpHelper.GetHttpClient(); return(await client.PutAsync(uri, content)); }
public async Task <HttpResponseMessage> Identify(List <string> faceIds, string personGroupId) { var requestBody = new { PersonGroupID = personGroupId, FaceIds = faceIds }; var content = _httpHelper.CreateHttpContent(requestBody, "application/json"); string uri = _uriBase + "identify"; var client = _httpHelper.GetHttpClient(); return(await client.PostAsync(uri, content)); }