Exemple #1
0
        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}", "");
 }
Exemple #3
0
        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));
        }
Exemple #4
0
        public AzureService UpdateServiceConfiguration(AzureService config)
        {
            var response = RepositoryClient.SendJsonPut(ApiKeys.Personalizer, $"{ApiKeys.PersonalizerEndpoint}configurations/service", JsonConvert.SerializeObject(config));

            return(JsonConvert.DeserializeObject <AzureService>(response));
        }