public class SDIApi.Artist
extends java.lang.Object
Constructor and Description |
---|
Artist() |
Modifier and Type | Method and Description |
---|---|
SDIGetArtistChartsRequest.Result |
getCharts(int page)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
SDIGetArtistChartsRequest.Result |
getCharts(int page,
int pageSize)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
SDIGetArtistChartsRequest.Result |
getCharts(int page,
int pageSize,
java.lang.String period,
java.lang.String toDate)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
SDIGetArtistDetailsRequest.Result |
getDetails(java.lang.String artistId)
Get the details for an artist
|
SDIGetArtistReleasesRequest.Result |
getReleases(java.lang.String artistId)
Get the releases (albums) for an artist
|
SDIGetArtistReleasesRequest.Result |
getReleases(java.lang.String artistId,
int page)
Get the releases (albums) for an artist
|
SDIGetArtistReleasesRequest.Result |
getReleases(java.lang.String artistId,
int page,
int pageSize)
Get the releases (albums) for an artist
|
SDIGetArtistReleasesRequest.Result |
getReleases(java.lang.String artistId,
int page,
int pageSize,
java.lang.String type,
java.lang.String streamable,
java.lang.String licensorId,
java.lang.String country,
java.lang.Integer imageSize)
Get the releases (albums) for an artist
|
SDIGetArtistTopTracksRequest.Result |
getTopTracks(java.lang.String artistId)
Get the top tracks for an artist
|
SDIGetArtistTopTracksRequest.Result |
getTopTracks(java.lang.String artistId,
int page)
Get the top tracks for an artist
|
SDIGetArtistTopTracksRequest.Result |
getTopTracks(java.lang.String artistId,
int page,
int pageSize)
Get the top tracks for an artist
|
SDIGetArtistTopTracksRequest.Result |
getTopTracks(java.lang.String artistId,
int page,
int pageSize,
java.lang.Boolean streamable,
java.lang.String licensorId,
java.lang.String country,
java.lang.Integer imageSize)
Get the top tracks for an artist
|
SDIArtistSearchRequest.Result |
search(java.lang.String query)
Search the 7Digital catalogue for artists
|
SDIArtistSearchRequest.Result |
search(java.lang.String query,
int page)
Search the 7Digital catalogue for artists
|
SDIArtistSearchRequest.Result |
search(java.lang.String query,
int page,
int pageSize)
Search the 7Digital catalogue for artists
|
SDIArtistSearchRequest.Result |
search(java.lang.String query,
int page,
int pageSize,
java.lang.String sort,
java.lang.String streamable,
java.lang.String licensorId,
java.lang.String country,
java.lang.Integer imageSize)
Search the 7Digital catalogue for artists
|
public SDIGetArtistTopTracksRequest.Result getTopTracks(java.lang.String artistId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- - the id of the artist for which to get the top tracksSDIGetArtistTopTracksRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistTopTracksRequest.Result getTopTracks(java.lang.String artistId, int page) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- - the id of the artist for which to get the top trackspage
- Page number of the result set. If not supplied, defaults to 1SDIGetArtistTopTracksRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistTopTracksRequest.Result getTopTracks(java.lang.String artistId, int page, int pageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- - the id of the artist for which to get the top trackspage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500SDIGetArtistTopTracksRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistTopTracksRequest.Result getTopTracks(java.lang.String artistId, int page, int pageSize, java.lang.Boolean streamable, java.lang.String licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- - the id of the artist for which to get the top trackspage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500streamable
- If provided search results will contain only artists that can/cannot be streamedlicensorId
- If provided search results will contain only artists from this licensor. A minus sign prefix excludes artists
from that licensor (e.g. -5)country
- 2 letter ISO country code of the country whose artists you would like to searchpage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500SDIGetArtistTopTracksRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistReleasesRequest.Result getReleases(java.lang.String artistId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- the id of the artist for which to get the releasesjava.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistReleasesRequest.Result getReleases(java.lang.String artistId, int page) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- the id of the artist for which to get the releases * @param context The application context.page
- Page number of the result set. If not supplied, defaults to 1java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistReleasesRequest.Result getReleases(java.lang.String artistId, int page, int pageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- the id of the artist for which to get the releases * @param context The application context.page
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistReleasesRequest.Result getReleases(java.lang.String artistId, int page, int pageSize, java.lang.String type, java.lang.String streamable, java.lang.String licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
artistId
- the id of the artist for which to get the releases * @param context The application context.type
- Releases can be of type album, single or video. If specified, results are filtered by release type.streamable
- If provided search results will contain only artists that can/cannot be streamedlicensorId
- If provided search results will contain only artists from this licensor. A minus sign prefix excludes artists
from that licensor (e.g. -5)country
- 2 letter ISO country code of the country whose artists you would like to searchpage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500imageSize
- The requested width of the image in pixelsjava.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIArtistSearchRequest.Result search(java.lang.String query) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
query
- The search query string.SDIArtistSearchRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIArtistSearchRequest.Result search(java.lang.String query, int page) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
query
- The search query string.page
- Page number of the result set. If not supplied, defaults to 1SDIArtistSearchRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIArtistSearchRequest.Result search(java.lang.String query, int page, int pageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
query
- The search query string.page
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500SDIArtistSearchRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIArtistSearchRequest.Result search(java.lang.String query, int page, int pageSize, java.lang.String sort, java.lang.String streamable, java.lang.String licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
query
- The search query string.sort
- Orders the returned results. Supplied as a string in the format: "{sortColumn} {sortOrder}", for example:
"popularity desc" will show most popular artists first regardless of search match score. Currently you can sort by name,
popularity and score. If no sort is supplied, the default is "score desc". If no order is supplied the default is
ascending.streamable
- If provided search results will contain only artists that can/cannot be streamedlicensorId
- If provided search results will contain only artists from this licensor. A minus sign prefix excludes artists
from that licensor (e.g. -5)country
- 2 letter ISO country code of the country whose artists you would like to searchpage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500imageSize
- The requested width of the image in pixelsSDIArtistSearchRequest.Result
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public SDIGetArtistDetailsRequest.Result getDetails(java.lang.String artistId) throws java.lang.Exception
artistId
- The id of the mArtist to retrieve details forjava.lang.Exception
public SDIGetArtistChartsRequest.Result getCharts(int page) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.security.SignatureException, java.io.IOException
page
- The page to retrieve (note: one-indexed).java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.security.SignatureException
java.io.IOException
public SDIGetArtistChartsRequest.Result getCharts(int page, int pageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.security.SignatureException, java.io.IOException
page
- The page to retrieve (note: one-indexed).pageSize
- The size of the page to retrieve.java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.security.SignatureException
java.io.IOException
public SDIGetArtistChartsRequest.Result getCharts(int page, int pageSize, java.lang.String period, java.lang.String toDate) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.security.SignatureException, java.io.IOException
page
- The page to retrieve (note: one-indexed).pageSize
- The size of the page to retrieve.period
- optional The time period for which the chart is generated. Default value is a week.toDate
- format is YYYYMMDD optional The last day the chart should include data for. If not provided, by default the most
recent chart for requested period will be returned.java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.security.SignatureException
java.io.IOException