de.sonallux.spotify.api.apis.CategoriesApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-web-api-java Show documentation
Show all versions of spotify-web-api-java Show documentation
A Java wrapper for Spotify's Web API
The newest version!
package de.sonallux.spotify.api.apis;
import de.sonallux.spotify.api.http.ApiClient;
import de.sonallux.spotify.api.apis.categories.*;
import lombok.RequiredArgsConstructor;
/**
* Categories
*/
@RequiredArgsConstructor
public class CategoriesApi {
private final ApiClient apiClient;
/**
* Get Several Browse Categories
* Get a list of categories used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
* @return a {@link GetCategoriesRequest} object to build and execute the request
*/
public GetCategoriesRequest getCategories() {
return new GetCategoriesRequest(apiClient);
}
/**
* Get Single Browse Category
* Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
* @param categoryId The Spotify category ID for the category.
* @return a {@link GetCategoryRequest} object to build and execute the request
*/
public GetCategoryRequest getCategory(String categoryId) {
return new GetCategoryRequest(apiClient, categoryId);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy