Service Asset URLs and File Formats

 

GetServiceInfo returns image and download URL patterns that are required to access assets for members. More details on using Service AssetURLs can be found here.

Streaming URL patterns can be found here

File formats are also available. Included is a property isdefaultdownload="true" which is the account default for downloads. There is also a property isdefaultdownloadfortype-"true" which is a default for the available types (WAV,AIFF,MP3). These can also be define for members (see Members).


Request:

GET /getserviceinfo/{serviceToken}

Successful Response:

<responseserviceinfo>

<asseturl
directdownload=”http://download.harvestmedia.net/wsdirectdownload/{downloadtoken}”
albumart=”http://cf.harvestmedia.net/assets/albumart/616899ef/{id}/{width}/{height}”
waveform=”http://cf.harvestmedia.net/assets/waveforms/616899ef/{id}/{width}/{height}”
montagewaveform=”http://cf.harvestmedia.net/assets/waveforms/montage/616899ef/{id}/{width}/{height}”
librarylogo=”http://cf.harvestmedia.net/assets/librarylogo/616899ef/{id}/{width}/{height}”
playlistart=”http://cf.harvestmedia.net/assets/playlistart/616899ef/{id}/{width}/{height}”
playlistcategoryart=”http://cf.harvestmedia.net/assets/playlistcategoryart/616899ef/{id}/{width}/{height}”
/>
<trackformats>
<trackformat identifier=”19b8000000dde” extension=”mp3″ bitrate=”320″ samplerate=”44.1″ samplesize=”0″ ismaster=”false” isdefaultdownload="true" isdefaultdownloadfortype-"true"/>
<trackformat identifier=”70200000000607″ extension=”mp3″ bitrate=”128″ samplerate=”44.1″ samplesize=”0″ ismaster=”false” isdefaultdownload="false" isdefaultdownloadfortype-"false"/>
<trackformat identifier=”9900000001e” extension=”aif” bitrate=”0″ samplerate=”48″ samplesize=”16″ ismaster=”false” isdefaultdownload="false" isdefaultdownloadfortype-"true"/>
<trackformat identifier=”3d000000003b” extension=”mp3″ bitrate=”320″ samplerate=”48″ samplesize=”0″ ismaster=”false” isdefaultdownload="false" isdefaultdownloadfortype-"false"/>
<trackformat identifier=”0c000000021″ extension=”wav” bitrate=”0″ samplerate=”0″ samplesize=”0″ ismaster=”true” isdefaultdownload="false" isdefaultdownloadfortype-"true"/>
</trackformats>

</responseserviceinfo>

Error Response:

<responsecode>
<error>
<code>5</code>
<description>Invalid Token</description>
</error>
</responsecode>

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.