Example #1
0
        public JObject GetGroup()
        {
            var client = new Baidu.Aip.Face.Face(API_KEY, SECRET_KEY);

            client.Timeout = 60000;  // 修改超时时间

            var groups = client.GroupGetlist();

            return(groups);
        }
        public static void GetGrouplist()
        {
            var client = new Baidu.Aip.Face.Face(API_KEY, SECRET_KEY);

            client.Timeout = 60000;  // 修改超时时间
            // 调用组列表查询,可能会抛出网络等异常,请使用try/catch捕获
            var result = client.GroupGetlist();

            Console.WriteLine(result);
        }
Example #3
0
 public static BaseResponse <GetGroupsResult> GetGroups(GetActionOption option = null)
 {
     return(Execute <GetGroupsResult>(client.GroupGetlist(option?.Options)));
 }