oapi-sdk-java icon indicating copy to clipboard operation
oapi-sdk-java copied to clipboard

搜索部门时,报错:user access token is empty

Open luleipo opened this issue 3 years ago • 3 comments

代码如下: public static DepartmentSearchResult searchDepartments(String query) throws Exception { ContactService contactService = new ContactService(config); DepartmentSearchReqBody searchReqBody = new DepartmentSearchReqBody(); searchReqBody.setQuery(query); Response<DepartmentSearchResult> response = contactService.getDepartments().search(searchReqBody).execute(); System.out.println(Jsons.DEFAULT_GSON.toJson(response)); if (response.getCode() == 0) { return response.getData(); } return null; } 已经执行过testAccessToken方法。 执行searchDepartments报错:user access token is empty

luleipo avatar Aug 04 '22 08:08 luleipo

老SDK已经不维护了,欢迎加群使用新版SDK image

zhailuxubyte avatar Aug 04 '22 08:08 zhailuxubyte

链接失效了

wangshuxuan avatar Aug 30 '22 03:08 wangshuxuan

链接失效了

image

zhailuxubyte avatar Aug 30 '22 03:08 zhailuxubyte