|
64 | 64 | * Example usage: |
65 | 65 | * <code> |
66 | 66 | * <pre> |
67 | | - * ApiWrapper wrapper = new ApiWrapper("client_id", "client_secret", null, null, CloudAPI.Env.SANDBOX); |
| 67 | + * ApiWrapper wrapper = new ApiWrapper("client_id", "client_secret", null, null, Env.SANDBOX); |
68 | 68 | * wrapper.login("login", "password"); |
69 | 69 | * HttpResponse response = wrapper.get(Request.to("/tracks")); |
70 | 70 | * </pre> |
@@ -194,6 +194,8 @@ public URI getURI(Request request, boolean ssl) { |
194 | 194 |
|
195 | 195 | /** |
196 | 196 | * Request an OAuth2 token from SoundCloud |
| 197 | + * @param request the token request |
| 198 | + * @return the token |
197 | 199 | * @throws java.io.IOException network error |
198 | 200 | * @throws com.soundcloud.api.CloudAPI.InvalidTokenException unauthorized |
199 | 201 | */ |
@@ -245,16 +247,14 @@ protected SSLSocketFactory getSSLSocketFactory() { |
245 | 247 |
|
246 | 248 | /** |
247 | 249 | * User-Agent to identify ourselves with - defaults to USER_AGENT |
248 | | - * |
249 | 250 | * @return the agent to use |
250 | 251 | * @see CloudAPI#USER_AGENT |
251 | 252 | */ |
252 | 253 | protected String getUserAgent() { |
253 | 254 | return USER_AGENT; |
254 | 255 | } |
255 | 256 |
|
256 | | - |
257 | | - /** The HttpClient instance used to make the calls */ |
| 257 | + /** @return The HttpClient instance used to make the calls */ |
258 | 258 | public HttpClient getHttpClient() { |
259 | 259 | if (httpClient == null) { |
260 | 260 | final HttpParams params = getParams(); |
@@ -372,6 +372,8 @@ public synchronized void addTokenStateListener(TokenStateListener listener) { |
372 | 372 |
|
373 | 373 | /** |
374 | 374 | * Execute an API request, adds the necessary headers. |
| 375 | + * @param req the HTTP request |
| 376 | + * @return the HTTP response |
375 | 377 | * @throws java.io.IOException network error etc. |
376 | 378 | */ |
377 | 379 | public HttpResponse execute(HttpRequest req) throws IOException { |
|
0 commit comments