我使用java-api-wrapper在Java中使用Java,并且我想访问资源而不进行身份验证。
在自述实例中,用法是:
ApiWrapper wrapper = new ApiWrapper("client_id", "client_secret", null, null);
// Do I HAVE to do this?
wrapper.login("username", "password");
HttpResponse resp = wrapper.get(Request.to("/me"));
HttpResponse resp =
wrapper.put(Request.to("/me")
.with("user[full_name]", "Che Flute",
"user[website]", "http://cheflute.com")
.withFile("user[avatar_data]", new File("flute.jpg")));我该怎么做?
发布于 2014-03-22 01:47:35
从github上的API看来,如果没有用户名或密码,就会引发异常。因此,我认为如果没有身份验证,您就不能使用API。
https://stackoverflow.com/questions/22572339
复制相似问题