문제

I am using java-api-wrapper to use the SoundCloud API in Java, and I want to access resources without authenticating.

In the readme examples, the usage is:

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")));

How can I do this?

도움이 되었습니까?

해결책

Soundcloud relies on tokens that are produced from logging in to fulfill your requests. Your client will be useless without one.

다른 팁

From the API doc on github it looks like there is an exception thrown when there is no username or password. So I don't think you can use the API without authentication.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top