public virtual async Task CreateFaceListAsync(string faceListId, string name, string userData) { var response = await RepositoryClient.SendJsonPutAsync(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}facelists/{faceListId}", JsonConvert.SerializeObject(new UserDataRequest { Name = name, UserData = userData })); return; }
public virtual async Task PublishKnowledgeBaseAsync(Guid knowledgeBaseId) { await RepositoryClient.SendJsonPutAsync(ApiKeys.QnA, $"{ApiKeys.QnAEndpoint}{knowledgeBaseId}", ""); }
public virtual async Task <ListDetails> UpdateImageListDetailsAsync(string listId, ListDetails details) { var response = await RepositoryClient.SendJsonPutAsync(ApiKeys.ContentModerator, $"{ApiKeys.ContentModeratorEndpoint}{listUrl}{listId}", JsonConvert.SerializeObject(details)); return(JsonConvert.DeserializeObject <ListDetails>(response)); }