【发布时间】:2014-04-29 14:55:37
【问题描述】:
我正在使用java-api-wrapper 在 Java 中使用 SoundCloud API,我想在不进行身份验证的情况下访问资源。
在readme示例中,用法是:
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")));
我该怎么做?
【问题讨论】:
-
你试过没有那个声明吗?
标签: java api authentication soundcloud