public virtual void CreateFaceList(string faceListId, string name, string userData) { var response = RepositoryClient.SendJsonPut(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}facelists/{faceListId}", JsonConvert.SerializeObject(new UserDataRequest { Name = name, UserData = userData })); return; }
public virtual void PublishKnowledgeBase(Guid knowledgeBaseId) { RepositoryClient.SendJsonPut(ApiKeys.QnA, $"{ApiKeys.QnAEndpoint}{knowledgeBaseId}", ""); }
public virtual ListDetails UpdateImageListDetails(string listId, ListDetails details) { var response = RepositoryClient.SendJsonPut(ApiKeys.ContentModerator, $"{ApiKeys.ContentModeratorEndpoint}{listUrl}{listId}", JsonConvert.SerializeObject(details)); return(JsonConvert.DeserializeObject <ListDetails>(response)); }
public AzureService UpdateServiceConfiguration(AzureService config) { var response = RepositoryClient.SendJsonPut(ApiKeys.Personalizer, $"{ApiKeys.PersonalizerEndpoint}configurations/service", JsonConvert.SerializeObject(config)); return(JsonConvert.DeserializeObject <AzureService>(response)); }