Genres: Fetch Default
Get an image for a genre. Redirects to the default image location if it exists, otherwise attempts to retrieve from Medianet.
Endpoint URL
/api/genres/:genre_id/images/default
HTTP Method
GET
Authentication
Client ID required. See how to authenticate public resources here.
Parameters
| Name | Required | Description | Example | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| genre_id | required | Unique ID for Genre. | eg97074088215970048 | ||||||||||
| size | optional | A key (string) that maps to an image size. Valid Values (default is medium):
|
small |
Response Elements
| Response | Description |
|---|---|
| redirect |
The response is an HTTP redirect (HTTP status code 302) to the actual image location. |
Example Request
<img src="https://partner.api.beatsmusic.com/v1/api/genres/eg97074088215970048/images/default?client_id=[CLIENT_ID]" />
Example Response
The response is a redirect to the image location.
http://daisy-images.s3.amazonaws.com/user/97074088224358656/medium/img135583570214389248

