我正在尝试使用 githubapi 来获取剩余的请求,但 client.getRemainingrequests 返回 -1。我在下面发布我的代码
UserService userService = new UserService();
GitHubClient client = new GitHubClient();
client = userService.getClient().setCredentials("#######@gmail.com", "#####");;
System.out.println("remaining requests:"+client.getRequestLimit());